Hello There, Guest! Login Register


Riolu, Axew and Nosepass/ Riolu, Axew and Timbur Catcher
#1
Behavior of the script ~~ Hunting Riolu at Granite Cave 1F when Noon and at Night time it will hunt for Axew at Granite Cave B1F with Adamant Synch then, when Morning time reaches, swapping Adamant Synch to Calm Synch and then going to Granite Cave B2F and start Hunting Nosepass. ~Vice Versa


Have Fun and Patience.

RIOLU AXEW NOSEPASS

Requirements:

1. Must be in Dewford Town ~ Hoenn region
2. Pokemons:
Calm and Adamant Synchronize at 1st/3rd Slot
False Swiper at 2nd Slot
3. Arcanine Mount
4. Luck

Tips: Much better if you use high level false swiper and hold smoke ball on synch poke.

name = "Duo"
author = "redskhie"
description = [[This script will use sync and false swipe to catch Riolu, Nosepass and Axew]]


function onPathAction()


    if getRemainingPowerPoints(2, "False Swipe") >= 1 and isPokemonUsable(2) then
        
        if isNight() and getPokemonNature(1) ~= "Adamant" then
            return swapPokemon(3, 1)
        elseif isNight() and getPokemonNature(1) == "Adamant" then

            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave 1F" then
                        moveToCell(17, 13)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave B1F" then
                    moveToRectangle(8, 14, 11, 15)
            end

        end

        if isMorning() and getPokemonNature(1) ~= "Calm" then
            return swapPokemon(3, 1)
        elseif isMorning() and getPokemonNature(1) == "Calm" then

            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave 1F" then
                    moveToCell(17, 13)
            elseif getMapName() == "Granite Cave B1F" then
                    moveToCell(11, 8)
            elseif getMapName() == "Granite Cave B2F" then
                    moveToRectangle(3, 7, 9, 10)
            end

        end

        if isNoon() and getPokemonNature(1) ~= "Adamant" then
            return swapPokemon(3, 1)
        elseif isNoon() and getPokemonNature(1) == "Adamant" then
        
            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")

            end
        
        end

    else

        if getMapName() == "Granite Cave B2F" then    
            moveToCell(11, 9)
        elseif getMapName() == "Granite Cave B1F" then    
            moveToCell(5, 23)
        elseif getMapName() == "Granite Cave 1F" then    
            moveToMap("Route 106")
        elseif getMapName() == "Route 106" then    
            moveToMap("Dewford Town")
        elseif getMapName() == "Dewford Town" then    
            moveToMap("Pokecenter Dewford Town")
            elseif getMapName() == "Pokecenter Dewford Town" then
            usePokecenter()
        end

    end

end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Axew" or getOpponentName() == "Nosepass" or getOpponentName() == "Riolu") then
        if getActivePokemonNumber() ~= 2 or not isPokemonUsable(2) then
            if (getActivePokemonNumber() == 3 or getActivePokemonNumber() == 1 or getActivePokemonNumber() == 4 or getActivePokemonNumber() == 5 or getActivePokemonNumber() == 6) and getOpponentHealth() == 1 then
                return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendAnyPokemon() or run()
            else
                return sendPokemon(2) or sendPokemon(4) or sendAnyPokemon()
            end
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or sendAnyPokemon() or run()
        elseif getOpponentHealth() == 1 then
            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        end
    end

    return run() or sendUsablePokemon() or sendAnyPokemon()
    
end


PS: Updated.



RIOLU AXEW TIMBUR

Behavior of the script v3~~ Hunting Riolu at Granite Cave 1F when Morning with Jolly Synch and Timbur at Noon with Adamant Synch while at Night time it will hunt for Axew at Granite Cave B1F with Jolly Synch then, ~Vice Versa


Have Fun and Patience.


Requirements:

1. Must be in Dewford Town ~ Hoenn region
2. Pokemons:
Jolly and Adamant Synchronize at 1st/3rd Slot
False Swiper at 2nd Slot
3. Arcanine Mount
4. Luck

Tips: Much better if you use high level false swiper and hold smoke ball on synch poke.

name = "Duo"
author = "redskhie"
description = [[This script will use sync and false swipe to catch Riolu, Timbur and Axew]]


