Hello There, Guest! Login Register


repel dratini script
#1
hellow,

I want to create a repel trick to catch dratini.

this is my script



author = "stolen"
description = [[Make sure ur poke has sleep powder and he is on second slot.]]
 log("message")

function onStart()
 healCounter = 0
 shinyCounter = 0
 dratiniCounter = 0
 laprasCounter = 0
 wildCounter = 0
 startime = os.time()
 log("Start botting.")

end

function onPause()
 log("==============================PAUSE STATS=============================")
 log("Shiny Caught: " .. shinyCounter)
 log("lapras Caught: " .. dratiniCounter)
 log("dratini Caught: " .. laprasCounter)
 log("Pokemons encountered: " .. wildCounter)
 log("You have visited the PokeCenter ".. healCounter .." times.")
 log("==============================RUNNING TIME============================")
 endtime = os.time()
 log(string.format("HOURS = %.2f", os.difftime(endtime,startime)/3600 ).. "")
 log("")
 log(string.format("MINUTES = %.2f", os.difftime(endtime,startime)/60 ).. "")
 log("====================================================================")
end

function onResume()
 log("SESSION RESUMED")
end

function onBattleMessage(wild)
 if stringContains(wild, "A Wild SHINY") then
     shinyCounter = shinyCounter + 1
     wildCounter = wildCounter + 1
     log("Info | Shiny encountered: " .. shinyCounter)
     log("Info | dratini Caught: " .. dratiniCounter)
     log("Info | lapras Caught: " .. laprasCounter)
     log("Info | Pokemon encountered: " .. wildCounter)
 elseif stringContains(wild, "A Wild [FF9900]dratini[-] Attacks!") then
     dratiniCounter = dratiniCounter + 1
 elseif stringContains(wild, "A Wild [FF9900]lapras[-] Attacks!") then
     laprasCounter = laprasCounter + 1
     log("Info | Shiny encountered: " .. shinyCounter)
     log("Info | dratini encountered: " .. dratiniCounter)
     log("Info | lapras encountered: " .. laprasCounter)
     log("Info | Pokemon encountered: " .. wildCounter)
 elseif stringContains(wild, "A Wild") then
     wildCounter = wildCounter + 1
     log("Info | Shiny encountered: " .. shinyCounter)
     log("Info | dratini encountered: " .. dratiniCounter)
     log("Info | lapras encountered: " .. laprasCounter)
     log("Info | Pokemon encountered: " .. wildCounter)
 elseif stringContains(wild, "caught") then
     playSound("Assets/sound1.wav")    
  end
end
 

function onPathAction()
useRepel = true
 if isPokemonUsable(2) and isPokemonUsable(1) and getRemainingPowerPoints(2,"Sleep Powder") > 2 then
      if getMapName() == "Pokecenter Love Island" then
         moveToMap("Love Island")
     if useRepel and not repelActive and hasItem(trickItem) then
               return useItem("repel")

 elseif getMapName() == "Love Island" then
          moveToWater()
      end
 else
      if getMapName() == "Love Island" then
         moveToMap("Pokecenter Love Island")
     elseif getMapName() == "Pokecenter Love Island" then
         usePokecenter()
 
     
     end
 end
end

function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or (getOpponentName() == "Dratini" ) or (getOpponentName() == "Dratini" )) or (getOpponentName() == "Dratini" ) then
    if getActivePokemonNumber() == 1 then
            return sendPokemon(2) or run()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentStatus() ~= "SLEEP" ) then
            return useMove("Sleep Powder") or useItem("Pokeball") or sendUsablePokemon() or sendAnyPokemon()
        elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentStatus() == "SLEEP" ) then
            return useItem("Pokeball") or useItem("Great Ball") or useItem("Ultra Ball") or sendUsablePokemon() or sendAnyPokemon()
        end
    else
        return run() or sendUsablePokemon()


end
end

wil this work
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)