Hello There, Guest! Login Register


[Lua] Dratini (Dragon Den)
#1
name = "Dratini (Blackthorn)"
author = "edit from dratini code by redskhie"

function onPathAction()


    if isPokemonUsable(1) and isPokemonUsable(2) then
    
        if getMapName() == "Pokecenter Blackthorn" then
            moveToMap("Blackthorn City")
    
        elseif getMapName() == "Blackthorn City" then
                moveToMap("Dragons Den Entrance")
                        
        elseif getMapName() == "Dragons Den Entrance" then
            moveToCell(14, 13)
        
        else getMapName() == "Dragon Den" then
        
            if (getPlayerX() == 40 and getPlayerY() == 28) then            
                return useItem("Super Rod")
                
            else    
                moveToCell(40, 28)
                
            end    
            
        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 getOpponentName() == "Dratini")) then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon()
    else
            return run() or attack() or sendUsablePokemon()
    
    end
end
 
Reply
#2
fail load

[9:33:17 SA] Running PROShine by Silv3r, version 2.0.0.1
[9:33:27 SA] Could not load script dratini.lua:
chunk_1Sad18,20-22): unexpected symbol near '=='
 
Reply
#3
try this:

name = "Dratini (Blackthorn)"
author = "edit from dratini code by redskhie"

function onPathAction()


    if isPokemonUsable(1) and isPokemonUsable(2) then
    
        if getMapName() == "Pokecenter Blackthorn" then
            moveToMap("Blackthorn City")
    
        elseif getMapName() == "Blackthorn City" then
                moveToMap("Dragons Den Entrance")
                        
        elseif getMapName() == "Dragons Den Entrance" then
            moveToCell(14, 13)
        
        elseif getMapName() == "Dragons Den" then
        
            if (getPlayerX() == 40 and getPlayerY() == 28) then            
                return useItem("Super Rod")
                
            else    
                moveToCell(40, 28)
                
            end    
            
        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 getOpponentName() == "Dratini") then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon()
    else
            return run() or attack() or sendUsablePokemon()
    
    end
end
 
Reply
#4
[4:32:00 πμ] Could not load script Dratini (Dragons Den) v2.lua:
chunk_1Sad1,0): unexpected symbol near ''
[4:32:00 πμ] Bot stopped
 
Reply
#5
[10:15:57 AM] Script "Dratini (Blackthorn)" by "edit from dratini code by redskhie" successfully loaded
[10:16:13 AM] Bot started
God Karp Trainer loading... *splash*splash Huh

 
Reply
#6
Doesnt work ! Sad
 
Reply
#7
ollad Doesnt work ! Sad

I made mine kill the rest of the pokes with my lvl 100 sync,here it is (it works fine,if u want it to run instead of killing them tell me):

name = "Dratini (Blackthorn)"
author = "edit from dratini code by redskhie"

function onPathAction()


if isPokemonUsable(1) and isPokemonUsable(2) then

if getMapName() == "Pokecenter Blackthorn" then
moveToMap("Blackthorn City")

elseif getMapName() == "Blackthorn City" then
moveToMap("Dragons Den Entrance")

elseif getMapName() == "Dragons Den Entrance" then
moveToCell(14, 13)

elseif getMapName() == "Dragons Den" then

if (getPlayerX() == 40 and getPlayerY() == 28) then
return useItem("Super Rod")

else
moveToCell(40, 28)

end

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 getOpponentName() == "Dratini") then
return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon()
else
return attack()

end
end
 
Reply
#8
labrosf
ollad Doesnt work ! Sad

I made mine kill the rest of the pokes with my lvl 100 sync,here it is (it works fine,if u want it to run instead of killing them tell me):

name = "Dratini (Blackthorn)"
author = "edit from dratini code by redskhie"

function onPathAction()


if isPokemonUsable(1) and isPokemonUsable(2) then

if getMapName() == "Pokecenter Blackthorn" then
moveToMap("Blackthorn City")

elseif getMapName() == "Blackthorn City" then
moveToMap("Dragons Den Entrance")

elseif getMapName() == "Dragons Den Entrance" then
moveToCell(14, 13)

elseif getMapName() == "Dragons Den" then

if (getPlayerX() == 40 and getPlayerY() == 28) then
return useItem("Super Rod")

else
moveToCell(40, 28)

end

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 getOpponentName() == "Dratini") then
return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon()
else
return attack()

end
end
Only heals at pokecenter repeatedly Sad
 
Reply
#9
It doesn't go to pokecenter if Attack Moves of the synch go 0.
 
Reply
#10
(2016-06-14, 10:31:05)156154 try this:

name = "Dratini (Blackthorn)"
author = "edit from dratini code by redskhie"

function onPathAction()


    if isPokemonUsable(1) and isPokemonUsable(2) then
    
        if getMapName() == "Pokecenter Blackthorn" then
            moveToMap("Blackthorn City")
    
        elseif getMapName() == "Blackthorn City" then
                moveToMap("Dragons Den Entrance")
                        
        elseif getMapName() == "Dragons Den Entrance" then
            moveToCell(14, 13)
        
        elseif getMapName() == "Dragons Den" then
        
            if (getPlayerX() == 40 and getPlayerY() == 28) then            
                return useItem("Super Rod")
                
            else    
                moveToCell(40, 28)
                
            end    
            
        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 getOpponentName() == "Dratini") then
        return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon()
    else
            return run() or attack() or sendUsablePokemon()
    
    end
end

can make it to sync adamant catcher ??
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)