Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. //---------------------------------------------
  2. //-- Script created with OwlTouch
  3. //---------------------------------------------
  4. //-- Créateur :
  5. //-- Nom :
  6. //-- Type :
  7. //-- Zone :
  8. //-- Métier :
  9. //---------------------------------------------
  10. const config = {
  11. MAX_PODS: 90,
  12. MIN_MONSTERS: 3,
  13. MAX_MONSTERS: 8,
  14. MIN_MONSTERS_LEVEL: 1,
  15. MAX_MONSTERS_LEVEL: 1000,
  16. FORBIDDEN_MONSTERS: [48],
  17. MANDATORY_MONSTERS: [101],
  18. ELEMENTS_TO_GATHER: [],
  19. BANK_PUT_ITEMS: [],
  20. AUTO_DELETE: [],
  21. OPEN_BAGS: false,
  22. DISPLAY_GATHER_COUNT: false,
  23. DISPLAY_FIGHT_COUNT: true,
  24. AUTO_REGEN: {
  25. minLife: 60,
  26. maxLife: 80,
  27. items: [],
  28. store: 0
  29. }
  30. }
  31.  
  32. function* FightBouftou()
  33. {
  34. if(canFight([config.FORBIDDEN_MONSTERS], [36], 2, 6, 1, 100)) //Si il y a des bouftous sur la map
  35. {
  36. yield * fight([config.FORBIDDEN_MONSTERS], [36], 2, 6, 1, 100); //Attaque les bouftous
  37. }
  38. else //Si il n'y a pas de bouftous
  39. {
  40. if(canFight([config.FORBIDDEN_MONSTERS], [], 2, 6, 1, 100)) //Si il y a n'importe quel groupe de mobs sur la map
  41. {
  42. yield * fight([config.FORBIDDEN_MONSTERS], [], 2, 6, 1, 100); //Attaque n'importe quel groupe de mob
  43. }
  44. else //Si il n'y a pas de mobs
  45. {
  46. printMessage("pas de mobs sur la map !");
  47. }
  48. }
  49. }
  50.  
  51. const move = [
  52. { map: "5,-21", path: "top" },
  53. { map: "5,-22", path: "top" },
  54. { map: "5,-23", path: "top" },
  55. { map: "5,-24", path: "top" },
  56. { map: "5,-25", path: "top" },
  57. { map: "5,-26", path: "top" },
  58. { map: "5,-27", path: "top" },
  59. { map: "5,-28", path: "left" },
  60. { map: "5,-29", path: "top" },
  61. { map: "5,-30", path: "top" },
  62. { map: "5,-31", path: "left" },
  63. { map: "4,-32", path: "left" },
  64. { map: "4,-31", path: "top" },
  65. { map: "1,-29", path: "left", fight: true, custom: FightBouftou},
  66. { map: "1,-33", path: "right", fight: true, custom: FightBouftou},
  67. { map: "2,-32", path: "left", fight: true, custom: FightBouftou},
  68. { map: "1,-32", path: "bottom", fight: true, custom: FightBouftou},
  69. { map: "1,-30", path: "bottom", fight: true, custom: FightBouftou},
  70. { map: "0,-32", path: "top", fight: true, custom: FightBouftou},
  71. { map: "5,-17", path: "top" },
  72. { map: "5,-18", path: "top" },
  73. { map: "5,-19", path: "top" },
  74. { map: "5,-20", path: "top" },
  75. { map: 84674566, path: "right" },
  76. { map: 83887104, path: "396" },
  77. { map: "5,-16", path: "top" },
  78. { map: "4,-28", path: "top" },
  79. { map: "4,-29", path: "right" },
  80. { map: "-1,-29", path: "top", fight: true, custom: FightBouftou},
  81. { map: "0,-29", path: "left", fight: true, custom: FightBouftou},
  82. { map: "4,-19", path: "right" },
  83. { map: "-2,-30", path: "top", fight: true, custom: FightBouftou},
  84. { map: "-2,-31", path: "right", fight: true, custom: FightBouftou},
  85. { map: "-1,-30", path: "left", fight: true, custom: FightBouftou},
  86. { map: "1,-31", path: "left", fight: true, custom: FightBouftou},
  87. { map: "0,-31", path: "bottom", fight: true, custom: FightBouftou},
  88. { map: "0,-30", path: "right", fight: true, custom: FightBouftou},
  89. { map: "-1,-31", path: "top", fight: true, custom: FightBouftou},
  90. { map: "-1,-32", path: "right", fight: true, custom: FightBouftou},
  91. { map: "2,-33", path: "right", fight: true, custom: FightBouftou},
  92. { map: "3,-33", path: "bottom", fight: true, custom: FightBouftou},
  93. { map: "3,-32", path: "left", fight: true, custom: FightBouftou},
  94. { map: "4,-12", path: "right" },
  95. { map: "5,-12", path: "top" },
  96. { map: "5,-13", path: "top" },
  97. { map: "5,-14", path: "left" },
  98. { map: "4,-14", path: "top" },
  99. { map: "4,-15", path: "top" },
  100. { map: "3,-12", path: "right" },
  101. { map: "2,-12", path: "right" },
  102. { map: "0,-33", path: "right", fight: true, custom: FightBouftou}
  103. ]
  104.  
  105. const bank = [
  106. { map: "5,-29", path: "left" },
  107. { map: "5,-27", path: "bottom" },
  108. { map: "5,-26", path: "bottom" },
  109. { map: "5,-25", path: "bottom" },
  110. { map: "5,-24", path: "bottom" },
  111. { map: "5,-23", path: "bottom" },
  112. { map: "5,-22", path: "bottom" },
  113. { map: "5,-20", path: "bottom" },
  114. { map: "5,-21", path: "bottom" },
  115. { map: "5,-19", path: "bottom" },
  116. { map: "5,-18", path: "bottom" },
  117. { map: "5,-17", path: "bottom" },
  118. { map: "5,-16", path: "left" },
  119. { map: "5,-30", path: "bottom" },
  120. { map: "4,-32", path: "bottom" },
  121. { map: "4,-31", path: "right" },
  122. { map: "5,-31", path: "bottom" },
  123. { map: "3,-32", path: "right" },
  124. { map: "1,-33", path: "right" },
  125. { map: "2,-33", path: "right" },
  126. { map: "0,-32", path: "top" },
  127. { map: "-1,-29", path: "top" },
  128. { map: "0,-29", path: "left" },
  129. { map: "1,-29", path: "left" },
  130. { map: "1,-32", path: "bottom" },
  131. { map: "1,-30", path: "bottom" },
  132. { map: "4,-28", path: "right" },
  133. { map: "4,-29", path: "bottom" },
  134. { map: "5,-28", path: "bottom" },
  135. { map: 84674566, door: 303 },
  136. { map: 83887104, npcBank: true },
  137. { map: "0,-30", path: "right" },
  138. { map: "-2,-31", path: "right" },
  139. { map: "-1,-32", path: "right" },
  140. { map: "3,-33", path: "bottom" },
  141. { map: "0,-31", path: "bottom" },
  142. { map: "1,-31", path: "left" },
  143. { map: "-1,-30", path: "left" },
  144. { map: "2,-32", path: "left" },
  145. { map: "-1,-31", path: "top" },
  146. { map: "-2,-30", path: "top" },
  147. { map: "4,-19", path: "right" },
  148. { map: "0,-33", path: "right" }
  149. ]
  150.  
  151. const phenix = [
  152. { map: "2,-12", phenix: 272 }
  153. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement