-
Member
Anyway to make it toss all trash items Normal/Super potions and have it save on x amount of revives/hyper potions ?
-
Member
Is there anyway to filter the pokemon being caught?
-
Any ideas how to use the ITEM_RAZZ_BERRY ? I tried adding this line in Program.cs:
Code:
await client.CatchPokemon(pokemon.EncounterId, pokemon.SpawnpointId, pokemon.Latitude, pokemon.Longitude, MiscEnums.Item.ITEM_RAZZ_BERRY);
before
Code:
await client.CatchPokemon(pokemon.EncounterId, pokemon.SpawnpointId, pokemon.Latitude, pokemon.Longitude, MiscEnums.Item.ITEM_POKE_BALL);
but somehow all pokemons are getting away. I guess my declaration i incorrect.
-
Member
Originally Posted by
daastaman
Does this version by default use all pokeballs of our inventory?
Or just the basic ones
By default it uses all your best balls on even the weakest pokemons. All the way down till you have none.
Here is another version that does better.
https://github.com/NecronomiconCodin.../pull/12/files
-
Sergeant
I Had a thought.
Would be handy to check lucky egg amount as well
if you had one, use one, then evolve all
double XP for a lot
"When solving problems, dig at the roots instead of just hacking at the leaves."
-
Member
Originally Posted by
CuteJabu
what excatly do i change to make this work
-
I set up the bot all the day on yesterday, but today I can't manage to get it running...
just modified my App.config to:
Code:
<add key="AuthType" value="Ptc"/><!--Google/Ptc-->
<add key="PtcUsername" value="MYUS"/>
<add key="PtcPassword" value="MYPW"/>
<add key="GoogleRefreshToken" value="0"/>
<add key="DefaultLatitude" value="46.520510908821635"/><!--Default Amsterdam Central Station-->
<add key="DefaultLongitude" value="6.628065705299377"/><!--Default Amsterdam Central Station-->
<add key="TransferType" value="leaveStrongest"/><!--none/cp/leaveStrongest/duplicate/all Whitelists/blackslists for each type is in Program.cs-->
<add key="TransferCPThreshold" value="0"/><!--transfer pokemon with CP less than this value if cp transfer type is selected. Whitelist in Program.cs-->
<add key="EvolveAllGivenPokemons" value="false"/>
But I get this:
Code:
Coded by Ferox - edited by NecronomiconCoding
Awesome! You have already got the newest version!
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at PokemonGo.RocketAPI.Login.PtcLogin.<GetAccessToken>d__0.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Login\PtcLogin.cs:line
45
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at PokemonGo.RocketAPI.Client.<DoPtcLogin>d__11.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Client.cs:line 96
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at PokemonGo.RocketAPI.Console.Program.<Execute>d__5.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Console\Program.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx
)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Press any key to continue . . .
Thanks button for any help
-
-
Member
Originally Posted by
wishkeeper
I set up the bot all the day on yesterday, but today I can't manage to get it running...
just modified my App.config to:
Code:
<add key="AuthType" value="Ptc"/><!--Google/Ptc-->
<add key="PtcUsername" value="MYUS"/>
<add key="PtcPassword" value="MYPW"/>
<add key="GoogleRefreshToken" value="0"/>
<add key="DefaultLatitude" value="46.520510908821635"/><!--Default Amsterdam Central Station-->
<add key="DefaultLongitude" value="6.628065705299377"/><!--Default Amsterdam Central Station-->
<add key="TransferType" value="leaveStrongest"/><!--none/cp/leaveStrongest/duplicate/all Whitelists/blackslists for each type is in Program.cs-->
<add key="TransferCPThreshold" value="0"/><!--transfer pokemon with CP less than this value if cp transfer type is selected. Whitelist in Program.cs-->
<add key="EvolveAllGivenPokemons" value="false"/>
But I get this:
Code:
Coded by Ferox - edited by NecronomiconCoding
Awesome! You have already got the newest version!
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at PokemonGo.RocketAPI.Login.PtcLogin.<GetAccessToken>d__0.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Login\PtcLogin.cs:line
45
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at PokemonGo.RocketAPI.Client.<DoPtcLogin>d__11.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Client.cs:line 96
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at PokemonGo.RocketAPI.Console.Program.<Execute>d__5.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Console\Program.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx
)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Press any key to continue . . .
Thanks button for any help

