Author Topic: anti-magic zone just for wizards  (Read 328 times)

Legacy_Surek

  • Full Member
  • ***
  • Posts: 169
  • Karma: +0/-0
anti-magic zone just for wizards
« on: May 04, 2014, 06:47:59 pm »


               

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


               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
anti-magic zone just for wizards
« Reply #1 on: May 04, 2014, 07:01:41 pm »


               

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