• Visit Rebornbuddy
  • [Chocobot] Chocobo Racing and MGP Farmer

    Discussion in 'Plugins' started by kagamihiiragi17, Apr 1, 2015.

    1. dwight

      dwight New Member

      Joined:
      Mar 18, 2015
      Messages:
      118
      Likes Received:
      0
      Trophy Points:
      0
      Can anyone explain to me how to place above 8th with this? It seems like every time I run it, I get 8th. 10 MGP/Run isn't really going to do the trick for me...I have a feeling I'm doing something wrong though. I updated the files from Page 2, and no change.
       
    2. Mrydeen

      Mrydeen Member

      Joined:
      Nov 9, 2014
      Messages:
      59
      Likes Received:
      0
      Trophy Points:
      6
      You need to remember that your success depends on your chocobo's own growth by pedigree and stars, plus his/her ratings at a race...

      Since the last big patch, stamina consumption caused by briars and stuff hurts ALOT, so its not a wonder placing last would be rather common sometimes. However this is based on what you put into races as well.. Beginning new chocobos with great stats usually am able to place u 7th and above 80% of the time, but that result will diminish over time as well. as you progress into different rating races.
       
    3. aznchris

      aznchris Member

      Joined:
      Apr 7, 2015
      Messages:
      88
      Likes Received:
      1
      Trophy Points:
      8
      Anyone tried running this overnight? I've been fating and mining overnight and it's safe for the most part so far. Any thoughts on this?
       
    4. Syther

      Syther New Member

      Joined:
      Apr 20, 2015
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      First of all, really really thank you for this.

      I know it might be a bit early to ask, but are you planning on releasing an updated version where steering left or right is possible and also not tto have the window focused?

      Thank you and Best Regards
       
    5. Diago1

      Diago1 Member

      Joined:
      Mar 30, 2015
      Messages:
      40
      Likes Received:
      0
      Trophy Points:
      6
      I ran it overnight many times now and it works fine, though in one instance the game left window due to someone requesting friend on Yahoo IM, then another time it crashed after about 6 hours of non-stop use. Best thing for this bot right now if the Author is even working on it at all at this point, is for adjustable variables like what stamina percentage to use Choco Cure 1-3 or ways to make the bot use one of your two abilities if a debuff happens and so forth. As well as having the bot run without the need of being in the game window.
       
    6. fantasticfantasy

      fantasticfantasy Member

      Joined:
      Jan 12, 2015
      Messages:
      100
      Likes Received:
      0
      Trophy Points:
      16
      Yea I was gonna mention if there is anyway for the the maker to use up the stamina till about 25% since that will get you in the TOP 4 spots all the time. Getting 10 MGP for being last place is kinda slow.
       
    7. Diago1

      Diago1 Member

      Joined:
      Mar 30, 2015
      Messages:
      40
      Likes Received:
      0
      Trophy Points:
      6
      Is their any coders on that can tell me how to make the bird hit left aka W in certain intervals using this bot so I can make the change? Would be fantastic if he could be hugging the left wall all the time.
       
    8. makenshi

      makenshi New Member

      Joined:
      Jan 10, 2015
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      1
      It would be in this snippet under the Chocobot.cs file:

      Code:
      new Decorator(r => InRace && Settings.SendKey,
                                  new Sequence(
      
      				new Action(r => keybd_event(ACT_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(1, 1),
      				new Action(r => keybd_event(ACT_KEY, 0, KEY_UP_EVENT, 0)),
      
                                      new Action(r => keybd_event(W_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(SprintDuration , SprintDuration ),
                                      new Action(r => keybd_event(W_KEY, 0, KEY_UP_EVENT, 0)),
                                      new Sleep(1, 1)
      
                                  )
                              ),
      There's already supporting code to use A_KEY in addition to the other directional keys, you would just add new actions in there, I assume. Haven't tested, but would be easy to implement with reasonably safe assumptions on how it works. Something like...

      Code:
      new Sequence(
      
      				new Action(r => keybd_event(ACT_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(1, 1),
      				new Action(r => keybd_event(ACT_KEY, 0, KEY_UP_EVENT, 0)),
      
                                      new Action(r => keybd_event(W_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(SprintDuration , SprintDuration ),
                                      new Action(r => keybd_event(W_KEY, 0, KEY_UP_EVENT, 0)),
                                      new Sleep(1, 1),
                                     
                                      new Action(r => keybd_event(A_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(SprintDuration , SprintDuration ),
                                      new Action(r => keybd_event(A_KEY, 0, KEY_UP_EVENT, 0)),
                                      new Sleep(1, 1)
                                  )
      
      would work if I read the rest. You'd mash W, then A, and then the next time you mash W you would mash A. Again, not tested, all theory, but should work.


      Edited: Fixed a missing comma.
       
      Last edited: May 26, 2015
    9. Diago1

      Diago1 Member

      Joined:
      Mar 30, 2015
      Messages:
      40
      Likes Received:
      0
      Trophy Points:
      6
      Thanks ill give it a try and play around with it to see what works.

      Edit: Damn, added it in but now the bot wont show up when I launch Rebornbuddy. Meaning their is an error. Ill try to figure it out. Just be a god send if I can get the bot to hit W once every 5 or so seconds to get it into the far left lane. Funny thing is im going to college soon to learn to code this kinda stuff for Network security. Hm.
       
      Last edited: May 25, 2015
    10. makenshi

      makenshi New Member

      Joined:
      Jan 10, 2015
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      1
      Fixed a typo. Let me know if that works. :S
       
    11. mumitroll

      mumitroll Member

      Joined:
      Mar 23, 2015
      Messages:
      75
      Likes Received:
      1
      Trophy Points:
      8
      Would the screen-grabing still work if I'd lock my windows ?
       
    12. makenshi

      makenshi New Member

      Joined:
      Jan 10, 2015
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      1
      This bot doesn't use screen grabbing, it just issues keyboard input to whatever application is your "currently selected" application after reading your chat log to determine if you're in a race or not. The screen grabbing one is a different plugin and not a botbase, IIRC.
       
    13. Diago1

      Diago1 Member

      Joined:
      Mar 30, 2015
      Messages:
      40
      Likes Received:
      0
      Trophy Points:
      6
      Yea pretty much. I tried your new thing but still same effect. Bot vanishes from list when I load up rebornbuddy, then comes back when I delete the new lines. Dunno what to do from this point. If something can be done to make the bird get into the left lane eventually, least by 20 percent into the race, the bird I raised would be getting 3rd or better almost every single time in the R300 bracket, thus earning 4.5-8k mgp an hour. This is basically on the Sagolii desert track, by being on the left he will grab up to 2 items, hit a stamina recovery pad, and avoid the dmg pads, only thing he will take a hit on is Heavy Pad which doesnt really do anything to the bird I have.

      I used the Plugin version before, but it goes off another botbase in its use, it goes thru menus and leaving races slower, and doesnt use items. Could any developer please restart making this bot? SE will make chocobo racing more lucrative for MGP eventually but right now, this is the best way to make MGP without having to physically do anything yourself.

      Thing is if the bot is CONSTANTLY going left however, it will actually slow it down. It needs to just hit the A key once every say 5 seconds, so that its speed doesnt get affected, and should reach the left lane by the time of the first stam pad.
       
    14. Diago1

      Diago1 Member

      Joined:
      Mar 30, 2015
      Messages:
      40
      Likes Received:
      0
      Trophy Points:
      6
      Nice. Thanks to Makenshis changes, my bird never hits last, gets first sometimes, and now earns a average of 6.1 to 7k mgp an hour.
       
    15. fantasticfantasy

      fantasticfantasy Member

      Joined:
      Jan 12, 2015
      Messages:
      100
      Likes Received:
      0
      Trophy Points:
      16
      Would you be kind enough to post the new file then?
       
    16. Mrydeen

      Mrydeen Member

      Joined:
      Nov 9, 2014
      Messages:
      59
      Likes Received:
      0
      Trophy Points:
      6
      Seems like someone already solved the issue for you guys who are wondering.

      Apologies, I have not been following this thread after a severe HDD crash - which made me lose every single code I wrote for reborn.
      Regarding the changes to the bot's behavior, note that the code WILL execute the ENTIRETY of the movement instructions listed by Makenshi before it attempts to check if it is still in a race.

      What this means is that it WILL extend the time it takes to exit a race. While I cannot create an operation to break this cycle at the moment, if you exceed a good 8 seconds on your entire movement sequence, it would be a good idea to comment out the new Sleep() line round under "new Decorator(r => RaceChocoboResult.IsOpen," You will see this immediately before the same movement sequences Makenshi suggested to edit.

      I tried using a different process to make the whole send key to window out of focus possible, but reborn seems to hate scanning your entire process tree for the FFXIV process number.

      Meanwhile, here is the code I USE for my movement sequence:-

      Code:
      new Sequence(
      
      				new Action(r => keybd_event(ACT_KEY1, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(100),
      				new Action(r => keybd_event(ACT_KEY1, 0, KEY_UP_EVENT, 0)),
      
                                      new Action(r => keybd_event(W_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(SprintDuration),
                                      new Action(r => keybd_event(W_KEY, 0, KEY_UP_EVENT, 0)),
                                      new Sleep(2000),
      
      				new Action(r => keybd_event(ACT_KEY2, 0, KEY_DOWN_EVENT, 0)),
      				new Action(r => keybd_event(D_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(100),
      				new Action(r => keybd_event(ACT_KEY2, 0, KEY_UP_EVENT, 0)),
      				new Action(r => keybd_event(D_KEY, 0, KEY_UP_EVENT, 0)),
      
                                      new Action(r => keybd_event(W_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(SprintDuration),
                                      new Action(r => keybd_event(W_KEY, 0, KEY_UP_EVENT, 0)),
                                      new Sleep(2000),
      
      				new Action(r => keybd_event(ACT_KEY3, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(100),
      				new Action(r => keybd_event(ACT_KEY3, 0, KEY_UP_EVENT, 0)),
      
                                      new Action(r => keybd_event(W_KEY, 0, KEY_DOWN_EVENT, 0)),
                                      new Sleep(SprintDuration),
                                      new Action(r => keybd_event(W_KEY, 0, KEY_UP_EVENT, 0)),
                                      new Sleep(2000)
      
                                  )
      
      I'm using a few new things that MAY not be in the original code I sent out. This can be fixed by making sure you have these lines not far above from the sequence code..

      Code:
              public const int KEY_DOWN_EVENT = 0x0001;
              public const int KEY_UP_EVENT = 0x0002;
              public const int W_KEY = 0x57;
      	public const int D_KEY = 0x44;
      	public const int A_KEY = 0x41;
      	public const int ACT_KEY1 = 0x31;
      	public const int ACT_KEY2 = 0x32;
      	public const int ACT_KEY3 = 0x33;
      
       
    17. Mrydeen

      Mrydeen Member

      Joined:
      Nov 9, 2014
      Messages:
      59
      Likes Received:
      0
      Trophy Points:
      6
      I should probably mention, my code has my chocobo leaning RIGHT.. You can change the variable from D_key to A_key if u want the left direction.. or alternate them if u prefer to zig-zag (which probably will turn out weird)..

      Also, I'm going to throw in a bonus.
      In the event where everyone uses the bot, its going to be VERY suspicious because everyone STANDS in the SAME position. If you manually park your character within range of the NPC, remove this two lines, and it will ignore the need to move your character to the preset location before the NPC where every other .. erm .. botting fool will be exactly standing on. ^__^

      Code:
                  Navigator.PlayerMover = new SlideMover();
                  Navigator.NavigationProvider = new GaiaNavigator();
      
       
    18. makenshi

      makenshi New Member

      Joined:
      Jan 10, 2015
      Messages:
      28
      Likes Received:
      0
      Trophy Points:
      1
      Since my code didn't work before via copy paste, I uploaded my changes to dropbox for Diago1 in case anyone else has paste difficulties. It looks like Mrydeen's changes are more comprehensive, though. Ideally I'd like to see the bot occasionally jump in a race, and push the W+(whatever else) keys at random intervals instead of set ones, because heuristics for the botting have to be absurdly obvious if SE ever cared.

      Anyways, here's my Chocobot.cs file in case anyone wants exactly what Diago1 asked for: https://www.dropbox.com/s/grrz7tuyanftm4b/Chocobot.cs?dl=0
       
    19. Djdave

      Djdave New Member

      Joined:
      Feb 22, 2015
      Messages:
      166
      Likes Received:
      1
      Trophy Points:
      0
      Anyone had any problems with this not pressing W? It enters races fine but then doesnt do anything when in the race, not even moving left to right using the files people have added above. The log doesnt show anything either, I have made sure that FFXIV is the active window.
       
    20. fantasticfantasy

      fantasticfantasy Member

      Joined:
      Jan 12, 2015
      Messages:
      100
      Likes Received:
      0
      Trophy Points:
      16
      I tried this. I am not getting first place.. not even once. Still getting 8th all day ere day sadly T_T.

      Diago1... how are you doing it? Can you post your files?
       

    Share This Page