SHOW:
|
|
- or go back to the newest paste.
| 1 | local GameObject_ID = 202242 | |
| 2 | ||
| 3 | - | function On_Gossip(unit, event, player) |
| 3 | + | local function On_Gossip(pUnit, event, pPlayer) |
| 4 | - | unit:GossipCreateMenu(3000, player, 0) |
| 4 | + | pUnit:GossipCreateMenu(3000, pPlayer, 0) |
| 5 | - | unit:GossipMenuAddItem(2, "The Lower Spire", 1, 0) |
| 5 | + | pUnit:GossipMenuAddItem(2, "The Lower Spire", 1, 0) |
| 6 | - | unit:GossipMenuAddItem(2, "The Plagueworks", 2, 0) |
| 6 | + | pUnit:GossipMenuAddItem(2, "The Plagueworks", 2, 0) |
| 7 | - | unit:GossipMenuAddItem(2, "The Crimson Hall", 3, 0) |
| 7 | + | pUnit:GossipMenuAddItem(2, "The Crimson Hall", 3, 0) |
| 8 | - | unit:GossipMenuAddItem(2, "The Frostwing Halls", 4, 0) |
| 8 | + | pUnit:GossipMenuAddItem(2, "The Frostwing Halls", 4, 0) |
| 9 | - | unit:GossipMenuAddItem(2, "The Frozen Throne", 5, 0) |
| 9 | + | pUnit:GossipMenuAddItem(2, "The Frozen Throne", 5, 0) |
| 10 | - | unit:GossipMenuAddItem(4, "Remove Ressurection sickness", 998, 0) |
| 10 | + | pUnit:GossipMenuAddItem(4, "Remove Ressurection sickness", 900, 0) |
| 11 | - | unit:GossipSendMenu(player) |
| 11 | + | pUnit:GossipSendMenu(pPlayer) |
| 12 | end | |
| 13 | ||
| 14 | - | function Gossip_Submenus(unit, event, player, id, intid, code) |
| 14 | + | local function Gossip_Submenus(pUnit, event, pPlayer, id, intid, code) |
| 15 | ||
| 16 | - | if(intid == 999) then |
| 16 | + | if(intid == 999) then |
| 17 | - | unit:GossipCreateMenu(3000, player, 0) |
| 17 | + | On_Gossip(pUnit, event, pPlayer) |
| 18 | - | unit:GossipMenuAddItem(2, "The Lower Spire", 1, 0) |
| 18 | + | elseif(intid == 1) then |
| 19 | - | unit:GossipMenuAddItem(2, "The Plagueworks", 2, 0) |
| 19 | + | pUnit:GossipCreateMenu(3000, pPlayer, 0) |
| 20 | - | unit:GossipMenuAddItem(2, "The Crimson Hall", 3, 0) |
| 20 | + | pUnit:GossipMenuAddItem(2, "Lord Marrowgar", 300, 0) |
| 21 | - | unit:GossipMenuAddItem(2, "The Frostwing Halls", 4, 0) |
| 21 | + | pUnit:GossipMenuAddItem(2, "Lady Deathwhisper", 301, 0) |
| 22 | - | unit:GossipMenuAddItem(2, "The Frozen Throne", 5, 0) |
| 22 | + | pUnit:GossipMenuAddItem(2, "Gunship Battle", 302, 0) |
| 23 | - | unit:GossipMenuAddItem(4, "Remove Ressurection sickness", 998, 0) |
| 23 | + | pUnit:GossipMenuAddItem(2, "Deathbringer Saurfang", 303, 0) |
| 24 | - | unit:GossipSendMenu(player) |
| 24 | + | pUnit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 25 | pUnit:GossipSendMenu(pPlayer) | |
| 26 | return | |
| 27 | - | if(intid == 1) then |
| 27 | + | elseif(intid == 2) then |
| 28 | - | unit:GossipCreateMenu(3000, player, 0) |
| 28 | + | pUnit:GossipCreateMenu(3000, pPlayer, 0) |
| 29 | - | unit:GossipMenuAddItem(2, "Lord Marrowgar", 300, 0) |
| 29 | + | pUnit:GossipMenuAddItem(2, "Festergut", 304, 0) |
| 30 | - | unit:GossipMenuAddItem(2, "Lady Deathwhisper", 301, 0) |
| 30 | + | pUnit:GossipMenuAddItem(2, "Rotface", 305, 0) |
| 31 | - | unit:GossipMenuAddItem(2, "Gunship Battle", 302, 0) |
| 31 | + | pUnit:GossipMenuAddItem(2, "Professor Putricide", 306, 0) |
| 32 | - | unit:GossipMenuAddItem(2, "Deathbringer Saurfang", 303, 0) |
| 32 | + | pUnit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 33 | - | unit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 33 | + | pUnit:GossipSendMenu(pPlayer) |
| 34 | - | unit:GossipSendMenu(player) |
| 34 | + | return |
| 35 | elseif(intid == 3) then | |
| 36 | pUnit:GossipCreateMenu(3000, pPlayer, 0) | |
| 37 | - | if(intid == 2) then |
| 37 | + | pUnit:GossipMenuAddItem(2, "Blood Prince Council", 307, 0) |
| 38 | - | unit:GossipCreateMenu(3000, player, 0) |
| 38 | + | pUnit:GossipMenuAddItem(2, "Blood-Queen Lana'thel", 308, 0) |
| 39 | - | unit:GossipMenuAddItem(2, "Festergut", 304, 0) |
| 39 | + | pUnit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 40 | - | unit:GossipMenuAddItem(2, "Rotface", 305, 0) |
| 40 | + | pUnit:GossipSendMenu(pPlayer) |
| 41 | - | unit:GossipMenuAddItem(2, "Professor Putricide", 306, 0) |
| 41 | + | return |
| 42 | - | unit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 42 | + | elseif(intid == 4) then |
| 43 | - | unit:GossipSendMenu(player) |
| 43 | + | pUnit:GossipCreateMenu(3000, pPlayer, 0) |
| 44 | pUnit:GossipMenuAddItem(3, "Valithria Dreamwalker", 309, 0) | |
| 45 | pUnit:GossipMenuAddItem(3, "Sindragosa", 310, 0) | |
| 46 | - | if(intid == 3) then |
| 46 | + | pUnit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 47 | - | unit:GossipCreateMenu(3000, player, 0) |
| 47 | + | pUnit:GossipSendMenu(pPlayer) |
| 48 | - | unit:GossipMenuAddItem(2, "Blood Prince Council", 307, 0) |
| 48 | + | return |
| 49 | - | unit:GossipMenuAddItem(2, "Blood-Queen Lana'thel", 308, 0) |
| 49 | + | elseif(intid == 5) then |
| 50 | - | unit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 50 | + | pUnit:GossipCreateMenu(3000, pPlayer, 0) |
| 51 | - | unit:GossipSendMenu(player) |
| 51 | + | pUnit:GossipMenuAddItem(3, "The Lich King", 311, 0) |
| 52 | pUnit:GossipMenuAddItem(0, "[Back]", 999, 0) | |
| 53 | pUnit:GossipSendMenu(pPlayer) | |
| 54 | - | if(intid == 4) then |
| 54 | + | return |
| 55 | - | unit:GossipCreateMenu(3000, player, 0) |
| 55 | + | elseif(intid == 900) then |
| 56 | - | unit:GossipMenuAddItem(3, "Valithria Dreamwalker", 309, 0) |
| 56 | + | if(pPlayer:HasNegativeAura(15007)) then |
| 57 | - | unit:GossipMenuAddItem(3, "Sindragosa", 310, 0) |
| 57 | + | pPlayer:RemoveAura(15007) |
| 58 | - | unit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 58 | + | end |
| 59 | - | unit:GossipSendMenu(player) |
| 59 | + | pPlayer:SendAreaTriggerMessage("Resurrection sickness removed")
|
| 60 | On_Gossip(pUnit, event, pPlayer) | |
| 61 | return | |
| 62 | - | if(intid == 5) then |
| 62 | + | elseif(intid == 300) then |
| 63 | - | unit:GossipCreateMenu(3000, player, 0) |
| 63 | + | pPlayer:Teleport(631, -17.090115, 2211.440430, 30.115721) |
| 64 | - | unit:GossipMenuAddItem(3, "The Lich King", 511, 0) |
| 64 | + | elseif(intid == 301) then |
| 65 | - | unit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 65 | + | pPlayer:Teleport(631, -503.285339, 2211.499268, 62.823330) |
| 66 | - | unit:GossipSendMenu(player) |
| 66 | + | elseif(intid == 302) then |
| 67 | pPlayer:Teleport(631, -615.354980, 2211.466309, 199.971100) | |
| 68 | elseif(intid == 303) then | |
| 69 | - | if(intid == 900) then |
| 69 | + | pPlayer:Teleport(631, -549.196106, 2211.171631, 539.290466) |
| 70 | - | unit:GossipCreateMenu(62, player, 0) |
| 70 | + | elseif(intid == 304) then |
| 71 | - | player:LearnSpell(15007) |
| 71 | + | pPlayer:Teleport(631, 4268.282715, 3083.905029, 360.443359) |
| 72 | - | player:UnlearnSpell(15007) |
| 72 | + | elseif(intid == 305) then |
| 73 | - | unit:GossipMenuAddItem(0, "[Back]", 999, 0) |
| 73 | + | pPlayer:Teleport(631, 4446.13960, 3081.873047, 360.524475) |
| 74 | - | unit:GossipSendMenu(player) |
| 74 | + | elseif(intid == 306) then |
| 75 | pPlayer:Teleport(631, 4356.679199, 3166.011230, 389.398712) | |
| 76 | elseif(intid == 307) then | |
| 77 | - | if(intid == 300) then |
| 77 | + | pPlayer:Teleport(631, 4452.511230, 2769.268555, 349.352020) |
| 78 | - | player:Teleport(631, -17.090115, 2211.440430, 30.115721) |
| 78 | + | elseif(intid == 308) then |
| 79 | - | unit:GossipComplete(player) |
| 79 | + | pPlayer:Teleport(631, 4559.946777, 2769.475098, 400.138641) |
| 80 | elseif(intid == 309) then | |
| 81 | pPlayer:Teleport(631, 4356.701172, 2674.051270, 349.336792) | |
| 82 | - | if(intid == 301) then |
| 82 | + | elseif(intid == 310) then |
| 83 | - | player:Teleport(631, -503.285339, 2211.499268, 62.823330) |
| 83 | + | pPlayer:Teleport(631, 4356.701172, 2674.051270, 349.336792) |
| 84 | - | unit:GossipComplete(player) |
| 84 | + | elseif(intid == 311) then |
| 85 | pPlayer:Teleport(631, 529.727905, -2414.865234, 1040.869056) | |
| 86 | end | |
| 87 | - | if(intid == 302) then |
| 87 | + | pPlayer:GossipComplete() |
| 88 | - | player:Teleport(631, -615.354980, 2211.466309, 199.971100) |
| 88 | + | |
| 89 | - | unit:GossipComplete(player) |
| 89 | + | |
| 90 | RegisterGameObjectEvent(GameObject_ID, 4, On_Gossip) | |
| 91 | RegisterGOGossipEvent(GameObject_ID, 2, Gossip_Submenus) |