PoA_PRC8/module/nss/nospells.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

15 lines
467 B
Plaintext

void main()
{
object oPC = GetLastSpellCaster();
if (GetIsDM(oPC)){return;}
if (GetIsPC(oPC) && GetLastSpellHarmful()){
object target = GetSpellTargetObject();
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.");
}
}
}