Advertisement
Easelm

Untitled

May 22nd, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. class Super_Item : public ItemScript
  2. {
  3.      public:
  4.           Super_Item()
  5.               : ItemScript("Super_Item")
  6.           {
  7.           }
  8.          
  9.           bool OnUse(Player * player, Item * pItem, SpellCastTargets const&)
  10.           {
  11.               player->SummonCreature(GUIDE_ENTRY, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, DESPAWN_E_CREATURE);
  12.               player->MonsterWhisper("Your Guide will despawn in 2 minutes.", player->GetGUID());
  13.               return true;
  14.           }
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement