Hello There, Guest! Login Register


from route 6 to route 7
#1
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Route 6" then
moveToMap("Saffron City")
elseif getMapName() == "Saffron City" then
moveToMap("Route 7")
elseif getMapName() == "Route 7" then
moveToGrass()
end

end
end


Doesnt seem to work, starting on route 6

[20:57:29] Bot started
[20:57:39] No action executed: stopping the bot.
[20:57:39] Bot stopped
 
Reply
#2
    if isPokemonUsable(1) then
        if getMapName() == "Route 6" then
            moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then
            moveToRoute("Route 7")
        elseif getMapName() == "Route 7" then
            moveToGrass()
        end
    
    end
end

Have fun
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#3
Someone
    if isPokemonUsable(1) then
        if getMapName() == "Route 6" then
            moveToMap("Saffron City")
        elseif getMapName() == "Saffron City" then
            moveToRoute("Route 7")
        elseif getMapName() == "Route 7" then
            moveToGrass()
        end
    
    end
end

Have fun

[20:57:29] Bot started
[20:57:39] No action executed: stopping the bot.
[20:57:39] Bot stopped
 
Reply
#4
Did you set a onBattleAction() ?
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#5
Someone Did you set a onBattleAction() ?

function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Route 6" then
moveToMap("Saffron City")
elseif getMapName() == "Saffron City" then
moveToRoute("Route 7")
elseif getMapName() == "Route 7" then
moveToGrass()
end

end
end
function onBattleAction()
if isWildBattle() and (isOpponentShiny() or getOpponentName() == "Growlithe" or isAlreadyCaught() == false) then
if getActivePokemonNumber() == 1 then
return sendPokemon(2)
if (getOpponentHealth() > 1) then
return useMove("False Swipe")
elseif (getOpponentHealth() == 1) then
return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball")
end
end

if getActivePokemonNumber() == 1 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
 
Reply
#6
name = "testname"
authro = "test"
description = [[description]]

maybe? (to refresh a script, you need to reimport it)
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#7
Someone name = "testname"
authro = "test"
description = [[description]]

maybe? (to refresh a script, you need to reimport it)

Nah, figured it out
Thanks for the help !

function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Route 6" then
moveToMap("Route 6 Stop House")
elseif getMapName() == "Route 6 Stop House" then
moveToMap("Saffron City")
elseif getMapName() == "Saffron City" then
moveToMap("Route 7 Stop House")
elseif getMapName() == "Route 7 Stop House" then
moveToMap("Route 7")
elseif getMapName() == "Route 7" then
moveToGrass()
end
 
Reply
#8
Oh, there was a stop house.. xD
Have fun !
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)