Hello There, Guest! Login Register


I Want to add mount support to my script
#1
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
 
Reply
#2
It does not come from me.

Write the name of your mount in first
mounts = { "Blue Bicycle", "Red Bicycle", "Yellow Bicycle", "Green Bicycle" }
watermounts = { "Red Jet-Skii", "Blue Jet-Skii" }
function onStart()
--Mount surf auto
   for _, watermountName in ipairs(watermounts) do
       if hasItem(watermountName) then
           setWaterMount(watermountName)
           break
       end
   end
--Mount auto
   for _, mountName in ipairs(mounts) do
       if hasItem(mountName) then
           setMount(mountName)
           break
       end
   end
end
 
Reply
#3
mounts = { "Arcanine Mount" }
watermounts = { "", "" }
function onStart()
--Mount surf auto
for _, watermountName in ipairs(watermounts) do
if hasItem(watermountName) then
setWaterMount(watermountName)
break
end
end
--Mount auto
for _, mountName in ipairs(mounts) do
if hasItem(Arcanine Mount) then
setMount(Arcanine Mount)
break
end
end
end

i dont have any water mount so thats why i left it blank Smile, thanks for helping me tho
suckonmywave
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)