Hello There, Guest! Login Register


help me with my scrip
#1
Exclamation 

somebody can check my scrip pls?? it doesn't work  !!  Huh Huh Huh


Attached Files
.txt   furret-hunter.txt (Size: 1.43 KB / Downloads: 10)
 
Reply
#2
What doesn't work about it? Can you provide an error message, or does it not actually do the intended actions?
 
Reply
#3
[9:11:47 PM] Running PROShine by Silv3r - mrX, version 2.8.0.0
[9:12:23 PM] Connecting to the server...
[9:12:24 PM] Connected, authenticating...
[9:12:28 PM] Authenticated successfully!
[9:12:28 PM] System: Welcome to Pokemon Revolution!
[9:12:28 PM] Position updated: Pokecenter Viridian (9, 19) [OK]
[9:12:37 PM] Script "Furret Catcher" by "Derpro" successfully loaded
[9:12:37 PM] Furret and catch every Shiny Pokemon!
[9:12:40 PM] Bot started
[9:12:41 PM] Good morning, Sir!
[9:12:41 PM] Welcome to Viridian City Pokemon Center.
[9:12:41 PM] Would you like me to heal your Pokemon?
[9:12:44 PM] Okay, let me take a look at those Pokemon.
[9:12:52 PM] There you go, take care of them!
[9:12:52 PM] Have a nice morning!
[9:12:55 PM] Good morning, sir!
[9:12:55 PM] Welcome to Viridian City Pokemon Center.
[9:12:55 PM] Would you like me to heal your Pokemon?
[9:12:59 PM] Okay, let me take a look at those Pokemon.
[9:13:00 PM] Bot paused
[9:13:04 PM] There you go, take care of them!
[9:13:04 PM] Have a nice morning!
 
Reply
#4
When running the bot, are you sure you are fulfilling this statement correctly? It's probably in a usePokecenter() loop because one of these statements is returning false.

isPokemonUsable(2) and getPokemonHealth(2) >160 and getRemainingPowerPoints(2,"False Swipe") > 2
 
Reply
#5
this is the scrip !! can you check it !!
name = "Furret Catcher"
author = "Derpro"
description = [[Furret and catch every Shiny Pokemon!]]

function onPathAction()
if (isPokemonUsable(2) and getPokemonHealth(2) >160 and getRemainingPowerPoints(2,"False Swipe") > 2)then
if getMapName() == "Pokecenter Viridian" then
moveToMap("Viridian City")
elseif getMapName() == "Viridian City" then
moveToMap("Route 1")
elseif getMapName() == "Route 1" then
moveToGrass()
end
else
if getMapName() == "Route 1" then
moveToMap("Viridian City")
elseif getMapName() == "Viridian City" then
moveToMap("Pokecenter Viridian")
elseif getMapName() == "Pokecenter Viridian" then
usePokecenter()
end
end
end

function onBattleAction()
if isWildBattle() and ( isOpponentShiny() or (getOpponentName() == "Furret" ) or (getOpponentName() == "Sentret")) then
if getActivePokemonNumber() == 1 then
return sendPokemon(2) or run()
elseif (getActivePokemonNumber() == 2 ) and (getOpponentHealth() > 1 ) then
return weakAttack() or sendPokemon(3) or run()
elseif ((getOpponentHealth() == 1 ) or getActivePokemonNumber() == 3) then
return useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball")
end
else
return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
end
end
 
Reply
#6
Are you sure your Pokemon in the 2nd slot has HP higher than 160, and it has false swipe?

Try swapping:


if (isPokemonUsable(2) and getPokemonHealth(2) >160 and getRemainingPowerPoints(2,"False Swipe") > 2)then

To just this:
if isPokemonUsable(2) then

and see if it still loops.
 
Reply
#7
[11:20:02 AM] System: Welcome to Pokemon Revolution!
[11:20:02 AM] Position updated: Pokecenter Viridian (12, 18) [OK]
[11:20:04 AM] Bot started
[11:20:09 AM] Position updated: Viridian City (44, 44) [OK]
[11:20:16 AM] No action executed: stopping the bot.
[11:20:16 AM] Bot stopped
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)