2016-09-02, 16:45:42
hi,
can it be that the bot dont work in valley of steel ?
i write a script and if he leave the pokecenter he dont absolutly nothing and the bot stop
i cant find a solution so i tested it with a simple walk script and its dont work too
can it be that the bot dont work in valley of steel ?
i write a script and if he leave the pokecenter he dont absolutly nothing and the bot stop
name = "Ferroseed catcher"
author = "PROlux"
description = [[This script will catch Ferroseed in Valley of Steak Eastern Peak]]
-- Synch Pokemon on Slot 1
-- False Swipe Pokemon on Slot 2
function onStart()
ferroseedCounter = 0
shinyCounter = 0
end
function onStop()
log("---------------------------------")
log("Ferroseed Counter: " .. ferroseedCounter)
log("Shinies Caught: " .. shinyCounter)
log("---------------------------------")
end
function onPause()
log("---------------------------------")
log("Ferroseed Counter: " .. ferroseedCounter)
log("Shinies Caught: " .. shinyCounter)
log("---------------------------------")
end
function onBattleMessage(wild)
if wild == "A Wild SHINY " then
shinyCounter = shinyCounter + 1
elseif wild == "A Wild [FF9900]Ferroseed[-] Attacks!" then
ferroseedCounter = ferroseedCounter + 1
end
end
function onPathAction()
if (getPokemonStatus(1)=="BURN") and getItemQuantity("Burn Heal")>0 then
return useItemOnPokemon("Burn Heal", 1)
end
if (getPokemonStatus(2)=="BURN") and getItemQuantity("Burn Heal")>0 then
return useItemOnPokemon("Burn Heal", 2)
end
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Eastern Peak" then
moveToMap("Valley of Steel Eastern Peak")
elseif getMapName() == "Valley of Steel Eastern Peak" then
if isMounted() then
moveToRectangle(40, 38, 43, 38)
else
useItem("Bicycle")
log("You are in Bicycle..")
end
end
else
if getMapName() == "Valley of Steel Eastern Peak" then
if isMounted() then
moveToMap("Pokecenter Eastern Peak")
else
useItem("Bicycle")
log("You are in Bicycle..")
end
elseif getMapName() == "Pokecenter Eastern Peak" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Ferroseed" ) then
if getActivePokemonNumber() == 1 then
return sendPokemon(2) or run()
elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
return weakAttack() or run()
elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() == 1 ) then
return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball")
end
end
if getActivePokemonNumber() >= 1 then
return attack() or run()
end
end
i cant find a solution so i tested it with a simple walk script and its dont work too
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Valley of Steel Eastern Peak" then
moveToGrass()
end
end
end