function onPathAction()


    if getRemainingPowerPoints(2, "False Swipe") >= 1 and isPokemonUsable(2) then
        
        if isNight() and getPokemonNature(1) ~= "Jolly" then
            return swapPokemon(3, 1)
        elseif isNight() and getPokemonNature(1) == "Jolly" then

            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave 1F" then
                        moveToCell(17, 13)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave B1F" then
                    moveToRectangle(8, 14, 11, 15)
            end

        end

        if isNoon() and getPokemonNature(1) ~= "Jolly" then
            return swapPokemon(3, 1)
        elseif isNoon() and getPokemonNature(1) == "Jolly" then

            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")
            end

        end

        if isMorning() and getPokemonNature(1) ~= "Adamant" then
            return swapPokemon(3, 1)
        elseif isMorning() and getPokemonNature(1) == "Adamant" then
        
            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")

            end
        
        end

    else

        if getMapName() == "Granite Cave B2F" then    
            moveToCell(11, 9)
        elseif getMapName() == "Granite Cave B1F" then    
            moveToCell(5, 23)
        elseif getMapName() == "Granite Cave 1F" then    
            moveToMap("Route 106")
        elseif getMapName() == "Route 106" then    
            moveToMap("Dewford Town")
        elseif getMapName() == "Dewford Town" then    
            moveToMap("Pokecenter Dewford Town")
            elseif getMapName() == "Pokecenter Dewford Town" then
            usePokecenter()
        end

    end

end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Axew" or getOpponentName() == "Timburr" or getOpponentName() == "Riolu") then
        if getActivePokemonNumber() ~= 2 or not isPokemonUsable(2) then
            if (getActivePokemonNumber() == 3 or getActivePokemonNumber() == 1 or getActivePokemonNumber() == 4 or getActivePokemonNumber() == 5 or getActivePokemonNumber() == 6) and getOpponentHealth() == 1 then
                return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendAnyPokemon() or run()
            else
                return sendPokemon(2) or sendPokemon(4) or sendAnyPokemon()
            end
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or sendAnyPokemon() or run()
        elseif getOpponentHealth() == 1 then
            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        end
    end

    return run() or sendUsablePokemon() or sendAnyPokemon()
    
end



PS: Can't test it, so test it on your own, Goodluck
God Karp Trainer loading... *splash*splash Huh

 
Reply
#2
At noon go and try to hunt probopass
 
Reply
#3
Thanks for the script!

Just one thing though

[4:28:09 PM] A Wild Axew Attacks!
[4:28:14 PM] Come Back, Xatu!
[4:28:14 PM] Go, Heracross!
[4:28:14 PM] Axew Attacks Heracross with Assurance.
[4:28:14 PM] It's not very effective!
[4:28:18 PM] Heracross Attacks Axew with False Swipe.
[4:28:18 PM] Axew used Leer.
[4:28:18 PM] Heracross's DEF fell!
[4:28:22 PM] You throw a Pokeball.
[4:28:22 PM] Oh no! The Pokemon broke free!
[4:28:22 PM] Axew Attacks Heracross with Dragon Rage.
[4:28:26 PM] You throw a Pokeball.
[4:28:26 PM] Oh no! The Pokemon broke free!
[4:28:26 PM] Axew Attacks Heracross with Dragon Rage.
[4:28:29 PM] You throw a Pokeball.
[4:28:29 PM] Oh no! The Pokemon broke free!
[4:28:29 PM] Axew Attacks Heracross with Dragon Rage.
[4:28:32 PM] You throw a Pokeball.
[4:28:32 PM] Oh no! The Pokemon broke free!
[4:28:32 PM] Axew Attacks Heracross with Dragon Rage.
[4:28:37 PM] You throw a Pokeball.
[4:28:37 PM] Oh no! The Pokemon broke free!
[4:28:37 PM] Axew Attacks Heracross with Dragon Rage.
[4:28:37 PM] Heracross has fainted!
[4:28:45 PM] No action executed: stopping the bot.
[4:28:45 PM] Bot stopped

if the false swiper faints while axew/riolu has 1 hp it just stops.
I haven't had the luck (literally) to test it but replacing

elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() == 1 ) then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()

with

elseif ( getOpponentHealth() == 1 ) then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon() or sendAnyPokemon() or attack() or run()

should work
 
Reply
#4
@arze I see, i will update it.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#5
At what floor is probopass?
God Karp Trainer loading... *splash*splash Huh

 
Reply
#6
Updated ^
God Karp Trainer loading... *splash*splash Huh

 
Reply
#7
good job bro!! already caught a couple of axews Big Grin and one riolu Big Grin
 
Reply
#8
can you please make it to train my second pokemon whenever it sees a zubat/geodude etc?
 
Reply
#9
speederg can you please make it to train my second pokemon whenever it sees a zubat/geodude etc?
Try this,
Change this on battle section:
function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Axew" or getOpponentName() == "Riolu" or getOpponentName() == "Nosepass") then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or run() or sendAnyPokemon()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or sendAnyPokemon() or run()
        elseif getOpponentHealth() == 1 then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        
        end
    end
       if isWildBattle() then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or run() or sendAnyPokemon()
                else
                    return attack() or sendUsablePokemon() or sendAnyPokemon() or run()
                end
    end
end


And change the condition on path section
if isPokemonUsable(2) and getRemainingPowerPoints(2, "False Swipe") >= 1 then
God Karp Trainer loading... *splash*splash Huh

 
Reply
#10
thanks bro!!! gonna test it and reply you if its working
 
Reply
#11
Its only swaping 1st and 3rd for me , not moving neither farming
 
Reply
#12
It is working! i tried it out and it works perfectly
 
Reply
#13
Nikos4 Its only swaping 1st and 3rd for me , not moving neither farming

You're the only one having that problem. I think you didn't read and do the correct requirements.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#14
it works like a charm, but from time to time it stops when it talks to nurse...
 
Reply
#15
hey, i was using your original script (without attacking pokemons), and when my false swipe pokemon died while i was fighting an axew, it stopped working, any reason why this happened?
 
Reply
#16
Because you didn't setted any condition after the die of the false swipper.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#17
hmmm, i see, could you please help me with that? to keep throwning pokeballs after it dies?
 
Reply
#18
function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Axew" or getOpponentName() == "Riolu" or getOpponentName() == "Timburr") then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or sendAnyPokemon() or run()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) and (not isPokemonUsable(2))  then
            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        elseif getOpponentHealth() == 1 then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()

Would this work?
 
Reply
#19
No
elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) and (not isPokemonUsable(2))  then
            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
What's your saying here is
"If my number 2 pokemon is in the current battle, and the opponent pokemon has more than 1 hp and my number 2 pokemon is not usable.. launch pokeball."
If you're pokemon 2 is in battle, then, he is alive. You need to do another condition which would like to :
if not isPokemonUsable(2) then sendPokemon(3) end
Also, you don't use false swipe here.
I guess you wanted that, i'm right?
elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) and isPokemonUsable(2) then
            useMove("False Swipe")
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#20
yeah, thats true, i screw it up a little bit...
 
Reply
#21
name = "Duo"
author = "redskhie"
description = [[This script will use sync and false swipe to catch Riolu, Nosepass and Axew]]


function onStart()
    pokecenterCounter = 0
    shinyCounter = 0
    wildCounter = 0
    rioluCounter = 0
    abraCounter = 0
    timburrCounter = 0
    aronCounter = 0
    onixCounter = 0
    zubatlCounter = 0
    golbatCounter = 0
    axewCounter = 0
    makuhitaCounter = 0
    diglettCounter = 0

    activatePokemonLogs = true

end

function onStop()

    if activatePokemonLogs == true then
        log("geodude Counter: " .. geodudeCounter)
        log("riolu Counter: " .. rioluCounter)
        log("abra Counter: " .. abraCounter)
        log("timburr Counter: " .. timburrCounter)
        log("aron Counter: " .. aronCounter)
        log("onix Counter: " .. onixCounter)
        log("zubat Counter: " .. zubatCounter)
        log("golbat Counter: " .. golbatCounter)
        log("axew Counter: " .. axewCounter)
        log("makuhita Counter: " .. makuhitaCounter)
        log("diglett Counter: " .. diglettCounter)
        log("Shinies Caught: " .. shinyCounter)
        log("Pokemons encountered: " .. wildCounter)
        log("Times in Pokecenter: " .. pokecenterCounter)        
    end
end

function onDialogMessage(pokecenter)

    if stringContains(pokecenter, "Would you like me to heal your Pokemon?") then
        pokecenterCounter = pokecenterCounter + 1
    end
    
end

if wild == "A Wild SHINY " then
        shinyCounter = shinyCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Riolu[-] Attacks!" then
        rioluCounter = rioluCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Abra[-] Attacks!" then
        abraCounter = abraCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Timburr[-] Attacks!" then
        timburrCounter = timburrCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Aron[-] Attacks!" then
        aronCounter = aronCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Onix[-] Attacks!" then
        onixCounter = onixCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Zubat[-] Attacks!" then
        zubatCounter = zubatCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Golbat[-] Attacks!" then
        golbatCounter = golbatCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Axew[-] Attacks!" then
        axewCounter = axewCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Makuhita[-] Attacks!" then
        makuhitaCounter = makuhitaCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Diglett[-] Attacks!" then
        diglettCounter = diglettCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Geodude[-] Attacks!" then
        geodudeCounter = geodudeCounter + 1
        wildCounter = wildCounter + 1    
end

function onPause()

    if activatePokemonLogs == true then
        log("geodude Counter: " .. geodudeCounter)
        log("riolu Counter: " .. rioluCounter)
        log("abra Counter: " .. abraCounter)
        log("timburr Counter: " .. timburrCounter)
        log("aron Counter: " .. aronCounter)
        log("onix Counter: " .. onixCounter)
        log("zubat Counter: " .. zubatCounter)
        log("golbat Counter: " .. golbatCounter)
        log("axew Counter: " .. axewCounter)
        log("makuhita Counter: " .. makuhitaCounter)
        log("diglett Counter: " .. diglettCounter)
        log("Shinies Caught: " .. shinyCounter)
        log("Pokemons encountered: " .. wildCounter)
        log("Times in Pokecenter: " .. pokecenterCounter)        
    end
end


function onPathAction()


    if isPokemonUsable(2) and getRemainingPowerPoints(2, "False Swipe") >= 1 then
        
        if isNight() and getPokemonNature(1) ~= "Adamant" then
            return swapPokemon(3, 1)
        elseif isNight() and getPokemonNature(1) == "Adamant" then

            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave 1F" then
                        moveToCell(17, 13)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave B1F" then
                    moveToRectangle(8, 14, 11, 15)
            end

        end

        if isNoon() and getPokemonNature(1) ~= "Jolly" then
            return swapPokemon(3, 1)
        elseif isNoon() and getPokemonNature(1) == "Jolly" then
            
            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")

            end
        
        end
        if isMorning() and getPokemonNature(1) ~= "Jolly" then
            return swapPokemon(3, 1)
        elseif isMorning() and getPokemonNature(1) == "Jolly" then
        
            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")

            end
        
        end

    else

        if getMapName() == "Granite Cave B2F" then    
            moveToCell(11, 9)
        elseif getMapName() == "Granite Cave B1F" then    
            moveToCell(5, 23)
        elseif getMapName() == "Granite Cave 1F" then    
            moveToMap("Route 106")
        elseif getMapName() == "Route 106" then    
            moveToMap("Dewford Town")
        elseif getMapName() == "Dewford Town" then    
            moveToMap("Pokecenter Dewford Town")
            elseif getMapName() == "Pokecenter Dewford Town" then
            usePokecenter()
        end

    end

end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Axew" or getOpponentName() == "Riolu" or getOpponentName() == "Nosepass") then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or run() or sendAnyPokemon()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or sendAnyPokemon() or run()
        elseif getOpponentHealth() == 1 then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        
        end
    end

    return run() or sendUsablePokemon() or sendAnyPokemon()
    
end


i know its kinda big, but i have problem with onPause and onStop functions, they aren't working can soemeone you please help me?
 
Reply
#22
speederg
name = "Duo"
author = "redskhie"
description = [[This script will use sync and false swipe to catch Riolu, Nosepass and Axew]]


function onStart()
    pokecenterCounter = 0
    shinyCounter = 0
    wildCounter = 0
    rioluCounter = 0
    abraCounter = 0
    timburrCounter = 0
    aronCounter = 0
    onixCounter = 0
    zubatlCounter = 0
    golbatCounter = 0
    axewCounter = 0
    makuhitaCounter = 0
    diglettCounter = 0

    activatePokemonLogs = true

end

function onStop()

    if activatePokemonLogs == true then
        log("geodude Counter: " .. geodudeCounter)
        log("riolu Counter: " .. rioluCounter)
        log("abra Counter: " .. abraCounter)
        log("timburr Counter: " .. timburrCounter)
        log("aron Counter: " .. aronCounter)
        log("onix Counter: " .. onixCounter)
        log("zubat Counter: " .. zubatCounter)
        log("golbat Counter: " .. golbatCounter)
        log("axew Counter: " .. axewCounter)
        log("makuhita Counter: " .. makuhitaCounter)
        log("diglett Counter: " .. diglettCounter)
        log("Shinies Caught: " .. shinyCounter)
        log("Pokemons encountered: " .. wildCounter)
        log("Times in Pokecenter: " .. pokecenterCounter)        
    end
end

function onDialogMessage(pokecenter)

    if stringContains(pokecenter, "Would you like me to heal your Pokemon?") then
        pokecenterCounter = pokecenterCounter + 1
    end
    
end

