Advertisement
Guest User

teleporter

a guest
Nov 28th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. quest tp begin
  2. state start begin
  3.  
  4. function warp(x, y, lv, gold)
  5. if pc.get_level() < lv then
  6. say_reward("Devi essere almeno a lv "..lv..".")
  7. return
  8. end
  9. if pc.get_gold() < gold then
  10. say_reward("Devi avere almeno "..gold.." Yang.")
  11. return
  12. end
  13. pc.change_gold(-gold)
  14. pc.warp(x,y)
  15. end
  16.  
  17. when 9004.chat."Voglio Viaggiare" or 70021.use with pc.get_map_index()!=110 or pc.get_map_index()!=111 or pc.get_map_index()!=113 or pc.get_map_index()!=114 begin
  18. say_title("Teleporter:")
  19. say("Dove vuoi andare?")
  20. local s = select("Villaggi", "Valle", "Monte", "Torre dei Demoni", "Covo 1", "Covo 2", "Bosco Rosso", "Atlantide", "Valle degli Evocatori (Exp)", "Zona Oscura (Drop)", "Terra Indominata (Drop)", "Chiudi")
  21. if s == 1 then
  22. local s = select("Villo 1 Shinsoo", "Villo 1 Chunjo", "Villo 1 Jinno", "Villo 2 Shinsoo", "Villo 2 Chunjo", "Villo 2 Jinno", "Chiudi")
  23. if s == 1 then
  24. pc . warp ( 469300 , 964200 )
  25. elseif s == 2 then
  26. pc . warp ( 55700 , 157900 )
  27. elseif s == 3 then
  28. pc . warp ( 969600 , 278400 )
  29. elseif s == 4 then
  30. pc . warp ( 360800 , 877600 )
  31. elseif s == 5 then
  32. pc . warp ( 138500 , 234900 )
  33. elseif s == 6 then
  34. pc . warp ( 873100 , 242600 )
  35. end
  36. elseif s == 2 then
  37. local empire = pc.get_empire()
  38. if empire == 1 then
  39. tp.warp(334900 , 755800, 20, 2500)
  40. elseif empire == 2 then
  41. tp.warp(346400 , 733200, 20, 2500)
  42. elseif empire == 3 then
  43. tp.warp(317200 , 732200, 20, 2500)
  44. end
  45. elseif s == 3 then
  46. tp.warp(491700, 173600, 40, 5000)
  47. elseif s == 4 then
  48. tp.warp(590000, 111600, 40, 5000)
  49. elseif s == 5 then
  50. tp.warp(60000, 497500, 30, 5000)
  51. elseif s == 6 then
  52. if pc.count_item(71095) >= 1 then
  53. pc.warp(704000, 462500)
  54. pc.remove_item(71095, 1)
  55. else
  56. say("Devi avere il Biglietto del Passaggio!")
  57. say("Ritorna quando lo avrai!")
  58. end
  59. elseif s == 7 then
  60. tp . warp ( 1119900 , 70800 , 60, 10000)
  61. elseif s == 8 then
  62. tp.warp(241300, 1275500, 75, 20000)
  63. elseif s == 9 then
  64. tp . warp (1104600, 1790500, 100, 50000)
  65. elseif s == 10 then
  66. tp . warp (1113900, 1517100, 95, 50000)
  67. elseif s == 11 then
  68. tp . warp (1137500, 1524400, 86, 50000)
  69. end
  70. end
  71.  
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement