Hello There, Guest! Login Register


Help! Abra Catch with Sync and Arena Trap, Route 6
#1
Exclamation 
English: Dear, forgive my English, I'm Brazilian and I'm with this escripte trying to modify it in the meantime it finds error, someone can help me.

Português-Br: Caros perdoem o meu ingles, sou brasileiro e estou com este escripte tentando modificalo no entretanto o mesmo encontra erro, alguem pode ajudar-me.

Script:
_______________________________________________
name = "abra catcher"
author = "Blissey"
description = [[Syn 1st slot, diglett 2st slot, FS 3st slot.]]
 
function onStart()
   abraCount = 0
   wildCount = 0
   shinyCount = 0
    if isPrivateMessageEnabled() then
    return disablePrivateMessage()
    end
end

function onStop()

   log("Abra caught: " .. abraCount)
   log("Shinies found: " .. shinyCount)
end
function onPause()    
   log("Abra caught: " .. abraCount)
   log("Shinies found: " .. shinyCount)
end
    
function onPathAction()    
if isOutside() and (hasItem("Latios Mount") or hasItem("Bicycle")) and not isMounted() then
  return useItem("Latios Mount") or useItem("Bicycle")
end
if isPokemonUsable(1) and isPokemonUsable(2) and isPokemonUsable(3) and getRemainingPowerPoints(3,"False Swipe") > 1     then
        if getMapName() == "Pokecenter Vermilion" then
          moveToMap("Vermilion City")    
      elseif getMapName() == "Vermilion City" then
         
              moveToMap("Route 6")
       elseif getMapName() == "Route 6" then
         
              moveToGrass()
       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

function onBattleMessage(message)

   if stringContains(message, "A Wild SHINY ") then
       shinyCount = shinyCount + 1
   elseif stringContains(message, "A Wild ") then
       wildCount = wildCount + 1
   elseif stringContains(message, "Success! You caught [FF9900]Abra[-]") then
       abraCount = abraCount + 1
   end
   
end


function onBattleAction()
    if  getOpponentName() == "Abra"   then
        if getActivePokemonNumber() ~= 2 then
        return sendPokemon(2) or sendPokemon(3) or sendAnyPokemon()
        elseif getOpponentHealthPercent() > 30 then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or run() or sendUsablePokemon() or attack() or run()    
        end
    elseif  getOpponentName() == "Abra" and isOpponentShiny()  then
        if getActivePokemonNumber() ~= 2 then
        return sendPokemon(2) or sendPokemon(3) or sendAnyPokemon()
        elseif getOpponentHealthPercent() > 30 then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or run() or sendUsablePokemon() or attack() or run()    
        end
    elseif isOpponentShiny()
   
       if getActivePokemonNumber()
           return sendPokemon(3) or run() or sendUsablePokemon() or attack()
       elseif getOpponentHealthPercent() >= 6 then
           return useMove("False Swipe") or run() or sendUsablePokemon() or attack()
           return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or run() or sendUsablePokemon() or attack()
       else
           return run() or attack() or sendUsablePokemon()
       end
       
   else
       return run() or attack() or sendUsablePokemon()
   end

end
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)