Initial commit
Initial commit. Updated release archive.
This commit is contained in:
22
_module/nss/en6_r_h_4.nss
Normal file
22
_module/nss/en6_r_h_4.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
void main()
|
||||
{
|
||||
object oHenchman;
|
||||
object oHenchToRez;
|
||||
string sTag;
|
||||
|
||||
oHenchman=OBJECT_SELF;
|
||||
sTag=GetLocalString(OBJECT_SELF,"RezTag");
|
||||
oHenchToRez=GetObjectByTag(sTag);
|
||||
|
||||
if (GetLocalInt(oHenchman,"RESURRECTION") ==0 && GetLevelByClass(CLASS_TYPE_CLERIC,oHenchman)>12)
|
||||
{
|
||||
AssignCommand(oHenchman,ClearAllActions());
|
||||
AssignCommand(oHenchman,ActionCastSpellAtObject(SPELL_RESURRECTION,oHenchToRez,METAMAGIC_ANY,TRUE));
|
||||
SetLocalInt(oHenchman,"RESURRECTION",1);
|
||||
} else {
|
||||
AssignCommand(oHenchman,ClearAllActions());
|
||||
AssignCommand(oHenchman,ActionCastSpellAtObject(SPELL_RAISE_DEAD,oHenchToRez,METAMAGIC_ANY,TRUE));
|
||||
SetLocalInt(oHenchman,"RAISE_DEAD",1);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user