Bwl-Network

World Boss Taxi

May 26th, 2013
787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.16 KB | None | 0 0
  1. local NPC_ID = 41004
  2.  
  3. function On_Talk(unit, event, player)
  4.         if(player:IsMounted() == true ) then
  5.         player:Dismount()
  6.     else
  7.         unit:GossipCreateMenu(3000, player, 0)
  8.         unit:GossipMenuAddItem(2, "|cff008080New|r: Sirako, Frostkoenigin", 20, 0)
  9.         unit:GossipMenuAddItem(2, "|cff008080New|r: Diablo, Welten Zerstoerer", 30, 0)
  10.         unit:GossipMenuAddItem(0, "Nevermind", 999, 0)
  11.         unit:GossipSendMenu(player)
  12.     end
  13. end
  14.  
  15. function On_Select(unit, event, player, id, intid, code)
  16.     if(intid == 999) then
  17.         unit:GossipComplete()
  18.         unit:SendChatMessage(12, 0, "Wenn ihr Fliegen wollt, "..player:GetName().." kommt eichfach zu mir")
  19.     end
  20.    
  21.     if(intid == 20) then
  22.         player:SetMount(0)
  23.         player:Land()
  24.         unit:GossipComplete()
  25.         unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
  26.         local Taxi = LuaTaxi:CreateTaxi()
  27.         Taxi:AddPathNode(1, 5124.229492, -1894.648682, 1411.904541)
  28.         Taxi:AddPathNode(1, 5201.874512, -1971.556030, 1419.474609)
  29.         Taxi:AddPathNode(1, 5211.812012, -2206.198730, 1279.523560)
  30.         Taxi:AddPathNode(1, 5365.327148, -2190.381592, 1319.086182)
  31.         Taxi:AddPathNode(1, 5365.038086, -2124.511475, 1295.675781)
  32.         player:StartTaxi(Taxi, 21520)
  33.     end
  34.    
  35.     if(intid == 30) then
  36.         player:SetMount(0)
  37.         player:Land()
  38.         unit:GossipComplete()
  39.         unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
  40.         local Taxi = LuaTaxi:CreateTaxi()
  41.         Taxi:AddPathNode(1, 5136.520020, -1901.456787, 1409.946899)
  42.         Taxi:AddPathNode(1, 5374.597656, -2221.957031, 1481.956055)
  43.         Taxi:AddPathNode(1, 5454.520020, -2306.854492, 1498.598145)
  44.         Taxi:AddPathNode(1, 5533.471680, -2430.367920, 1497.571167)
  45.         Taxi:AddPathNode(1, 5540.280273, -2818.519531, 1536.469116)
  46.         Taxi:AddPathNode(1, 5446.538086, -2890.247314, 1515.868652)
  47.         Taxi:AddPathNode(1, 5370.584473, -2852.860352, 1494.880371)
  48.         Taxi:AddPathNode(1, 5346.162109, -2753.869629, 1477.571167)
  49.         Taxi:AddPathNode(1, 5379.014648, -2742.646729, 1463.539307)
  50.         Taxi:AddPathNode(1, 5396.199219, -2748.548340, 1459.589722)
  51.         player:StartTaxi(Taxi, 21520)
  52.     end
  53. end
  54.  
  55. RegisterUnitGossipEvent(41004, 1, "On_Talk")
  56. RegisterUnitGossipEvent(41004, 2, "On_Select")
  57.  
  58. local NPC_ID = 41005
  59.  
  60. function On_Talk(unit, event, player)
  61.     if(player:IsMounted() == true ) then
  62.         player:Dismount()
  63.     else
  64.         unit:GossipCreateMenu(3000, player, 0)
  65.         unit:GossipMenuAddItem(2, "Zum Anfang", 20, 0)
  66.         unit:GossipMenuAddItem(2, "|cff008080New|r Diablo, Welten Zerstoerer", 30, 0)
  67.         unit:GossipMenuAddItem(0, "Nevermind", 999, 0)
  68.         unit:GossipSendMenu(player)
  69.     end
  70. end
  71.  
  72. function On_Select(unit, event, player, id, intid, code)
  73.     if(intid == 999) then
  74.         unit:GossipComplete()
  75.         unit:SendChatMessage(12, 0, "Kommt jeder Zeit zu mir zurück "..player:GetName()..".")
  76.     end
  77.    
  78.    if(intid == 20) then
  79.         player:SetMount(0)
  80.         player:Land()
  81.         unit:GossipComplete()
  82.         unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
  83.         local Taxi = LuaTaxi:CreateTaxi()
  84.         Taxi:AddPathNode(1, 5289.285156, -2061.282471, 1312.794922)
  85.         Taxi:AddPathNode(1, 5257.044434, -2039.229858, 1348.231567)
  86.         Taxi:AddPathNode(1, 5212.991699, -1957.902344, 1406.697510)
  87.         Taxi:AddPathNode(1, 5034.577148, -1814.898071, 1368.023926)
  88.         Taxi:AddPathNode(1, 4994.358398, -1753.360229, 1346.183716)
  89.         Taxi:AddPathNode(1, 4981.453613, -1737.755737, 1342.308105)
  90.         player:StartTaxi(Taxi, 21520)
  91.     end
  92.    
  93.     if(intid == 30) then
  94.         player:SetMount(0)
  95.         player:Land()
  96.         unit:GossipComplete()
  97.         unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
  98.         local Taxi = LuaTaxi:CreateTaxi()
  99.         Taxi:AddPathNode(1, 5297.922852, -2184.791260, 1305.280029)
  100.         Taxi:AddPathNode(1, 5162.411133, -2325.542725, 1417.301758)
  101.         Taxi:AddPathNode(1, 5108.786133, -2573.170654, 1671.581055)
  102.         Taxi:AddPathNode(1, 5222.050293, -2685.149902, 1594.796631)
  103.         Taxi:AddPathNode(1, 5359.386719, -2731.297852, 1482.413940)
  104.         Taxi:AddPathNode(1, 5397.439941, -2748.620850, 1459.499023)
  105.         player:StartTaxi(Taxi, 21520)
  106.     end
  107. end
  108.  
  109. RegisterUnitGossipEvent(41005, 1, "On_Talk")
  110. RegisterUnitGossipEvent(41005, 2, "On_Select")
  111.  
  112. local NPC_ID = 41006
  113.  
  114. function On_Talk(unit, event, player)
  115.     if(player:IsMounted() == true ) then
  116.         player:Dismount()
  117.     else
  118.         unit:GossipCreateMenu(3000, player, 0)
  119.         unit:GossipMenuAddItem(2, "Zurück zur Basis", 20, 0)
  120.         unit:GossipMenuAddItem(2, "|cff008080New|r: Sirako, Frostkoenigin", 30, 0)
  121.         unit:GossipMenuAddItem(0, "Nevermind", 999, 0)
  122.         unit:GossipSendMenu(player)
  123.     end
  124. end
  125.  
  126. function On_Select(unit, event, player, id, intid, code)
  127.     if(intid == 999) then
  128.         unit:GossipComplete()
  129.         unit:SendChatMessage(12, 0, "Komm jeder Zeit zu mir zurück "..player:GetName()..".")
  130.     end
  131.    
  132.     if(intid == 20) then
  133.         player:SetMount(0)
  134.         player:Land()
  135.         unit:GossipComplete()
  136.         unit:SendChatMessage(42, 0, "Haltet euch fest "..player:GetName()..".")
  137.         local Taxi = LuaTaxi:CreateTaxi()
  138.         Taxi:AddPathNode(1, 5461.773438, -2736.792236, 1482.501953)
  139.         Taxi:AddPathNode(1, 5564.753906, -2535.535400, 1505.039429)
  140.         Taxi:AddPathNode(1, 5550.690430, -2443.961426, 1499.921509)
  141.         Taxi:AddPathNode(1, 5499.271973, -2420.579590, 1498.197998)
  142.         Taxi:AddPathNode(1, 5445.145996, -2292.578613, 1491.445313)
  143.         Taxi:AddPathNode(1, 5326.731934, -2186.283203, 1340.795654)
  144.         Taxi:AddPathNode(1, 5254.010742, -2053.023682, 1352.743408)
  145.         Taxi:AddPathNode(1, 5186.775879, -1957.523926, 1403.284424)
  146.         Taxi:AddPathNode(1, 4982.904297, -1740.663574, 1342.307739)
  147.         player:StartTaxi(Taxi, 21520)
  148.     end
  149.    
  150.     if(intid == 30) then
  151.         player:SetMount(0)
  152.         player:Land()
  153.         unit:GossipComplete()
  154.         unit:SendChatMessage(42, 0, "|cff008080Es geht los "..player:GetName().." haltet euch gut fest!|r")
  155.         local Taxi = LuaTaxi:CreateTaxi()
  156.         Taxi:AddPathNode(1, 5474.347168, -2718.640869, 1483.324097)
  157.         Taxi:AddPathNode(1, 5553.835938, -2586.887695, 1509.349976)
  158.         Taxi:AddPathNode(1, 5558.419434, -2472.923096, 1510.170410)
  159.         Taxi:AddPathNode(1, 5502.676758, -2399.053955, 1496.999023)
  160.         Taxi:AddPathNode(1, 5434.945313, -2280.050781, 1477.145386)
  161.         Taxi:AddPathNode(1, 5313.305664, -2205.257813, 1359.151245)
  162.         Taxi:AddPathNode(1, 5273.529297, -2153.827393, 1302.432861)
  163.         Taxi:AddPathNode(1, 5262.229492, -2104.759766, 1305.736450)
  164.         Taxi:AddPathNode(1, 5298.319336, -2076.415283, 1307.696533)
  165.         Taxi:AddPathNode(1, 5339.632324, -2119.006348, 1288.407959)
  166.         Taxi:AddPathNode(1, 5353.417969, -2132.461182, 1285.640869)
  167.         player:StartTaxi(Taxi, 21520)
  168.     end
  169. end
  170.  
  171. RegisterUnitGossipEvent(41006, 1, "On_Talk")
  172. RegisterUnitGossipEvent(41006, 2, "On_Select")
Advertisement
Add Comment
Please, Sign In to add comment