Hello There, Guest! Login Register


Seafoam B4F with healing at Nurse Joy in Seafoam B4F . [LUA]
#1
Can someone write a script able to turn on after reaching to BF4? I tried to run other scripts, and probably, i have to run script at Fuchsi's pokecenter. Plus I want it to auto go to Nurse Joy and pay 1,5k to heal pokemons when they will be weak or no PP. And then walk around again. Of couse option with catching shines are welcome, but it doesn't have to be there.
 
Reply
#2
name = "Leveling: Seafoam B4"
author = "Miracle"
description = [[This script will train the first pokémon of your team.
It will also try to capture shinies by throwing pokéballs.
Start anywhere on Seafoam B4.]]

function onPathAction()
if isPokemonUsable(5) then
if getMapName() == "Seafoam B4F" then
moveToRectangle(56, 27, 59, 27)
end
else
if getMapName() == "Seafoam B4F" then
talkToNpcOnCell(59, 13)
end
end
end

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


function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or getOpponentName() == "PokemonName") then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 or getActivePokemonNumber() == 2 or getActivePokemonNumber() == 3 or getActivePokemonNumber() == 4 or getActivePokemonNumber() == 5 or getActivePokemonNumber() == 6 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
 
Reply
#3
it will train ur 1-5 pokes.. good luck Smile
 
Reply
#4
It is working well?
 
Reply
#5
yep.. its working well on me.. Big Grin
 
Reply
#6
this working, but if all poke done be used and go heal joey nurse, why the bot stop?? must be resume manual lol
 
Reply
#7
can you change the path so when the Pokemon is unavailable to return in cinnabar
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)