Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. ---------------------------------------------
  2. -- Nom : Donjon des Bouftous
  3. -- Zone : Tain?la
  4. -- Type : Combat
  5. -- Version : 0.2
  6. -- Cr?ateur : Shooterah (Modifié par Mayar)
  7.  
  8. -- AJOUTS :
  9. -- -Phoenix use popo rappel
  10. -- -trajet du zaap tainéla jusqu'au donjon
  11. -- -banque use popo rappel(a voir) et kamas items
  12. -- -hdv à voir
  13. -- -monter dd à voir
  14. ---------------------------------------------
  15.  
  16. MAX_PODS = 80
  17. AUTO_DELETE = {2425, 1728, 2422, }
  18.  
  19. DISPLAY_FIGHT_COUNT = true
  20.  
  21. MIN_MONSTERS = 1
  22. MAX_MONSTERS = 8
  23.  
  24. function enter()
  25. if inventory:itemCount(1568) > 0 then
  26. npc:npc(173,3)
  27. npc:reply(-1)
  28. end
  29. end
  30.  
  31.  
  32. function leave()
  33. if map:onMap("1312772") then
  34. npc:npc(173,3)
  35. npc:reply(-1)
  36. end
  37. end
  38.  
  39.  
  40. function cle()
  41. npc:npcBank(-1)
  42. exchange:putAllItems()
  43. exchange:getItem(1568,4)
  44. exchange:getItem(548,5)
  45. exchange:getkamas(500)
  46. npc:leaveDialog()
  47. map:moveToCell(396)
  48. inventory:useItem(548)
  49.  
  50. end
  51.  
  52. -----------------------------
  53. -----------------------------------
  54.  
  55.  
  56. function poporap()
  57.  
  58. inventory:useItem(548)
  59.  
  60. end
  61.  
  62. function phenix()
  63.  
  64. return{
  65.  
  66. {map= "2,-12", path = "right", door = "272"},
  67. {map= "3,-12", custom = poporap},
  68.  
  69. }
  70.  
  71. end
  72.  
  73.  
  74. function move()
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. return {
  83.  
  84. {map= "3,-12", custom = poporap},
  85.  
  86. { map = "1,-32", path = "top" },
  87. { map = "1,-32", path = "top" },
  88. { map = "1,-33", path = "top" },
  89. { map = "1,-34", path = "right" },
  90.  
  91. { map = "1314", path = "bottom" },
  92. { map = "5,-22", path = "left" },
  93. { map = "4,-31", path = "right" },
  94. { map = "3,-32", path = "right" },
  95. { map = "2,-32", path = "right" },
  96. { map = "4,-17", path = "bottom" },
  97. { map = "4,-18", path = "bottom" },
  98. { map = "4,-19", path = "bottom" },
  99. { map = "4,-20", path = "bottom" },
  100. { map = "4,-21", path = "bottom" },
  101. { map = "4,-22", path = "bottom" },
  102. { map = "5,-23", path = "bottom" },
  103. { map = "5,-24", path = "bottom" },
  104. { map = "5,-25", path = "bottom" },
  105. { map = "5,-26", path = "bottom" },
  106. { map = "5,-27", path = "bottom" },
  107. { map = "5,-28", path = "bottom" },
  108. { map = "5,-29", path = "bottom" },
  109. { map = "5,-30", path = "bottom" },
  110. { map = "5,-31", path = "bottom" },
  111. { map = "4,-32", path = "bottom" },
  112. { map = "2,-33", path = "bottom" },
  113. { map = "84674566", door = "303" },
  114. { map = "83887104", custom = cle },
  115. { map = "1311744", forcefight = true }, -- 1ère salle
  116. { map = "1313792", forcefight = true }, -- 2ème salle
  117. { map = "1310722", forcefight = true }, -- 3ème salle
  118. { map = "1312770", forcefight = true }, -- 4ème salle
  119. { map = "1311748", forcefight = true }, -- Dernière salle
  120. { map = "1312772", custom = leave },
  121.  
  122. }
  123. function bank()
  124. return {
  125.  
  126. }
  127. end
  128.  
  129.  
  130. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement