UW2_PRC8/_module/nss/objectspellattak.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

16 lines
488 B
Plaintext

//Place this OnSpellCastAt in a placeable script
void main()
{
object oPlayer = GetLastSpellCaster();
if (GetLastSpellHarmful() == TRUE){
if (GetIsPC(oPlayer) && !GetIsDM(oPlayer)){
DelayCommand(4.0, AssignCommand(oPlayer,JumpToLocation(GetLocation(GetWaypointByTag("prison")))));
SendMessageToPC(oPlayer, "You have been sent to jail for vandalism.");
SetCommandable(FALSE, oPlayer);
DelayCommand(1.0, SetCommandable(TRUE, oPlayer));
AssignCommand(oPlayer, ClearAllActions());
}
}
}