Aller au contenu

Photo

anti-magic zone just for wizards


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Surek

Surek
  • Members
  • 94 messages

How would I make an anti-magic, dead magic zone just apply to wizards, does not affect other casters?



#2
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

you can create a generic trigger with events on enter/ on exit that only will be applied to wiz/sorc

 

script on enter (your zone)

 

if(GetLevelByClass(CLASS_TYPE_WIZARD, GetEnteringObject()) >= 1 || GetLevelByClass(CLASS_TYPE_SORCERER, GetEnteringObject()) >= 1)

{

your stuff

}

 

also you need to create the script on exit to remove the stuff