PoA_PRC8/_module/nss/nospells.nss

17 lines
497 B
Plaintext
Raw Permalink Normal View History

#include "prc_inc_spells"
2022-10-07 14:20:31 -04:00
void main()
{
object oPC = GetLastSpellCaster();
if (GetIsDM(oPC)){return;}
if (GetIsPC(oPC) && GetLastSpellHarmful()){
object target = PRCGetSpellTargetObject();
2022-10-07 14:20:31 -04:00
if (GetIsFriend(oPC, target)== TRUE || GetIsNeutral(oPC, target)){
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToLocation(GetLocation(GetWaypointByTag("prison"))));
SendMessageToPC(oPC, "You have been sent to jail for casting offensive spells in town, at a non hostile target.");
}
}
}