Advertisement
martintokio

Untitled

Jun 17th, 2025
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.60 KB | None | 0 0
  1. label:bossSpot1
  2. goto:1284,1719,7,0
  3. poscheck:bossSpot1,1,1284,1719,7
  4. use:1285,1720,7
  5. function:[[
  6.  
  7. --Walk On Item
  8.  
  9. local id = 15989
  10.  
  11. local distance = 1
  12.  
  13. function findObjectInMap(id, distance)
  14.  
  15. local tiles = g_map.getTiles(posz())
  16.  
  17.    for i, tile in ipairs(tiles) do
  18.  
  19.     for u, item in ipairs(tile:getItems()) do
  20.  
  21.       if item:getId() == id and getDistanceBetween(pos(), tile:getPosition()) <= distance then
  22.  
  23.         autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
  24.  
  25.           CaveBot.delay(500)
  26.  
  27.           return
  28.  
  29.       end
  30.  
  31.     end
  32.  
  33. end
  34.  
  35. end
  36.  
  37. findObjectInMap(id, distance)
  38.  
  39. return true
  40.  
  41.  
  42. ]]
  43. label:bossAlive
  44. function:[[
  45.  
  46. --Check Bosses
  47.  
  48. local minMonsters = 1
  49.  
  50. local whitelistMonsters = { "big dinozaur", "elite hobo", "big bandit", "infected saibamen", "mystic namekjin", "mystic cooler", "ultra namekjin", "golden cell", "gold cell", "gold majin", "gold namekjin", "mystic janemba", "mystic shin", "mystic jiren", "fury bardock", "mystic uub", "mystic machin", "mystic invader", "legendary saiyan", "mystic tsuful", "mystic tenshin", "espinor", "ultra warrior", "evil legendary tsuful", "dark kenny", "strong legendary krillin", "strong ice dragon", "strong fire dragon", "dabura", "doton ninja", "king emeads", "ivision", "ultra tapion", "ultra  majin", "strong ancient bandit", "strong xicor", "strong brolly", "gogeta ssj4", "gold janemba", "gold beerus", "explosive barrel", "dr gero", "fire ball"}
  51.  
  52. local creatureCount = 0
  53.  
  54. for _, mob in ipairs(getSpectators(posz())) do
  55.  
  56.     if mob:isMonster() and table.find(whitelistMonsters, mob:getName():lower()) then
  57.  
  58.         creatureCount = creatureCount + 1
  59.  
  60.     end
  61.  
  62. end
  63.  
  64. if creatureCount >= minMonsters then
  65.  
  66.     CaveBot.gotoLabel("bossAlive")
  67.  
  68.     CaveBot.delay(5000)
  69.  
  70. end
  71.  
  72. return creatureCount >= minMonsters
  73.  
  74.  
  75. ]]
  76. label:bossSpot2
  77. goto:1284,1719,7,0
  78. poscheck:bossSpot2,1,1284,1719,7
  79. function:[[
  80.  
  81. --Walk On Item
  82.  
  83. local id = 15989
  84.  
  85. local distance = 1
  86.  
  87. function findObjectInMap(id, distance)
  88.  
  89. local tiles = g_map.getTiles(posz())
  90.  
  91.    for i, tile in ipairs(tiles) do
  92.  
  93.     for u, item in ipairs(tile:getItems()) do
  94.  
  95.       if item:getId() == id and getDistanceBetween(pos(), tile:getPosition()) <= distance then
  96.  
  97.         autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
  98.  
  99.           CaveBot.delay(500)
  100.  
  101.           return
  102.  
  103.       end
  104.  
  105.     end
  106.  
  107. end
  108.  
  109. end
  110.  
  111. findObjectInMap(id, distance)
  112.  
  113. return true
  114.  
  115.  
  116. ]]
  117. use:1285,1720,7
  118. function:[[
  119.  
  120. --Check Bosses
  121.  
  122. local minMonsters = 1
  123.  
  124. local whitelistMonsters = { "big dinozaur", "elite hobo", "big bandit", "infected saibamen", "mystic namekjin", "mystic cooler", "ultra namekjin", "golden cell", "gold cell", "gold majin", "gold namekjin", "mystic janemba", "mystic shin", "mystic jiren", "fury bardock", "mystic uub", "mystic machin", "mystic invader", "legendary saiyan", "mystic tsuful", "mystic tenshin", "espinor", "ultra warrior", "evil legendary tsuful", "dark kenny", "strong legendary krillin", "strong ice dragon", "strong fire dragon", "dabura", "doton ninja", "king emeads", "ivision", "ultra tapion", "ultra  majin", "strong ancient bandit", "strong xicor", "strong brolly", "gogeta ssj4", "gold janemba", "gold beerus", "explosive barrel", "dr gero", "fire ball"}
  125.  
  126. local creatureCount = 0
  127.  
  128. for _, mob in ipairs(getSpectators(posz())) do
  129.  
  130.     if mob:isMonster() and table.find(whitelistMonsters, mob:getName():lower()) then
  131.  
  132.         creatureCount = creatureCount + 1
  133.  
  134.     end
  135.  
  136. end
  137.  
  138. if creatureCount >= minMonsters then
  139.  
  140.     CaveBot.gotoLabel("bossAlive")
  141.  
  142.     CaveBot.delay(5000)
  143.  
  144. end
  145.  
  146. return creatureCount >= minMonsters
  147.  
  148.  
  149. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement