2019-01-29, 13:05:35
PHP Code:
name = "Dragons Den"
author = "Gandalf"
description = [[This script will train the first pokémon of your team.
Start anywhere between Blackthorn City and the Dragons Den.
You need a pokémon with surf.]]
movesNotToForget = {} --add moves here
function onPathAction()
if isPokemonUsable(1) then
if getMapName() == "Pokecenter Blackthorn" then
moveToCell(10, 20)
elseif getMapName() == "Blackthorn City" then
moveToCell(27, 5)
elseif getMapName() == "Dragons Den Entrance" then
moveToCell(14, 14)
elseif getMapName() == "Dragons Den" then
moveToRectangle(34, 29, 48, 29)
end
else
if getMapName() == "Dragons Den" then
moveToCell(40, 16)
elseif getMapName() == "Dragons Den Entrance" then
moveToCell(14, 18)
elseif getMapName() == "Blackthorn City" then
moveToCell(29, 39)
elseif getMapName() == "Pokecenter Blackthorn" then
talkToNpcOnCell(10, 12)
end
end
end
function onBattleAction()
if isWildBattle() and isOpponentShiny() then
if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
return
end
end
if getActivePokemonNumber() == 1 then
return attack() or sendUsablePokemon() or run() or sendAnyPokemon()
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end