Reorganized hak files & removed duplicates. Added @rafhot's PRC spell & ability level scaling expansion. Further script integration. Full compile.
17 lines
497 B
Plaintext
17 lines
497 B
Plaintext
#include "prc_inc_spells"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetLastSpellCaster();
|
|
if (GetIsDM(oPC)){return;}
|
|
|
|
if (GetIsPC(oPC) && GetLastSpellHarmful()){
|
|
object target = PRCGetSpellTargetObject();
|
|
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.");
|
|
}
|
|
}
|
|
}
|