wrong way to do it, use spellhook
if you dont have spellhook set yet either set it, instructions in the link above or since you have 1.71 you can use internal spellhook to do it, open 70_spellhook, locate void main()
and add this line under declared variables:
if(GetLocalInt(OBJECT_SELF, "arena"))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
return;
}
this code will work in regular spellhook which is preffered to use though (since 70_spellhook might change in next CPP version and you would have to delete it and do this change again to get new features)
Is possible to make an object type creature immune to TimeStop?
I tried to use this as oTarget = GetSpellTargetObject()
if((GetTag(oTarget) == "Batalha_Harat") && (GetSpellId() == SPELL_TIME_STOP))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
return;
}
The spell time stop don't have a specify target. Do it works anyway?