|
Revision 1146, 0.8 kB
(checked in by azolex, 7 months ago)
|
|
* Clean up
|
| Line | |
|---|
| 1 | #include "StdAfx.h" |
|---|
| 2 | #include "Setup.h" |
|---|
| 3 | |
|---|
| 4 | class TiareGossipScript : public GossipScript |
|---|
| 5 | { |
|---|
| 6 | public: |
|---|
| 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 | |
|---|
| 28 | void SetupBoreanTundraGossip(ScriptMgr * mgr) |
|---|
| 29 | { |
|---|
| 30 | GossipScript * TiareGossip = (GossipScript*) new TiareGossipScript; |
|---|
| 31 | mgr->register_gossip_script(30051, TiareGossip); // Tiare |
|---|
| 32 | } |
|---|