if wild == "A Wild SHINY " then
        shinyCounter = shinyCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Riolu[-] Attacks!" then
        rioluCounter = rioluCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Abra[-] Attacks!" then
        abraCounter = abraCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Timburr[-] Attacks!" then
        timburrCounter = timburrCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Aron[-] Attacks!" then
        aronCounter = aronCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Onix[-] Attacks!" then
        onixCounter = onixCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Zubat[-] Attacks!" then
        zubatCounter = zubatCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Golbat[-] Attacks!" then
        golbatCounter = golbatCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Axew[-] Attacks!" then
        axewCounter = axewCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Makuhita[-] Attacks!" then
        makuhitaCounter = makuhitaCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Diglett[-] Attacks!" then
        diglettCounter = diglettCounter + 1
        wildCounter = wildCounter + 1
    elseif wild == "A Wild [FF9900]Geodude[-] Attacks!" then
        geodudeCounter = geodudeCounter + 1
        wildCounter = wildCounter + 1    
end

function onPause()

    if activatePokemonLogs == true then
        log("geodude Counter: " .. geodudeCounter)
        log("riolu Counter: " .. rioluCounter)
        log("abra Counter: " .. abraCounter)
        log("timburr Counter: " .. timburrCounter)
        log("aron Counter: " .. aronCounter)
        log("onix Counter: " .. onixCounter)
        log("zubat Counter: " .. zubatCounter)
        log("golbat Counter: " .. golbatCounter)
        log("axew Counter: " .. axewCounter)
        log("makuhita Counter: " .. makuhitaCounter)
        log("diglett Counter: " .. diglettCounter)
        log("Shinies Caught: " .. shinyCounter)
        log("Pokemons encountered: " .. wildCounter)
        log("Times in Pokecenter: " .. pokecenterCounter)        
    end
end


function onPathAction()


    if isPokemonUsable(2) and getRemainingPowerPoints(2, "False Swipe") >= 1 then
        
        if isNight() and getPokemonNature(1) ~= "Adamant" then
            return swapPokemon(3, 1)
        elseif isNight() and getPokemonNature(1) == "Adamant" then

            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave 1F" then
                        moveToCell(17, 13)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave B1F" then
                    moveToRectangle(8, 14, 11, 15)
            end

        end

        if isNoon() and getPokemonNature(1) ~= "Jolly" then
            return swapPokemon(3, 1)
        elseif isNoon() and getPokemonNature(1) == "Jolly" then
            
            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")

            end
        
        end
        if isMorning() and getPokemonNature(1) ~= "Jolly" then
            return swapPokemon(3, 1)
        elseif isMorning() and getPokemonNature(1) == "Jolly" then
        
            if getMapName() == "Pokecenter Dewford Town" then
                moveToMap("Dewford Town")
            elseif getMapName() == "Dewford Town" then
                moveToMap("Route 106")
            elseif getMapName() == "Route 106" then
                moveToMap("Granite Cave 1F")
            elseif getMapName() == "Granite Cave B1F" then    
                moveToCell(5, 23)
            elseif getMapName() == "Granite Cave B2F" then    
                moveToCell(11, 9)
            elseif getMapName() == "Granite Cave 1F" then
                    moveNearExit("Route 106")

            end
        
        end

    else

        if getMapName() == "Granite Cave B2F" then    
            moveToCell(11, 9)
        elseif getMapName() == "Granite Cave B1F" then    
            moveToCell(5, 23)
        elseif getMapName() == "Granite Cave 1F" then    
            moveToMap("Route 106")
        elseif getMapName() == "Route 106" then    
            moveToMap("Dewford Town")
        elseif getMapName() == "Dewford Town" then    
            moveToMap("Pokecenter Dewford Town")
            elseif getMapName() == "Pokecenter Dewford Town" then
            usePokecenter()
        end

    end

end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "Axew" or getOpponentName() == "Riolu" or getOpponentName() == "Nosepass") then
        if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or run() or sendAnyPokemon()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
            return weakAttack() or sendAnyPokemon() or run()
        elseif getOpponentHealth() == 1 then

            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or attack() or run()
        
        end
    end

    return run() or sendUsablePokemon() or sendAnyPokemon()
    
end


i know its kinda big, but i have problem with onPause and onStop functions, they aren't working can soemeone you please help me?

Is there a error message?
 
Reply
#23
"Error during the execution of 'onPause': attempt to concatenate a nil value" thats the message i receive
 
Reply
#24
speederg "Error during the execution of 'onPause': attempt to concatenate a nil value" thats the message i receive

Take a look at your Zubat counter. Wink
 
Reply
#25
dat zubat!!! Tongue thanks mate!!
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)