Are you sure you tried:
new System.Threading.Thread(()=>{
//stuff
}).Start();
Where you are doing your loops, if not, try it.
so im working on this famebot that uses an external application and a plugin
the external app sends keystrokes (perfectly, just like a human, not "sendkeys") and the plugin sends the coords to the external app
Here are the 2 problems:
problem 1:
The plugin does not update the location of neither you, nor your targets.
As seen here:
problem 2 is also seen in the video, and it is that after you activate the command, the map doesnt update and you get kicked after a while
Hypothesis: Do-Loops and KRelay are not friends (threads and krelay are also not friends (yes I tried it))
Any suggestions?
Of course, I have no idea why problem 1 exists.
client.Playerdata.pos.x (and y and target x and target y) dont update at all.
I'll mention some people that I think could help here: @059 @CrazyJani @pixelzerg (i used pixelzergs plugin to get x&y, and did a loop in the "COM" void)
Gif explanation: the title of the external app are yourX|yourY|targetX|targetY, and as you can see they dont update, however I have a do loop in krelay that should update them every time. The player moves up and right, where he is supposed to, but since it doesnt update the coords, he keeps moving up and right forever. (the bot is trying to follow "Captain" who is indeed in the top right of the player at the time of activation)
-update
this https://www.mpgh.net/forum/showthread.php?t=1146361
I replaced all the data with just pos.x and pos.y and looped it, but it doesnt seem to work.
Last edited by New; 10-28-2016 at 01:50 PM.
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack
Are you sure you tried:
new System.Threading.Thread(()=>{
//stuff
}).Start();
Where you are doing your loops, if not, try it.
I never liked threads, but I'll try it.
edit: Did this
And it works perfectly. I was too afraid to try threads (no I didn't try it, but general fear towards threads) they always fuck me over with errors and crossthreads. Thanks again, cheers.Code:new System.Threading.Thread(() => { do{ PlayerData data = dict[args[0].ToLower()]; //Code that contains taking playerdata.pos.x and y and doing stuff with them}while(true) }).Start();
**New problem emerges
client.PlayerData.pos.x (my player) updates nicely, however the positions I get from your PlayerStatus plugin don't update.And it's weird because they are supposed to update with each update packet... Right? Is something preventing the update to reduce cpu usage, so it doesnt access the dictionary each 200 ms? Because I can't find it.
Last edited by New; 10-28-2016 at 05:12 PM.
New
Current Project:
SimpleExaltHack
Outdated stuff I made in the past:
Famebot
Clientless tradebot
RotMG ping checker
Zautonexus crack