2016-08-02, 13:46:58
(This post was last modified: 2016-08-02, 13:53:53 by sarafciger.)
In case people dont have it already in the bot folders
Just make a notepad with the code in it and name it "Route 22.lua"
Just make a notepad with the code in it and name it "Route 22.lua"
name = "Leveling: Route 22 (near Viridian)"
author = "Silv3r"
function onPathAction()
if getPokemonHealth(1) > 0 then
if getMapName() == "Pokecenter - Viridian" then
moveToCell(8, 14)
waitForTeleportation()
elseif getMapName() == "Viridian City" then
moveToRectangle(14, 25, 14, 28)
waitForTeleportation()
elseif getMapName() == "Route 22" then
moveToRectangle(44, 15, 49, 19)
end
else
if getMapName() == "Route 22" then
moveToRectangle(59, 12, 59, 15)
waitForTeleportation()
elseif getMapName() == "Viridian City" then
moveToCell(40, 35)
waitForTeleportation()
elseif getMapName() == "Pokecenter - Viridian" then
talkToNpcOnCell(8, 10)
end
end
end
function onBattleAction()
attack()
end