Hello There, Guest! Login Register


Lavendar Gastly & Haunter Catcher.
#1
Simple script at lavendar to catch gastly's and haunter's.
Put your sync at 1st and Sleep powder move pokemon on 2nd. Enjoy
name = "The Ultimate Pokemon Tower Gastly and Haunter Catcher"
Author = "Reworked Script by Matr1x"
Description = "Catches Gastly and Haunter & shinies on Pokemon Tower F5 + Heal your pokemon on Nurse Joy. Use sync in the first slot and sleep in the second slot"

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

end

function onPause()
log("==============================PAUSE STATS=============================")
log("Shiny Caught: " .. shinyCounter)
log("gastly Caught: " .. gastlyCounter)
log("haunter Caught: " .. haunterCounter)
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 | gastly Caught: " .. gastlyCounter)
    log("Info | haunter Caught: " .. haunterCounter)
    log("Info | Pokemon encountered: " .. wildCounter)
elseif stringContains(wild, "A Wild [FF9900]gastly[-] Attacks!") then
    gastlyCounter = gastlyCounter + 1
elseif stringContains(wild, "A Wild [FF9900]haunter[-] Attacks!") then
    haunterCounter = haunterCounter + 1
    log("Info | Shiny encountered: " .. shinyCounter)
    log("Info | gastly encountered: " .. gastlyCounter)
    log("Info | haunter encountered: " .. haunterCounter)
    log("Info | Pokemon encountered: " .. wildCounter)
elseif stringContains(wild, "A Wild") then
    wildCounter = wildCounter + 1
    log("Info | Shiny encountered: " .. shinyCounter)
    log("Info | gastly encountered: " .. gastlyCounter)
    log("Info | haunter encountered: " .. haunterCounter)
    log("Info | Pokemon encountered: " .. wildCounter)
elseif stringContains(wild, "caught") then
    playSound("Assets/sound1.wav")    
 end
end

function onPathAction()
   if isPrivateMessageEnabled() then log("Private messages disabled.") return disablePrivateMessage() end
   
    if isPokemonUsable(2) and (getRemainingPowerPoints(3, "Sleep Powder") >= 2) then
       if getMapName() == "Pokecenter Lavender" then
           moveToCell(8,22)
       elseif getMapName() == "Lavender Town" then
           moveToCell(21,5)
       elseif getMapName() == "Pokemon Tower 1F" then
           moveToCell(17,11)
       elseif getMapName() == "Pokemon Tower 2F" then
           moveToCell(1,13)
       elseif getMapName() == "Pokemon Tower 3F" then
           moveToCell(17,13)
       elseif getMapName() == "Pokemon Tower 4F" then
           moveToCell(1,13)
       elseif getMapName() == "Pokemon Tower 5F" then
           moveToRectangle(4, 13, 10, 13)
       end
   else
   
   if isNpcOnCell(9, 10) then
       pushDialogAnswer(1)
       talkToNpcOnCell(9, 10)
   end
   
end
function onBattleAction()

   if isWildBattle() and ( isOpponentShiny()  or getOpponentName() == "Gastly" or getOpponentName() == "Haunter") 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
end
Happy Botting. Wink
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)