[c++]Buff Player On Defined Zone - TrinityCore 3.3.5a

PrivateDonut

Veteran Member
59
2015
19
Hello everyone,

I recently made this script for someone in the support section on another forums and decided to share it. Just a simple c++ script that will cast a spell on any player entering the defined zone ID and remove it once they leave that zone.

  • #define buffid 48162 (change 48162 to whatever spell id you want it to cast on zone update).
  • #define zoneid 12 (change 12 to whatever zone ID you want).

Download Link: Github - gist link

Don't know how to add custom c++ scripts? Visit: LINK
 
Top