Hello There, Guest! Login Register


PLZ HELP ME!!!
#1
Im farming in dragon den. It's never come back when XATU out of PP of 4 move. And in picture is what happen next, my scyther false swipe 4ever =.=
[Image: ZCro8Oh.png]
This is my script:
function onPathAction()

    if (isPokemonUsable(2) and getRemainingPowerPoints(2,"False Swipe") >= 1) then
        if getMapName() == "Pokecenter Blackthorn" then
            moveToMap("Blackthorn City")
        elseif getMapName() == "Blackthorn City" then
            moveToMap("Dragons Den Entrance")
        elseif getMapName() == "Dragons Den Entrance" then
            moveToMap("Dragons Den")
        elseif getMapName() == "Dragons Den" then
            moveToWater()
end
    else
        if getMapName() == "Dragons Den" then
            moveToMap("Dragons Den Entrance")
        elseif getMapName() == "Dragons Den Entrance" then
            moveToMap("Blackthorn City")
        elseif getMapName() == "Blackthorn City" then
            moveToMap("Pokecenter Blackthorn")
        elseif getMapName() == "Pokecenter Blackthorn" then
            usePokecenter()
        end
    end
end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or (not isAlreadyCaught()) or (getOpponentName() == "Dragonair" ) or (getOpponentName() == "Corpish" ) or (getOpponentName() == "Druddigon" )) then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2)
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or run()
        elseif getOpponentHealth() == 1 then
            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon() or attack() or run()
        
        end
    end
if isWildBattle() and ( getOpponentName() == "Aa") then
        if getActivePokemonNumber() == 1 then
            return useItem("Pokeball")
            end
    end
if getActivePokemonNumber() >= 1 then
        return attack() or sendUsablePokemon() or run()
        else
            return run() or attack() or sendUsablePokemon()
    end
end
 
Reply
#2
if getActivePokemonNumber() >= 1 then
Also, change your onPathAction to heal xatu when he dies.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#3
Someone if getActivePokemonNumber() >= 1 then
Also, change your onPathAction to heal xatu when he dies.
Thanks a lot!!! finally found that mistake!
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)