[HELP] Fishing bot afking menu

User Tag List

Results 1 to 10 of 10
  1. #1
    kingviper's Avatar Active Member
    Reputation
    24
    Join Date
    Mar 2007
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] Fishing bot afking

    So I made a fishing bot, nicely functioning, I am only running into the problem that my char would go afk. How do you guys usually prevent your fishing bots from going afk? I tried doing the LUA code for jumping JumpOrAscendStart(); which worked and kicked him out of being afk but after he landed his jump with in seconds my character would be marked for AFK instantly.

    Thanks again


    :gtfo2:



    [HELP] Fishing bot afking
  2. #2
    kosacid's Avatar Active Member
    Reputation
    19
    Join Date
    May 2009
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    strange one usaly the fishing action stops it, with mine i use a key press just drop my fishing icon onto slot 1 then my program presses button 1 for me, thats why maby mine isent doing it

  3. #3
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Reverse CGGameUI::UpdatePlayerAFK and you'll be fine.

  4. #4
    TrioxX's Avatar Sergeant
    Reputation
    11
    Join Date
    Aug 2010
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UpdatePlayerAFK or you just overwrite LastHardwareAction (frequently, using TimeStamp or just set it to 2147483647 one time)

  5. #5
    kingviper's Avatar Active Member
    Reputation
    24
    Join Date
    Mar 2007
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick responses. Will give in a go!


    :gtfo2:



  6. #6
    kingviper's Avatar Active Member
    Reputation
    24
    Join Date
    Mar 2007
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey guys me again, after playing around with the updateplayerafk for like the day I ran into a problem figuring out what I need to do at the address. When I read it I get 6000295884921765888 - afk
    Now do I write to this address a certain value? When I actually go afk, there is no change in this value so I am at a lost to how it is related to the afk state.

    I am using wowC.ReadUInt64((uint)wowC.MainModule.BaseAddress + 0x96B560) to read the address and this is with 5.0.5 addresses

    Thanks


    :gtfo2:



  7. #7
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    reverse how that function is called. This has nothing to do with /afk but is the function which gets updated while moving to allow automatic afk-state and logging out.

    I cant help you more because I am not at the computer, but the challange as developer is it to get such easy things on your own

  8. #8
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could search OHack in this forum.... it's a open source Hack which including anti-AFK..... it's a very good Tutorial

  9. #9
    kingviper's Avatar Active Member
    Reputation
    24
    Join Date
    Mar 2007
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey guys me again, after a week of trying to figure out how to reverse engineer the afk, I have had no luck. I am ripping my hair out it is so annoying. I looked at Ohack but couldn't recognize the afk section and it made no sense. Does anyone have an afk section of code I could look at?

    Thanks I appreciate it!


    :gtfo2:



  10. #10
    ccKep's Avatar Member
    Reputation
    11
    Join Date
    Jan 2010
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kingviper View Post
    after a week of trying to figure out how to reverse engineer the afk, I have had no luck.
    Reversing CGGameUI::UpdatePlayerAFK has nothing to do with luck. Try to answer these questions:

    a) What have you tried / where are you stuck exactly?
    b) What have you learned of the function so far?

    I'm assuming you're out of process (you're trying to read the address where CGGameUI__UpdatePlayerAFK is located at in reply #6, that's a function...)

    The skeletton of that function's basically:

    Code:
    if (curTime - LastHardwareAction >= 300000)
    {
    	// Last Hardware Action >= 5mins ago.
    	if (curTime - LastHardwareAction < 1800000)
    	{
    		// Last Hardware Action >=5mins but < 30mins, sit and afk.
    	} else {
    		// Last Hardware Action >= 30mins ago, logout
    	}
    }
    To avoid all that stuff you just have to set LastHardwareAction so that he if is never true.
    So, either 0x7FFFFFFF once or to GetTime()*1000 (current time in ms) when you cast your fishing spell.

    I'll leave getting the address of LastHardwareAction as an exercise, it's really simple if you're reading this section of the forum.
    Last edited by ccKep; 09-20-2012 at 10:13 PM.

Similar Threads

  1. PiroX Fish Bot & AFK Honor Bot!!
    By kunited in forum World of Warcraft Bots and Programs
    Replies: 24
    Last Post: 09-13-2008, 01:00 PM
  2. Help with fishing bots
    By Vagi99 in forum World of Warcraft General
    Replies: 1
    Last Post: 08-31-2006, 10:42 AM
  3. Fishing Bot Help
    By RichyG in forum World of Warcraft General
    Replies: 0
    Last Post: 07-05-2006, 01:26 AM
  4. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 1
    Last Post: 05-07-2006, 08:36 PM
All times are GMT -5. The time now is 04:12 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search