Help writing an if statement.
I have been working on this for a couple hours and I give up. Basically what I would like to happen is,
On player respawn check to see if the pc is either a particular class or a particular sub race and if so do something if not either one of those two options just stop running the script. Here is the bit of code I have been working with.
if ((GetLevelByClass(CLASS_TYPE_WIZARD, oRespawner)==0))
if (GetSubRace(oRespawner)!="Demonologist")
return;
effect eFail = SupernaturalEffect(EffectSpellFailure());
ApplyEffectToObject(DURATION_TYPE_PERMANENT,eFail, oRespawner);
Please let me know if this clear enough on what I'm trying to do or do you need more information.





Retour en haut







