Results 1 to 3 of 3
  1. #1
    New's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    Location:
    Posts
    2,605
    Reputation
    386
    Thanks
    4,708
    My Mood
    Angelic

    Famebot done, but..

    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

  2. #2
    pixelzerg's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    UK
    Posts
    188
    Reputation
    10
    Thanks
    1,113
    Are you sure you tried:

    new System.Threading.Thread(()=>{
    //stuff
    }).Start();

    Where you are doing your loops, if not, try it.

  3. #3
    New's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Location
    Location:
    Posts
    2,605
    Reputation
    386
    Thanks
    4,708
    My Mood
    Angelic
    Quote Originally Posted by pixelzerg View Post
    Where you are doing your loops, if not, try it.
    I never liked threads, but I'll try it.

    edit: Did this
    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();
    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.

    **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

Similar Threads

  1. Replies: 5
    Last Post: 05-17-2016, 11:00 AM
  2. [Solved] Dang hack is done, but wont build >.<
    By cobi45 in forum Combat Arms Coding Help & Discussion
    Replies: 14
    Last Post: 01-09-2013, 06:40 AM
  3. Ive done everything right but my hacks still don't work
    By badgerfighter in forum Combat Arms Help
    Replies: 11
    Last Post: 06-11-2010, 09:48 AM
  4. I havent done this in a long time but oh well
    By ghostsbow in forum Art & Graphic Design
    Replies: 5
    Last Post: 10-26-2009, 09:00 PM
  5. my sig is done but i need some help
    By A7X Oblivian in forum Help & Requests
    Replies: 0
    Last Post: 02-21-2006, 12:24 AM