Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Super_Item : public ItemScript
- {
- public:
- Super_Item()
- : ItemScript("Super_Item")
- {
- }
- bool OnUse(Player * player, Item * pItem, SpellCastTargets const&)
- {
- player->SummonCreature(GUIDE_ENTRY, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, DESPAWN_E_CREATURE);
- player->MonsterWhisper("Your Guide will despawn in 2 minutes.", player->GetGUID());
- return true;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement