Posts: 1
Threads: 1
Joined: Oct 2018
2018-10-21, 13:04:58
(This post was last modified: 2018-10-21, 13:13:12 by Knull.)
Hello Im New To
PRO and Lua Scripting so i Thought id try it out and it Doesnt seem to Work.Id like a Little Help with the Script and Would also like to Know How to add a Mount in the Programming.In The Beginning It Gave Me A Error
chunk_1:(54,0): 'end' expected near '<eof>' -- I Would Like to Know Why This Is
and then i tweaked a few things then the bot just wasnt moving
Show ContentScript:
name = "Pikachu Catcher With Sync & False Swiper"
author = "Knull"
description = "Catches Pikachu In Viridian Forest With Sync In Fist Slot And False Swiper In Second"
function onPathAction()
if isPrivateMessageEnabled() then log("Private messages disabled.") return disablePrivateMessage() end
if isPokemonUsable(1)
and (getRemainingPowerPoints(2, "False Swipe") == 0) -- you can change "Hypnosis" to "Sleep Powder"
then
if getMapName() == "Viridian Forest" then
moveToMap("Route 2 Stop2")
elseif getMapName() == "Route 2 Stop2" then
moveToMap("Route 2")
elseif getMapName() == "Route 2" then
moveToMap("Pewter City")
elseif getMapName() == "Pewter City" then
moveToMap("Pokecenter Pewter")
elseif getMapName() == "Pokecenter Pewter" then
usePokecenter()
end
elseif isPokemonUsable(1) then
if getPokemonNature(1) == "Timid" then
if getMapName() == "Pokecenter Pewter" then
moveToMap("Pewter City")
elseif getMapName() == "Pewter City" then
moveToMap("Route 2")
elseif getMapName() == "Route 2" then
moveToMap("Route 2 Stop2")
elseif getMapName() == "Route 2 Stop2" then
moveToMap("Viridian Forest")
elseif getMapName() == "Viridian Forest" then
moveToGrass()
end
end
end
end
function onBattleAction()
if isWildBattle() and (isOpponentShiny() or getOpponentName() == "Pikachu") then
if getActivePokemonNumber() == 1 then
if sendPokemon(2) then
return
end
end
if getActivePokemonNumber() == 2 and getOpponentHealth() > 1 then
if weakAttack() then
return
end
end
if useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") then
return
end
end
return attack() or sendUsablePokemon() or run()
end