Hello There, Guest! Login Register


help my script
#1
name = "Hunt Sneasel"
author = "pkm123"
description = [[Hunt Sneasel]]

function onPachAction()
    if isPokemonUsable(1) then
   if getMapName() == "Pokecenter Mt.Silver" then
   moveToMap("Mt.Silver Exterior")
   elseif getMapName() == "Mt.Silver Exterior" then
   moveToGrass()
end
else
   if getMapName() == "Mt.Silver Exterior" then
   moveToMap("Pokecenter Mt.Silver")
elseif getMapName() == "Pokecenter Mt.Silver" then
   usePokecenter()
end
end
end

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny() or (getOpponentName() == "Sneasel" )) then
   if getActivePokemonNumber() == 1 then
   return sendPokemon(2) or run()
elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() > 1 ) then
   return weakAttack() or run()
elseif ( getActivePokemonNumber() == 2 ) and ( getOpponentHealth() == 1 ) then

   return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball")

end
end
   return run() or attack()
end
end
dont work 
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)