root/Trunk/src/GossipScripts/Gossip_BoreanTundra.cpp @ 1146

Revision 1146, 0.8 kB (checked in by azolex, 7 months ago)

* Clean up

Line 
1#include "StdAfx.h"
2#include "Setup.h"
3
4class TiareGossipScript : public GossipScript
5{
6public:
7        void GossipHello(Object* pObject, Player* Plr, bool AutoSend)
8        {
9                GossipMenu *Menu;
10                objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
11                Menu->AddItem(0, "Teleport me to Amber Ledge!", 1); 
12                Menu->SendTo(Plr);
13        }
14
15        void GossipSelectOption(Object* pObject, Player* plr, uint32 Id, uint32 IntId, const char * EnteredCode)
16    {
17                Creature* Tiare = TO_CREATURE((pObject));               
18                plr->Gossip_Complete();
19                Tiare->CastSpell(plr, dbcSpell.LookupEntry(50135), true);
20        }                       
21        void Destroy()
22    {
23        delete this;
24        }
25
26};
27
28void SetupBoreanTundraGossip(ScriptMgr * mgr)
29{
30        GossipScript * TiareGossip = (GossipScript*) new TiareGossipScript;
31        mgr->register_gossip_script(30051, TiareGossip);                // Tiare
32}
Note: See TracBrowser for help on using the browser.