Advertisement
EmuDevs

EmuDevs: TrinityCore C++ Insignia Skinnable

Dec 4th, 2013
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. /*
  2.     <http://emudevs.com>
  3.     By Tommy
  4. */
  5.  
  6. class on_pvp_kill : public PlayerScript
  7. {
  8. public:
  9.     on_pvp_kill() : PlayerScript("on_pvp_kill") { }
  10.  
  11.     void OnPVPKill(Player* killer, Player* victim)
  12.     {
  13.         if (killer->GetGUID() == victim->GetGUID())
  14.             return;
  15.  
  16.         victim->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE);
  17.     }
  18. };
  19.  
  20. void AddSC_example_misc()
  21. {
  22.     new on_pvp_kill;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement