Hello There, Guest! Login Register


moveToWater() on Route 6 or Vermilion
#1
if getMapName() == "Pokecenter Vermilion" then
           moveToMap("Vermilion City")
       elseif getMapName() == "Vermilion City" then
           moveToMap("Route 6")
       elseif getMapName() == "Route 6" then
           moveToWater()
end

moveToWater() won't work on Route 6. (also moveToRectangle(15, 35, 30, 41) cause bot not moving)

I tested moveToGrass() and it worked fine.

I also tested this one and it didn't work :
    elseif isPokemonUsable(1) and getRemainingPowerPoints(1,move) > 1 then

        -- Way there
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
--            moveToWater()
--            moveToRectangle(7, 13, 18, 34)
        end
    -- Way home
    else
        if getMapName() == "Vermilion City" then
            moveToMap("Pokecenter Vermilion")
        elseif getMapName() == "Pokecenter Vermilion" then
            usePokecenter()
        end
    end

Grüße!
 
Reply
#2
Remember that lua is case sensitive so be sure that you write "moveToWater" instead of "moveTowater"
 
Reply
#3
as you see in the code, there are no typos.
i also definetly have poke with surf in team.
 
Reply
#4
Does Route 7 even have water? Just checked the official map and it doesn't, not sure if its included in the pro maps (is it accessible?)
penguins
 
Reply
#5
ofc there is water.. pls stop to assume i'm a stupid noob.
 
Reply
#6
Nobody thinks you're stupid but you wrote Route 7 in the title and there no water haha
this should work:
function onPathAction()
    
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then    
            moveToRectangle(12, 40, 15, 40)
        end

    else
        if getMapName() == "Route 6" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
                moveToMap("Pokecenter Vermilion")
        elseif getMapName() == "Pokecenter Vermilion" then
            usePokecenter()
        end
    end
end
 
Reply
#7
Elunius ofc there is water.. pls stop to assume i'm a stupid noob.


I suggest you go check again, there is no water in route 7. (As per your title + post, your script on the otherhand...)
penguins
 
Reply
#8
(2016-08-20, 18:43:28)gamer233
Elunius ofc there is water.. pls stop to assume i'm a stupid noob.


I suggest you go check again, there is no water in route 7. (As per your title + post, your script on the otherhand...)

indeed. but its definetly route 6 and vermilion. i edited it
 
Reply
#9
(2016-08-20, 15:27:52)Lefty__ Nobody thinks you're stupid but you wrote Route 7 in the title and there no water haha
this should work:
function onPathAction()
    
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then    
            moveToRectangle(12, 40, 15, 40)
        end

    else
        if getMapName() == "Route 6" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
                moveToMap("Pokecenter Vermilion")
        elseif getMapName() == "Pokecenter Vermilion" then
            usePokecenter()
        end
    end
end
tested this one to. ( i guess its the delivered one) and this didn't work either.

THATS why i reported a bug. I did several tests myself, there is no error in script. moveToWater() and moveToRectangle() just don't work.
 
Reply
#10
(2016-08-22, 07:14:08)Elunius
(2016-08-20, 15:27:52)Lefty__ Nobody thinks you're stupid but you wrote Route 7 in the title and there no water haha
this should work:
function onPathAction()
    
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then    
            moveToRectangle(12, 40, 15, 40)
        end

    else
        if getMapName() == "Route 6" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
                moveToMap("Pokecenter Vermilion")
        elseif getMapName() == "Pokecenter Vermilion" then
            usePokecenter()
        end
    end
end
tested this one to. ( i guess its the delivered one) and this didn't work either.

THATS why i reported a bug. I did several tests myself, there is no error in script. moveToWater() and moveToRectangle() just don't work.
Make sure you have Pokemon with surf. Its work fine on me.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#11
(2016-08-22, 07:16:29)redskhie
(2016-08-22, 07:14:08)Elunius
(2016-08-20, 15:27:52)Lefty__ Nobody thinks you're stupid but you wrote Route 7 in the title and there no water haha
this should work:
function onPathAction()
    
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToMap("Route 6")
        elseif getMapName() == "Route 6" then    
            moveToRectangle(12, 40, 15, 40)
        end

    else
        if getMapName() == "Route 6" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
                moveToMap("Pokecenter Vermilion")
        elseif getMapName() == "Pokecenter Vermilion" then
            usePokecenter()
        end
    end
end
tested this one to. ( i guess its the delivered one) and this didn't work either.

THATS why i reported a bug. I did several tests myself, there is no error in script. moveToWater() and moveToRectangle() just don't work.
Make sure you have Pokemon with surf. Its work fine on me.

OFC i have poke with surf. My Poliwag is not on 1st place, but definetly have learned surf.
Every time i change the map the the one with the water my bot just stop execute and then stop.
After relog the bot stand right at the entrance.
 
Reply
#12
I'ts because you don't have pokemon with surf. That's the only reason for me.

[Image: WX09ZSB.png]
God Karp Trainer loading... *splash*splash Huh

 
Reply
#13
(2016-08-22, 07:29:38)redskhie I'ts because you don't have pokemon with surf. That's the only reason for me.

[Image: WX09ZSB.png]

As i said: i HAVE surf with me. i swim on water RIGHT now (not with bot)
ALSO: if i start on water, it works UNTIL i have to leave the water and go back on it.

could some1 pls test this:
    elseif isPokemonUsable(1) and getRemainingPowerPoints(1,move) > 1 then

        -- Way there
        if getMapName() == "Pokecenter Vermilion" then
            moveToMap("Vermilion City")
        elseif getMapName() == "Vermilion City" then
            moveToWater()

        end
    -- Way home
    else
        if getMapName() == "Vermilion City" then
            moveToMap("Pokecenter Vermilion")
        elseif getMapName() == "Pokecenter Vermilion" then
            usePokecenter()
        end
    end
 
Reply
#14
elseif isPokemonUsable(1) and getRemainingPowerPoints(1,move) > 1 then

Maybe by putting the move name instead of "move" and using moveToRectangle should work, i dont know why are you having so many issues
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)