Changed folder name.
Changed folder name.
This commit is contained in:
14
_module/nss/nospells.nss
Normal file
14
_module/nss/nospells.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
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.");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user