Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- label:bossSpot1
- goto:1284,1719,7,0
- poscheck:bossSpot1,1,1284,1719,7
- use:1285,1720,7
- function:[[
- --Walk On Item
- local id = 15989
- local distance = 1
- function findObjectInMap(id, distance)
- local tiles = g_map.getTiles(posz())
- for i, tile in ipairs(tiles) do
- for u, item in ipairs(tile:getItems()) do
- if item:getId() == id and getDistanceBetween(pos(), tile:getPosition()) <= distance then
- autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
- CaveBot.delay(500)
- return
- end
- end
- end
- end
- findObjectInMap(id, distance)
- return true
- ]]
- label:bossAlive
- function:[[
- --Check Bosses
- local minMonsters = 1
- 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"}
- local creatureCount = 0
- for _, mob in ipairs(getSpectators(posz())) do
- if mob:isMonster() and table.find(whitelistMonsters, mob:getName():lower()) then
- creatureCount = creatureCount + 1
- end
- end
- if creatureCount >= minMonsters then
- CaveBot.gotoLabel("bossAlive")
- CaveBot.delay(5000)
- end
- return creatureCount >= minMonsters
- ]]
- label:bossSpot2
- goto:1284,1719,7,0
- poscheck:bossSpot2,1,1284,1719,7
- function:[[
- --Walk On Item
- local id = 15989
- local distance = 1
- function findObjectInMap(id, distance)
- local tiles = g_map.getTiles(posz())
- for i, tile in ipairs(tiles) do
- for u, item in ipairs(tile:getItems()) do
- if item:getId() == id and getDistanceBetween(pos(), tile:getPosition()) <= distance then
- autoWalk(tile:getPosition(), 100, {ignoreNonPathable = true})
- CaveBot.delay(500)
- return
- end
- end
- end
- end
- findObjectInMap(id, distance)
- return true
- ]]
- use:1285,1720,7
- function:[[
- --Check Bosses
- local minMonsters = 1
- 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"}
- local creatureCount = 0
- for _, mob in ipairs(getSpectators(posz())) do
- if mob:isMonster() and table.find(whitelistMonsters, mob:getName():lower()) then
- creatureCount = creatureCount + 1
- end
- end
- if creatureCount >= minMonsters then
- CaveBot.gotoLabel("bossAlive")
- CaveBot.delay(5000)
- end
- return creatureCount >= minMonsters
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement