2018-06-06, 17:02:50
(This post was last modified: 2018-06-06, 17:59:39 by manamesjef.)
my script is located down below. i tried adding mount support to it but it gives me this error.
ERROR:
"Could not load script catcher.lua.txt:
chunk_1:(65,0): 'end' expected near '<eof>"
Please someone fix this script and help me pleaseee! :huh:
~~THE ACTUAL SCRIPT~~ !!FIX IT PLEASE!!
function onStart()
wild_count = 0
shiny_count = 0
caught_count = 0
end
function onPathAction()
if isPokemonUsable(1) and isPokemonUsable920 and (getRemainingPowerPoints(2, "False Swipe") >= 1) then
if getMapName() == "Pokecenter Vulcanic Town" then
moveToMap("Vulcan Path")
elseif getMapName() == "Vulcanic Town" then
moveToGrass()
end
else
if getMapName() == "Vulcan Path" then
if not isMounted() then
return useItem("Arcanine Mount")
elseif getMapName() == "Vulcan Path" then
moveToGrass()
end
else
if getMapName() == "Vulcanic Town" then
moveToMap("Vulcan Path")
elseif getMapName() == "Vulcanic Town" then
moveToMap("Vulcan Path")
elseif getMapName() == "Pokecenter Vulcanic Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and isOpponentShiny() then
return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") or sendUsablePokemon() or sendAnyPokemon() or run()
elseif isWildBattle() and getOpponentName() == "Fennekin" then
if getActivePokemonNumber() == 1 then
return sendPokemon(2) or sendUsablePokemon() or sendAnyPokemon() or run()
elseif (getActivePokemonNumber() == 2) and (getOpponentHealth() > 1) then
return useMove("False Swipe") or sendUsablePokemon() or sendAnyPokemon() or run()
elseif getOpponentHealth() == 1 then
return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") or sendUsablePokemon() or sendAnyPokemon() or run()
end
else
return run() or sendUsablePokemon() or attack() or sendAnyPokemon()
end
end
function onPause()
log("pokemons encountered: " .. wild_count)
log("caught count: " .. caught_count)
log("shinies caught: " ..shiny_count)
end
function onBattleMessage(message)
if stringContains(message, "A Wild SHINY ") then
shiny_count = shiny_count + 1
wild_count = wild_count + 1
elseif stringContains(message, "A Wild ") then
wild_count = wild_count + 1
elseif stringContains(message, "Success! You caught ") then
caught_count = caught_count + 1
end
end
someone fuggin reply please
ERROR:
"Could not load script catcher.lua.txt:
chunk_1:(65,0): 'end' expected near '<eof>"
Please someone fix this script and help me pleaseee! :huh:
~~THE ACTUAL SCRIPT~~ !!FIX IT PLEASE!!
function onStart()
wild_count = 0
shiny_count = 0
caught_count = 0
end
function onPathAction()
if isPokemonUsable(1) and isPokemonUsable920 and (getRemainingPowerPoints(2, "False Swipe") >= 1) then
if getMapName() == "Pokecenter Vulcanic Town" then
moveToMap("Vulcan Path")
elseif getMapName() == "Vulcanic Town" then
moveToGrass()
end
else
if getMapName() == "Vulcan Path" then
if not isMounted() then
return useItem("Arcanine Mount")
elseif getMapName() == "Vulcan Path" then
moveToGrass()
end
else
if getMapName() == "Vulcanic Town" then
moveToMap("Vulcan Path")
elseif getMapName() == "Vulcanic Town" then
moveToMap("Vulcan Path")
elseif getMapName() == "Pokecenter Vulcanic Town" then
usePokecenter()
end
end
end
function onBattleAction()
if isWildBattle() and isOpponentShiny() then
return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") or sendUsablePokemon() or sendAnyPokemon() or run()
elseif isWildBattle() and getOpponentName() == "Fennekin" then
if getActivePokemonNumber() == 1 then
return sendPokemon(2) or sendUsablePokemon() or sendAnyPokemon() or run()
elseif (getActivePokemonNumber() == 2) and (getOpponentHealth() > 1) then
return useMove("False Swipe") or sendUsablePokemon() or sendAnyPokemon() or run()
elseif getOpponentHealth() == 1 then
return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") or sendUsablePokemon() or sendAnyPokemon() or run()
end
else
return run() or sendUsablePokemon() or attack() or sendAnyPokemon()
end
end
function onPause()
log("pokemons encountered: " .. wild_count)
log("caught count: " .. caught_count)
log("shinies caught: " ..shiny_count)
end
function onBattleMessage(message)
if stringContains(message, "A Wild SHINY ") then
shiny_count = shiny_count + 1
wild_count = wild_count + 1
elseif stringContains(message, "A Wild ") then
wild_count = wild_count + 1
elseif stringContains(message, "Success! You caught ") then
caught_count = caught_count + 1
end
end
someone fuggin reply please