Hello There, Guest! Login Register


Rootopolis City , Farm on water
#1
That script not working can any1 fix the mistake?

name = "Leveling to Sootopolis City"
author = "THOMAS"

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Sootopolis City" then
            moveToWater()
        end
    else
        if getMapName() == "Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Sootopolis City" then
            moveToMap("Pokecenter Sootopolis City")
        elseif getMapName() == "Pokecenter Sootopolis City" then
            usePokecenter()
        end
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        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
#2
Surfing in Hoenn is not supported with the version 2.0.1.0. Wait until the version 2.0.2.0.
 
Reply
#3
thanks a lot for the info , when it will be released?
 
Reply
#4
Now.
 
Reply
#5
Perfect but i still cant because its on the same town , Like im on Rootopolis city and i can farm in town .. how this gonna work ?
 
Reply
#6
Don't think too complicated. If you only want to execute 2 actions, just write 2 actions, not 3.
 
Reply
#7
not script not moving , if u find some free time try to fix my mistakes , Im kinda newbie overthere Sad
 
Reply
#8
if any can find find my mistakes...
 
Reply
#9
I'll help you when I'm at home. Wink
 
Reply
#10
i got this error [1:18:50 PM] error: moveToWater: the script can only execute one action per frame.

name = "Leveling to Sootopolis City"
author = "damn deoxys"

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Sootopolis City" then
            moveToMap("Sootopolis City")
    
            moveToWater()
        end
    else
        if getMapName() == "Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Pokecenter Sootopolis City" then
            usePokecenter()
        end
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        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
#11
thmc i got this error [1:18:50 PM] error: moveToWater: the script can only execute one action per frame.

name = "Leveling to Sootopolis City"
author = "damn deoxys"

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Sootopolis City" then
            moveToMap("Sootopolis City")
    
            moveToWater()
        end
    else
        if getMapName() == "Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Pokecenter Sootopolis City" then
            usePokecenter()
        end
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        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

I see what you have done wrong. At the moment I'm just Online on My Smartphone, I can't edit your code, sorry.
 
Reply
#12
Good. Royal thanks a lot for the respond , im waiting for ur answer on my problem when u r available! Smile
 
Reply
#13
thmc Good. Royal thanks a lot for the respond , im waiting for ur answer on my problem when u r available! Smile

I'm at home in 3 hours, I hope that isn't a problem for you.
 
Reply
#14
Ofc no! Take ur time and thanks a lot for your support ! Smile
 
Reply
#15
You should keep trying in the meantime, thmc, you are not far from a working code.
The original script uses 3 maps, but you only need 2. What can you change? What do you need to remove?
 
Reply
#16
still didnt fixed that
 
Reply
#17
thmc still didnt fixed that

I'm at home in 30 minutes.
 
Reply
#18
Perfect!
 
Reply
#19
I'm at home right now. Give me a few minutes.

name = "Leveling to Sootopolis City"
author = "damn deoxys"

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Pokecenter Sootopolis City" then
            moveToWater()
        end
    else
        if getMapName() == "Sootopolis City" then
            moveToMap("Sootopolis City")
        elseif getMapName() == "Pokecenter Sootopolis City" then
            usePokecenter()
        end
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        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

It should be fixed. Only one question left, are you sure that the name of the Pokecenter is "Pokecenter Sootopolis City"? The most haven't a "City" included in their names. Just want to be sure. Tongue
 
Reply
#20
This script posted by Royal contains two errors, but they are easy to see and easy to fix, it's just about map names.
 
Reply
#21
Silv3r This script posted by Royal contains two errors, but they are easy to see and easy to fix, it's just about map names.

Well, I don't have a account which already reached Hoenn, so I can't check if the map names are correct. ._.
 
Reply
#22
Puhh i cant find any mistake .. :S

Sootopolis City is correct
Pokecenter Sootopolis City isnt that correct? i pressed /loc to see it
 
Reply
#23
thmc Puhh i cant find any mistake .. :S

Sootopolis City is correct
Pokecenter Sootopolis City isnt that correct? i pressed /loc to see it

Just move inside the Pokecenter and take a look into the right corner of your display. Is it called "Pokecenter Sootopolis City" or "Pokecenter Sootopolis"?
 
Reply
#24
im gonna check it righ now again .
 
Reply
#25
yes the only this im not sure is up right on my screen says Pokemon in Sootopolis City , But Pokecenter is correct i must write what i find in /loc or what i see up right on my screen??
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)