Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC_ID = 41004
- function On_Talk(unit, event, player)
- if(player:IsMounted() == true ) then
- player:Dismount()
- else
- unit:GossipCreateMenu(3000, player, 0)
- unit:GossipMenuAddItem(2, "|cff008080New|r: Sirako, Frostkoenigin", 20, 0)
- unit:GossipMenuAddItem(2, "|cff008080New|r: Diablo, Welten Zerstoerer", 30, 0)
- unit:GossipMenuAddItem(0, "Nevermind", 999, 0)
- unit:GossipSendMenu(player)
- end
- end
- function On_Select(unit, event, player, id, intid, code)
- if(intid == 999) then
- unit:GossipComplete()
- unit:SendChatMessage(12, 0, "Wenn ihr Fliegen wollt, "..player:GetName().." kommt eichfach zu mir")
- end
- if(intid == 20) then
- player:SetMount(0)
- player:Land()
- unit:GossipComplete()
- unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
- local Taxi = LuaTaxi:CreateTaxi()
- Taxi:AddPathNode(1, 5124.229492, -1894.648682, 1411.904541)
- Taxi:AddPathNode(1, 5201.874512, -1971.556030, 1419.474609)
- Taxi:AddPathNode(1, 5211.812012, -2206.198730, 1279.523560)
- Taxi:AddPathNode(1, 5365.327148, -2190.381592, 1319.086182)
- Taxi:AddPathNode(1, 5365.038086, -2124.511475, 1295.675781)
- player:StartTaxi(Taxi, 21520)
- end
- if(intid == 30) then
- player:SetMount(0)
- player:Land()
- unit:GossipComplete()
- unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
- local Taxi = LuaTaxi:CreateTaxi()
- Taxi:AddPathNode(1, 5136.520020, -1901.456787, 1409.946899)
- Taxi:AddPathNode(1, 5374.597656, -2221.957031, 1481.956055)
- Taxi:AddPathNode(1, 5454.520020, -2306.854492, 1498.598145)
- Taxi:AddPathNode(1, 5533.471680, -2430.367920, 1497.571167)
- Taxi:AddPathNode(1, 5540.280273, -2818.519531, 1536.469116)
- Taxi:AddPathNode(1, 5446.538086, -2890.247314, 1515.868652)
- Taxi:AddPathNode(1, 5370.584473, -2852.860352, 1494.880371)
- Taxi:AddPathNode(1, 5346.162109, -2753.869629, 1477.571167)
- Taxi:AddPathNode(1, 5379.014648, -2742.646729, 1463.539307)
- Taxi:AddPathNode(1, 5396.199219, -2748.548340, 1459.589722)
- player:StartTaxi(Taxi, 21520)
- end
- end
- RegisterUnitGossipEvent(41004, 1, "On_Talk")
- RegisterUnitGossipEvent(41004, 2, "On_Select")
- local NPC_ID = 41005
- function On_Talk(unit, event, player)
- if(player:IsMounted() == true ) then
- player:Dismount()
- else
- unit:GossipCreateMenu(3000, player, 0)
- unit:GossipMenuAddItem(2, "Zum Anfang", 20, 0)
- unit:GossipMenuAddItem(2, "|cff008080New|r Diablo, Welten Zerstoerer", 30, 0)
- unit:GossipMenuAddItem(0, "Nevermind", 999, 0)
- unit:GossipSendMenu(player)
- end
- end
- function On_Select(unit, event, player, id, intid, code)
- if(intid == 999) then
- unit:GossipComplete()
- unit:SendChatMessage(12, 0, "Kommt jeder Zeit zu mir zurück "..player:GetName()..".")
- end
- if(intid == 20) then
- player:SetMount(0)
- player:Land()
- unit:GossipComplete()
- unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
- local Taxi = LuaTaxi:CreateTaxi()
- Taxi:AddPathNode(1, 5289.285156, -2061.282471, 1312.794922)
- Taxi:AddPathNode(1, 5257.044434, -2039.229858, 1348.231567)
- Taxi:AddPathNode(1, 5212.991699, -1957.902344, 1406.697510)
- Taxi:AddPathNode(1, 5034.577148, -1814.898071, 1368.023926)
- Taxi:AddPathNode(1, 4994.358398, -1753.360229, 1346.183716)
- Taxi:AddPathNode(1, 4981.453613, -1737.755737, 1342.308105)
- player:StartTaxi(Taxi, 21520)
- end
- if(intid == 30) then
- player:SetMount(0)
- player:Land()
- unit:GossipComplete()
- unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
- local Taxi = LuaTaxi:CreateTaxi()
- Taxi:AddPathNode(1, 5297.922852, -2184.791260, 1305.280029)
- Taxi:AddPathNode(1, 5162.411133, -2325.542725, 1417.301758)
- Taxi:AddPathNode(1, 5108.786133, -2573.170654, 1671.581055)
- Taxi:AddPathNode(1, 5222.050293, -2685.149902, 1594.796631)
- Taxi:AddPathNode(1, 5359.386719, -2731.297852, 1482.413940)
- Taxi:AddPathNode(1, 5397.439941, -2748.620850, 1459.499023)
- player:StartTaxi(Taxi, 21520)
- end
- end
- RegisterUnitGossipEvent(41005, 1, "On_Talk")
- RegisterUnitGossipEvent(41005, 2, "On_Select")
- local NPC_ID = 41006
- function On_Talk(unit, event, player)
- if(player:IsMounted() == true ) then
- player:Dismount()
- else
- unit:GossipCreateMenu(3000, player, 0)
- unit:GossipMenuAddItem(2, "Zurück zur Basis", 20, 0)
- unit:GossipMenuAddItem(2, "|cff008080New|r: Sirako, Frostkoenigin", 30, 0)
- unit:GossipMenuAddItem(0, "Nevermind", 999, 0)
- unit:GossipSendMenu(player)
- end
- end
- function On_Select(unit, event, player, id, intid, code)
- if(intid == 999) then
- unit:GossipComplete()
- unit:SendChatMessage(12, 0, "Komm jeder Zeit zu mir zurück "..player:GetName()..".")
- end
- if(intid == 20) then
- player:SetMount(0)
- player:Land()
- unit:GossipComplete()
- unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
- local Taxi = LuaTaxi:CreateTaxi()
- Taxi:AddPathNode(1, 5461.773438, -2736.792236, 1482.501953)
- Taxi:AddPathNode(1, 5564.753906, -2535.535400, 1505.039429)
- Taxi:AddPathNode(1, 5550.690430, -2443.961426, 1499.921509)
- Taxi:AddPathNode(1, 5499.271973, -2420.579590, 1498.197998)
- Taxi:AddPathNode(1, 5445.145996, -2292.578613, 1491.445313)
- Taxi:AddPathNode(1, 5326.731934, -2186.283203, 1340.795654)
- Taxi:AddPathNode(1, 5254.010742, -2053.023682, 1352.743408)
- Taxi:AddPathNode(1, 5186.775879, -1957.523926, 1403.284424)
- Taxi:AddPathNode(1, 4982.904297, -1740.663574, 1342.307739)
- player:StartTaxi(Taxi, 21520)
- end
- if(intid == 30) then
- player:SetMount(0)
- player:Land()
- unit:GossipComplete()
- unit:SendChatMessage(42, 0, "|cff008080Es geht los "..player:GetName().." haltet euch gut fest!|r")
- local Taxi = LuaTaxi:CreateTaxi()
- Taxi:AddPathNode(1, 5474.347168, -2718.640869, 1483.324097)
- Taxi:AddPathNode(1, 5553.835938, -2586.887695, 1509.349976)
- Taxi:AddPathNode(1, 5558.419434, -2472.923096, 1510.170410)
- Taxi:AddPathNode(1, 5502.676758, -2399.053955, 1496.999023)
- Taxi:AddPathNode(1, 5434.945313, -2280.050781, 1477.145386)
- Taxi:AddPathNode(1, 5313.305664, -2205.257813, 1359.151245)
- Taxi:AddPathNode(1, 5273.529297, -2153.827393, 1302.432861)
- Taxi:AddPathNode(1, 5262.229492, -2104.759766, 1305.736450)
- Taxi:AddPathNode(1, 5298.319336, -2076.415283, 1307.696533)
- Taxi:AddPathNode(1, 5339.632324, -2119.006348, 1288.407959)
- Taxi:AddPathNode(1, 5353.417969, -2132.461182, 1285.640869)
- player:StartTaxi(Taxi, 21520)
- end
- end
- RegisterUnitGossipEvent(41006, 1, "On_Talk")
- RegisterUnitGossipEvent(41006, 2, "On_Select")
Advertisement
Add Comment
Please, Sign In to add comment