SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ | |
| 2 | _____ ____ | |
| 3 | | ___| __ ___ _______ _ __ / ___|___ _ __ ___ | |
| 4 | | |_ | '__/ _ \_ / _ \ '_ \| | / _ \| '__/ _ \ | |
| 5 | | _|| | | (_) / / __/ | | | |__| (_) | | | __/ | |
| 6 | |_| |_| \___/___\___|_| |_|\____\___/|_| \___| | |
| 7 | Lightning speed and strength | |
| 8 | conjured directly from the depths of logic! | |
| 9 | Prismatic-Network 2013 (C) by Psykko | |
| 10 | <---------------------------------------------------------------------------> | |
| 11 | - Entwickler: Psykko | |
| 12 | - Fortschritt: 100% | |
| 13 | - Titel: 'Playertreff Wache' | |
| 14 | - Kommentar: Basierend auf den Blizzard Hauptstädte Wachen. Zeigen dir auf der Karte die Punkte von | |
| 15 | <---------------------------------------------------------------------------> | |
| 16 | ]] | |
| 17 | ||
| 18 | - | local wachenpc = 999997 |
| 18 | + | local wachenpc = 6948 -- 999997 |
| 19 | ||
| 20 | function PTWacheOnTalk(pUnit, event, pPlayer) | |
| 21 | pUnit:GossipCreateMenu(987, pPlayer, 0) | |
| 22 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Holy_Flashheal:24|t|rIch suche einen Lehrer f\195\188r Zauber", 1, 0) | |
| 23 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Stone_Weightstone_01:24|t|rIch suche einen Lehrer f\195\188r Berufe", 2, 0) | |
| 24 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Pet_02:24|t|rIch suche einen Fris\195\182r", 3, 0) | |
| 25 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Sword_01:24|t|rIch suche einen Waffenmeister", 4, 0) | |
| 26 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Tournaments_Tabard_Scourge:24|t|rIch suche einen Gildenmeister", 5, 0) | |
| 27 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Key_06:24|t|rIch suche einen Gastwirt", 6, 0) | |
| 28 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Pet_02:24|t|rIch suche einen Reitlehrer", 7, 0) | |
| 29 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Bag_09:24|t|rIch suche die Bank", 8, 0) | |
| 30 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Achievement_Pvp_P_250k:24|t|rIch suche den Duellplatz", 9, 0) | |
| 31 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Coin_01:24|t|rIch suche das Auctionshaus", 10, 0) | |
| 32 | pUnit:GossipMenuAddItem(30, "Auf Wiedersehen", 11, 0) | |
| 33 | pUnit:GossipSendMenu(pPlayer) | |
| 34 | end | |
| 35 | ||
| 36 | function PTWacheOnSelect(pUnit, event, pPlayer, id, pIntid, code) | |
| 37 | if (pIntid == 500) then | |
| 38 | PTWacheOnTalk(pUnit, event, pPlayer) | |
| 39 | end | |
| 40 | ||
| 41 | if (pIntid == 11) then | |
| 42 | pPlayer:GossipComplete() | |
| 43 | end | |
| 44 | ||
| 45 | if (pIntid == 1) then -- Klassenlehrer | |
| 46 | pUnit:GossipCreateMenu(988, pPlayer, 0) | |
| 47 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Ability_Warrior_Battleshout:24|t|rKriegerlehrer", 20, 0) | |
| 48 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Holy_GreaterBlessingOfKings:24|t|rPaladinlehrer", 21, 0) | |
| 49 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Holy_Heal:24|t|rPristerlehrer", 22, 0) | |
| 50 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Fire_Fireball02:24|t|rMagierlehrer", 23, 0) | |
| 51 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Deathknight_Armyofthedead:24|t|rTodesritterlehrer", 24, 0) | |
| 52 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Shadow_Burningspirit:24|t|rHexenmeisterlehrer", 25, 0) | |
| 53 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Nature_Bloodlust:24|t|rSchamenenlehrer", 26, 0) | |
| 54 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Ability_Hunter_Aimedshot:24|t|rJ\195\164gerlehrer", 27, 0) | |
| 55 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Ability_Rogue_Kidneyshot:24|t|rSchurkenlehrer", 28, 0) | |
| 56 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Spell_Nature_Natureguardian:24|t|rDruidenlehrer", 29, 0) | |
| 57 | pUnit:GossipMenuAddItem(30, "[Zur\195\188ck]", 500, 0) | |
| 58 | pUnit:GossipSendMenu(pPlayer) | |
| 59 | end | |
| 60 | ||
| 61 | if (pIntid == 2) then -- Berufelehrer | |
| 62 | pUnit:GossipCreateMenu(988, pPlayer, 0) | |
| 63 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Trade_Blacksmithing:24|t|rSchmiedkunst", 30, 0) | |
| 64 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Potion_112:24|t|rAlchemie", 31, 0) | |
| 65 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Trade_Engraving:24|t|rVerzauberungskunst", 32, 0) | |
| 66 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Herb_04:24|t|rKr\195\164uterkunde", 33, 0) | |
| 67 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Ore_Copper_01:24|t|rBergbau", 34, 0) | |
| 68 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Trade_Engineering:24|t|rEngineerkunst", 35, 0) | |
| 69 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Scroll_04:24|t|rInschriftenkunde", 36, 0) | |
| 70 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Gem_Diamond_06:24|t|rJuwelenschleifen", 37, 0) | |
| 71 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Trade_Leatherworking:24|t|rLederverarbeitung", 38, 0) | |
| 72 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Pelt_Bear_02:24|t|rK\195\188rschner", 39, 0) | |
| 73 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Bandage_01:24|t|rErste Hilfe", 40, 0) | |
| 74 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Inv_Misc_Food_01:24|t|rKochkunst", 41, 0) | |
| 75 | pUnit:GossipMenuAddItem(30, "|cff00ff00|TInterface\\icons\\Trade_Tailoring:24|t|rSchneiderei", 42, 0) | |
| 76 | pUnit:GossipMenuAddItem(30, "[Zur\195\188ck]", 500, 0) | |
| 77 | pUnit:GossipSendMenu(pPlayer) | |
| 78 | end | |
| 79 | ||
| 80 | if (pIntid == 3) then -- Barber | |
| 81 | pPlayer:GossipSendPOI(pPlayer:GetX(), pPlayer:GetY(), 7, 6, 0, "Barber") -- works | |
| 82 | -- pPlayer:GossipSendPOI(-9610.226562, 1648.580444, 7, 6, 0, "Barber") | |
| 83 | pPlayer:GossipComplete() | |
| 84 | end | |
| 85 | ||
| 86 | if (pIntid == 4) then -- Waffenmeister | |
| 87 | pPlayer:GossipSendPOI(-9545.774414, 1605.978394, 7, 6, 0, "Waffenmeister") | |
| 88 | pPlayer:GossipComplete() | |
| 89 | end | |
| 90 | ||
| 91 | if (pIntid == 5) then -- Gildenmeister | |
| 92 | pPlayer:GossipSendPOI(-9410.320312, 1692.449951, 7, 6, 0, "Gildenmeister") | |
| 93 | - | pUnit:GossipSendPOI(-9610.226562, 1648.580444, 7, 6, 0, "Barber") |
| 93 | + | |
| 94 | end | |
| 95 | ||
| 96 | if (pIntid == 6) then -- Gastwirt | |
| 97 | pPlayer:GossipSendPOI(-9626.150391, 1649.640015, 7, 6, 0, "Gastwirt") | |
| 98 | - | pUnit:GossipSendPOI(-9545.774414, 1605.978394, 7, 6, 0, "Waffenmeister") |
| 98 | + | |
| 99 | end | |
| 100 | ||
| 101 | if (pIntid == 7) then -- Reitlehrer | |
| 102 | pPlayer:GossipSendPOI(-9657.700195, 1627.479980, 7, 6, 0, "Reitlehrer") | |
| 103 | - | pUnit:GossipSendPOI(-9410.320312, 1692.449951, 7, 6, 0, "Gildenmeister") |
| 103 | + | |
| 104 | end | |
| 105 | ||
| 106 | if (pIntid == 8) then -- Bank | |
| 107 | pPlayer:GossipSendPOI(-9419.330078, 1701.260010, 7, 6, 0, "Bank") | |
| 108 | - | pUnit:GossipSendPOI(-9626.150391, 1649.640015, 7, 6, 0, "Gastwirt") |
| 108 | + | |
| 109 | end | |
| 110 | ||
| 111 | if (pIntid == 9) then -- PVP | |
| 112 | pPlayer:GossipSendPOI(-9746.795898, 1637.063599, 7, 6, 0, "PVP") | |
| 113 | - | pUnit:GossipSendPOI(-9657.700195, 1627.479980, 7, 6, 0, "Reitlehrer") |
| 113 | + | |
| 114 | end | |
| 115 | ||
| 116 | if (pIntid == 10) then -- Auctionshaus | |
| 117 | pPlayer:GossipSendPOI(-9412.459961, 1673.229980, 7, 6, 0, "Auctionshaus") | |
| 118 | - | pUnit:GossipSendPOI(-9419.330078, 1701.260010, 7, 6, 0, "Bank") |
| 118 | + | |
| 119 | end | |
| 120 | ||
| 121 | if (pIntid == 20) then -- Krieger | |
| 122 | pPlayer:GossipSendPOI(-9534.450195, 1545.400024, 7, 6, 0, "Kriegerlehrer") | |
| 123 | - | pUnit:GossipSendPOI(-9746.795898, 1637.063599, 7, 6, 0, "PVP") |
| 123 | + | |
| 124 | end | |
| 125 | ||
| 126 | if (pIntid == 21) then -- Paladin | |
| 127 | pPlayer:GossipSendPOI(-9541.019531, 1540.069946, 7, 6, 0, "Paladinlehrer") | |
| 128 | - | pUnit:GossipSendPOI(-9412.459961, 1673.229980, 7, 6, 0, "Auctionshaus") |
| 128 | + | |
| 129 | end | |
| 130 | ||
| 131 | if (pIntid == 22) then -- Prister | |
| 132 | pPlayer:GossipSendPOI(-9555.059570, 1582.180054, 7, 6, 0, "Pristerlehrer") | |
| 133 | - | pUnit:GossipSendPOI(-9534.450195, 1545.400024, 7, 6, 0, "Kriegerlehrer") |
| 133 | + | |
| 134 | end | |
| 135 | ||
| 136 | if (pIntid == 23) then -- Magier | |
| 137 | pPlayer:GossipSendPOI(-9545.160156, 1573.689941, 7, 6, 0, "Magierlehrer") | |
| 138 | - | pUnit:GossipSendPOI(-9541.019531, 1540.069946, 7, 6, 0, "Paladinlehrer") |
| 138 | + | |
| 139 | end | |
| 140 | ||
| 141 | if (pIntid == 24) then -- Todesritter | |
| 142 | pPlayer:GossipSendPOI(-9543.799805, 1548.839966, 7, 6, 0, "Todesritterlehrer") | |
| 143 | - | pUnit:GossipSendPOI(-9555.059570, 1582.180054, 7, 6, 0, "Pristerlehrer") |
| 143 | + | |
| 144 | end | |
| 145 | ||
| 146 | if (pIntid == 25) then -- Hexenmeister | |
| 147 | pPlayer:GossipSendPOI(-9545.150391, 1582.709961, 7, 6, 0, "Hexenmeisterlehrer") | |
| 148 | - | pUnit:GossipSendPOI(-9545.160156, 1573.689941, 7, 6, 0, "Magierlehrer") |
| 148 | + | |
| 149 | end | |
| 150 | ||
| 151 | if (pIntid == 26) then -- Schamane | |
| 152 | pPlayer:GossipSendPOI(-9549.410156, 1586.719971, 7, 6, 0, "Schamanenlehrer") | |
| 153 | - | pUnit:GossipSendPOI(-9543.799805, 1548.839966, 7, 6, 0, "Todesritterlehrer") |
| 153 | + | |
| 154 | end | |
| 155 | ||
| 156 | if (pIntid == 27) then -- Jäger | |
| 157 | pPlayer:GossipSendPOI(-9542.530273, 1582.150024, 7, 6, 0, "J\195\164gerlehrer") | |
| 158 | - | pUnit:GossipSendPOI(-9545.150391, 1582.709961, 7, 6, 0, "Hexenmeisterlehrer") |
| 158 | + | |
| 159 | end | |
| 160 | ||
| 161 | if (pIntid == 28) then -- Schurke | |
| 162 | pPlayer:GossipSendPOI(-9497.269531, 1586.430054, 7, 6, 0, "Schurkenlehrer") | |
| 163 | - | pUnit:GossipSendPOI(-9549.410156, 1586.719971, 7, 6, 0, "Schamanenlehrer") |
| 163 | + | |
| 164 | end | |
| 165 | ||
| 166 | if (pIntid == 29) then -- Druide | |
| 167 | pPlayer:GossipSendPOI(-9505.019531, 1596.099976, 7, 6, 0, "Druidenlehrer") | |
| 168 | - | pUnit:GossipSendPOI(-9542.530273, 1582.150024, 7, 6, 0, "J\195\164gerlehrer") |
| 168 | + | |
| 169 | end | |
| 170 | ||
| 171 | if (pIntid == 30) then -- Schmied | |
| 172 | pPlayer:GossipSendPOI(-9709.269531, 1690.020020, 7, 6, 0, "Schmiedkunst") | |
| 173 | - | pUnit:GossipSendPOI(-9497.269531, 1586.430054, 7, 6, 0, "Schurkenlehrer") |
| 173 | + | |
| 174 | end | |
| 175 | ||
| 176 | if (pIntid == 31) then -- Alch | |
| 177 | pPlayer:GossipSendPOI(-9560.339844, 1699.469971, 7, 6, 0, "Alchemie") | |
| 178 | - | pUnit:GossipSendPOI(-9505.019531, 1596.099976, 7, 6, 0, "Druidenlehrer") |
| 178 | + | |
| 179 | end | |
| 180 | ||
| 181 | if (pIntid == 32) then -- VZ | |
| 182 | pPlayer:GossipSendPOI(-9725.990234, 1755.810059, 7, 6, 0, "Verzauberungskunst") | |
| 183 | - | pUnit:GossipSendPOI(-9709.269531, 1690.020020, 7, 6, 0, "Schmiedkunst") |
| 183 | + | |
| 184 | end | |
| 185 | ||
| 186 | if (pIntid == 33) then -- Kräuter | |
| 187 | pPlayer:GossipSendPOI(-9566.589844, 1681.569946, 7, 6, 0, "Kr\195\164terkunde") | |
| 188 | - | pUnit:GossipSendPOI(-9560.339844, 1699.469971, 7, 6, 0, "Alchemie") |
| 188 | + | |
| 189 | end | |
| 190 | ||
| 191 | if (pIntid == 34) then -- Bergbau | |
| 192 | pPlayer:GossipSendPOI(-9712.450195, 1682.530029, 7, 6, 0, "Bergbau") | |
| 193 | - | pUnit:GossipSendPOI(-9725.990234, 1755.810059, 7, 6, 0, "Verzauberungskunst") |
| 193 | + | |
| 194 | end | |
| 195 | ||
| 196 | if (pIntid == 35) then -- Engi | |
| 197 | pPlayer:GossipSendPOI(-9707.870117, 1682.250000, 7, 6, 0, "Engineerkunst") | |
| 198 | - | pUnit:GossipSendPOI(-9566.589844, 1681.569946, 7, 6, 0, "Kr\195\164terkunde") |
| 198 | + | |
| 199 | end | |
| 200 | ||
| 201 | if (pIntid == 36) then -- Inschriften | |
| 202 | pPlayer:GossipSendPOI(-9644.290039, 1650.630005, 7, 6, 0, "Inschriftenkunde") | |
| 203 | - | pUnit:GossipSendPOI(-9712.450195, 1682.530029, 7, 6, 0, "Bergbau") |
| 203 | + | |
| 204 | end | |
| 205 | ||
| 206 | if (pIntid == 37) then -- Juwe | |
| 207 | pPlayer:GossipSendPOI(-9746.690430, 1727.579956, 7, 6, 0, "Juwelenschleifen") | |
| 208 | - | pUnit:GossipSendPOI(-9707.870117, 1682.250000, 7, 6, 0, "Engineerkunst") |
| 208 | + | |
| 209 | end | |
| 210 | ||
| 211 | if (pIntid == 38) then -- Leder | |
| 212 | pPlayer:GossipSendPOI(-9583.120117, 1747.979980, 7, 6, 0, "Lederverarbeitung") | |
| 213 | - | pUnit:GossipSendPOI(-9644.290039, 1650.630005, 7, 6, 0, "Inschriftenkunde") |
| 213 | + | |
| 214 | end | |
| 215 | ||
| 216 | if (pIntid == 39) then -- Kürschner | |
| 217 | pPlayer:GossipSendPOI(-9586.780273, 1755.540039, 7, 6, 0, "K195\188rschner") | |
| 218 | - | pUnit:GossipSendPOI(-9746.690430, 1727.579956, 7, 6, 0, "Juwelenschleifen") |
| 218 | + | |
| 219 | end | |
| 220 | ||
| 221 | if (pIntid == 40) then -- Erste Hilfe | |
| 222 | pPlayer:GossipSendPOI(-9632.030273, 1653.439941, 7, 6, 0, "Erste Hilfe") | |
| 223 | - | pUnit:GossipSendPOI(-9583.120117, 1747.979980, 7, 6, 0, "Lederverarbeitung") |
| 223 | + | |
| 224 | end | |
| 225 | ||
| 226 | if (pIntid == 41) then -- Kochen | |
| 227 | pPlayer:GossipSendPOI(-9614.500000, 1635.500000, 7, 6, 0, "Kochkunst") | |
| 228 | - | pUnit:GossipSendPOI(-9586.780273, 1755.540039, 7, 6, 0, "K195\188rschner") |
| 228 | + | |
| 229 | end | |
| 230 | ||
| 231 | if (pIntid == 42) then -- Schneider | |
| 232 | pPlayer:GossipSendPOI(-9723.839844, 1758.579956, 7, 6, 0, "Schneiderei") | |
| 233 | - | pUnit:GossipSendPOI(-9632.030273, 1653.439941, 7, 6, 0, "Erste Hilfe") |
| 233 | + | |
| 234 | end | |
| 235 | end | |
| 236 | ||
| 237 | RegisterItemGossipEvent(wachenpc, 1, "PTWacheOnTalk") | |
| 238 | - | pUnit:GossipSendPOI(-9614.500000, 1635.500000, 7, 6, 0, "Kochkunst") |
| 238 | + | RegisterItemGossipEvent(wachenpc, 2, "PTWacheOnSelect") |