my guess is add key not line up
-
Member
Originally Posted by
CuteJabu
Can you please explain what does this code do? and how to apply it?
-
Originally Posted by
wishkeeper
I set up the bot all the day on yesterday, but today I can't manage to get it running...
just modified my App.config to:
Code:
<add key="AuthType" value="Ptc"/><!--Google/Ptc-->
<add key="PtcUsername" value="MYUS"/>
<add key="PtcPassword" value="MYPW"/>
<add key="GoogleRefreshToken" value="0"/>
<add key="DefaultLatitude" value="46.520510908821635"/><!--Default Amsterdam Central Station-->
<add key="DefaultLongitude" value="6.628065705299377"/><!--Default Amsterdam Central Station-->
<add key="TransferType" value="leaveStrongest"/><!--none/cp/leaveStrongest/duplicate/all Whitelists/blackslists for each type is in Program.cs-->
<add key="TransferCPThreshold" value="0"/><!--transfer pokemon with CP less than this value if cp transfer type is selected. Whitelist in Program.cs-->
<add key="EvolveAllGivenPokemons" value="false"/>
But I get this:
Code:
Coded by Ferox - edited by NecronomiconCoding
Awesome! You have already got the newest version!
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at PokemonGo.RocketAPI.Login.PtcLogin.<GetAccessToken>d__0.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Login\PtcLogin.cs:line
45
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at PokemonGo.RocketAPI.Client.<DoPtcLogin>d__11.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Client.cs:line 96
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at PokemonGo.RocketAPI.Console.Program.<Execute>d__5.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Console\Program.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx
)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Press any key to continue . . .
Thanks button for any help

try taking the 0 out
-
Member
Originally Posted by
wetshrimp
what excatly do i change to make this work
Just download the repo from cvax's commit.
Click the "Commits" tab
Click the "<>" button on the right
Click the green "Clone or download" button and select "Download Zip"
-
Post Thanks / Like - 1 Thanks
ahmar789 (1 members gave Thanks to CuteJabu for this useful post)
-
Member
Originally Posted by
senseirain
Question: Why doesn't it transfer Lower CP pokemon? Is there something wrong with my settings?


think u have to put cp instead leavestrongest
-
Originally Posted by
wishkeeper
I set up the bot all the day on yesterday, but today I can't manage to get it running...
just modified my App.config to:
Code:
<add key="AuthType" value="Ptc"/><!--Google/Ptc-->
<add key="PtcUsername" value="MYUS"/>
<add key="PtcPassword" value="MYPW"/>
<add key="GoogleRefreshToken" value="0"/>
<add key="DefaultLatitude" value="46.520510908821635"/><!--Default Amsterdam Central Station-->
<add key="DefaultLongitude" value="6.628065705299377"/><!--Default Amsterdam Central Station-->
<add key="TransferType" value="leaveStrongest"/><!--none/cp/leaveStrongest/duplicate/all Whitelists/blackslists for each type is in Program.cs-->
<add key="TransferCPThreshold" value="0"/><!--transfer pokemon with CP less than this value if cp transfer type is selected. Whitelist in Program.cs-->
<add key="EvolveAllGivenPokemons" value="false"/>
But I get this:
Code:
Coded by Ferox - edited by NecronomiconCoding
Awesome! You have already got the newest version!
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at PokemonGo.RocketAPI.Login.PtcLogin.<GetAccessToken>d__0.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Login\PtcLogin.cs:line
45
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at PokemonGo.RocketAPI.Client.<DoPtcLogin>d__11.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Client.cs:line 96
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at PokemonGo.RocketAPI.Console.Program.<Execute>d__5.MoveNext() in C:\Users\iBot2\Desktop\Pokemon4\PokemonGo\RocketAPI\Console\Program.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx
)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Press any key to continue . . .
Thanks button for any help

If it's a fresh PTC account and slightly over 2 days old, make sure to verify the account via the email sent.
PTC accounts are automatically locked after 2 days without verification.
That did the trick for me.
-
Member
Using google account mine runs for precisely 10 minutes then stops dead. No error messages, nothing. Any advice?
I constantly have to reset it right now