BK Ghom Bot (fully customize-able skills) menu

Shout-Out

User Tag List

Page 13 of 24 FirstFirst ... 91011121314151617 ... LastLast
Results 181 to 195 of 346
  1. #181
    nonameowns's Avatar Member
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you explain what the following does exactly? My guess it move the mouse to top right middle ish?
    Code:
    Func MouseClock ()
    	Mousemove(960+50*sin(@SEC/2),480-50*cos(@SEC/2),0)
    EndFunc
    I know how mousemove works but not the sin and cos as well the @SEC/2 (what does time have to do with this function?)
    why 50? why it add to X and subtract from Y? I completed college algebra and currently taking pre-calculus so I don't know much abt triangle stuff yet.

    I'm testing my 720p version and it broke when it create a game after selecting the quest and idle in town. log doesn't mention anything and I noticed the mouse is no where in sight so I'm guessing I messed up converting the function properly.

    Thanks!

    BK Ghom Bot (fully customize-able skills)
  2. #182
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sine, Cosine are trigonometric functions. The way that function does is move the mouse in a circle centered at (960,480)
    50 is the radius of the circle, @sec/2 is just an input. new version is:
    Code:
    Func MouseClock ()
    	local $t = (@SEC+@MSEC/1000) * 2 * 3.141592653589793 / 5		;5 seconds to make a circle
    	Mousemove(960+100*sin($t),460-100*cos($t),0)
    endfunc
    You can omit that function and replace it with some random mouse movement across the screen - to prevent PC sleep during rest.

    If yuo are going to port BKBOT to a different resolution, You might simply want to create a wrapper functions for all coord related codes. example:
    rename all MouseMove(x,y,z) to MoveMouse(x,y,z)
    and write a function called
    Code:
    func MoveMouse($x,$y,$z)
        convert x,y,z to your appropriate coord in 720p
        the convertion of coords are done here instead of the main algo which will throw you off track.
        MouseMove(x,y,z)
    endfunc
    This would be a lot easier than converting ALL x,y coords to your 720p.

    Are you converting it to 1280x720?
    Last edited by burgaud; 06-24-2014 at 05:05 AM.

  3. #183
    nonameowns's Avatar Member
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    woah cool

    yes 1280x720

    for movemouse part, what is Z or depth for?

    I actually converted all coordinates by hand. not so bright to simply make a function to convert

    what about clickmouse? can i do the same for wrapper func?


    EDIT:

    here's my terrible incomplete code
    Code:
    func MoveMouse($x,$y,$z)
    	$x = * 0.66666666666666666666666666666667
    	$y = * 0.66666666666666666666666666666667
    	$z = ???
    	Floor(x,y,z)
        MouseMove(x,y,z)
    endfunc
    I'm not sure if the function will automatically take existing coordinate and I want it to round down to whole number. Don't know what Z is for.

    0.66666666666666666666666666666667 is from 1280/1920. so if you multiply 1920 by that it will get to 1280.
    Last edited by nonameowns; 06-24-2014 at 05:58 AM.

  4. #184
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    z would be for speed check autoit doc

    you should use a wrapper for all. check bkbot, line per line, and determine which codes uses coords or not and create your own wrapper function that will translate 1920x1080p coords into 720p coords. its easier that way. however, you should also be aware, there are codes that checks for pixels at specific coords, this is a lot trickier to convert.

    Here is what I am doing with a different script. These are wrapper/conversion functions converting 1920x1080 coords to a coord on the existing display resolution:
    Code:
    func XRatio($x)
    	return( int($x*@DesktopWidth/1920) )
    endfunc
    func YRatio($y)
    	return( int($y*@DesktopHeight/1080) )
    endfunc

    Then on the main codes that was written for 1920x1080, let us say the Loot function ScanPick, without touching the numbers.
    Code:
    func ScanPick ($color)
    	local $coord = PixelSearch( XRatio(960*0.5), YRatio(480*0.5), XRatio(960*1.5), YRatio(480*1.5), $color, 0)
    	if @error = 0 then
    		MouseClick("left", $coord[0], $coord[1], 1, 0)
    		sleep($PickDelay)
    		return (1)
    	endif
    	return (0)
    endfunc
    In the above, i didnot wrap MouseClick because, the coords therein are in current/target display resolution already.
    Last edited by burgaud; 06-25-2014 at 12:02 AM.

  5. #185
    DiabloSky's Avatar Private
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of all, I would like to thank you for all the works. The bot has been working great in getting me golds and legs!!!
    One thing tho, the bot is not moving the legs from inventory to the stash for me. I have been forced to set it to just pick up legs so the inventory won't get filled up easily. Things get messy when there is a leg in inventory and the bot tries to salvage other items.

    Is there a setting I can change or things I can do so it will move the legs from inventory to stash? I know this is one of the functions for the bot but it is not working for me. Thanks.

  6. #186
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DiabloSky View Post
    One thing tho, the bot is not moving the legs from inventory to the stash for me. I have been forced to set it to just pick up legs so the inventory won't get filled up easily. Things get messy when there is a leg in inventory and the bot tries to salvage other items.
    Does it go to stash? or not at all?
    ie, walk over to stash and open stash?

    Is there a setting I can change or things I can do so it will move the legs from inventory to stash? I know this is one of the functions for the bot but it is not working for me. Thanks.
    This is the setting for 20140604 version and up.
    [Stash]
    Stash=1,2,3,4
    BackpackDelay=1000

  7. #187
    dex301's Avatar Private
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is there a way to change delays? For instance after it takes the wp, maybe 20-25% of the time is miss clicks the entrance or tries to click it before the scene is loaded i think?

  8. #188
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dex301 View Post
    is there a way to change delays? For instance after it takes the wp, maybe 20-25% of the time is miss clicks the entrance or tries to click it before the scene is loaded i think?
    yes you can.

    just look for the codes that you are having problem with and mod accordingly

    BTW. What/where exactly is it having problem clicking the WP?
    a) from Town to Keep Level 3?
    or
    b) from Keep Level 3 to Larder?
    or
    c) both?
    Last edited by burgaud; 06-25-2014 at 12:05 AM.

  9. #189
    DiabloSky's Avatar Private
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It goes to and opens the stash, then clicks fast thru the items in the inventory to check to see if there is any legs but won't move the legs to the stash from inventory. Maybe it checks/clicks too fast and not enough time to correctly identify the legs in the inventory?

  10. #190
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DiabloSky View Post
    It goes to and opens the stash, then clicks fast thru the items in the inventory to check to see if there is any legs but won't move the legs to the stash from inventory. Maybe it checks/clicks too fast and not enough time to correctly identify the legs in the inventory?
    I suspect 2 things:

    Firstly, you have a much slower GPU such that, graphics rendering is taking way too long such that the item tooltip is not showing fast enough. If this is the case then do this:
    Code:
    func IsAccountBound ($x,$y)
    	MouseMove(1425+$x*50,585+$y*50,0)
    	sleep(150)
    	if SearchPixel(1366-5+$x*50.5, 708, 1366+5+$x*50.5, 973, 0x808080,0) then
    		Print("Account Bound Item Found!")
    		LogMessage("Account Bound Item Found!")
    		return(True)
    	else
    		return(False)
    	endif
    endfunc
    Increase the sleep(150) to sleep(250); if that does not yet work, increase further to sleep(500)



    Secondly, the item tooltip is not compatible with the above function for identifying an Account Bound. Only Account Bound items have the label "Account Bound". This is colored grey (0x808080) and only Account Bound items have that grey color label. The above function checks for such grey color on the Item ToolTip. if increasing the delay is not working for you, which implies you have a different color scheme, please do these:

    Step 1: Manually open your backpack
    Step 2: Move a Leg piece into your backpack
    Step 3: Point the mouse at that leg/set piece. Point - not click
    Step 4: take screen shot
    Step 5: post as PNG, without your name, unmodified resolution,

  11. #191
    dex301's Avatar Private
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by burgaud View Post
    yes you can.

    just look for the codes that you are having problem with and mod accordingly

    BTW. What/where exactly is it having problem clicking the WP?
    a) from Town to Keep Level 3?
    or
    b) from Keep Level 3 to Larder?
    or
    c) both?
    Just going to the Larder.

    Also another question, is there a way to run this in windowed and then move it off screen? Tried putting it in a virtual machine but it's just too laggy. Would like to run it while doing other things, is this possible?

  12. #192
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dex301 View Post
    Just going to the Larder.
    This part of the code is really not what I want; it is prone to errors due to lag and got no retry/recovery method. You might want to add delay before clicking on the door for now.

    Also another question, is there a way to run this in windowed and then move it off screen? Tried putting it in a virtual machine but it's just too laggy. Would like to run it while doing other things, is this possible?
    unfortunately no. if it is in windowed mode, it will be sharing the same mouse.

  13. #193
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by meqe View Post
    Screenshot will be in your inbox, I have checked to see coordinates as well.

    Character spawn 964, 504
    Banner - 886, 407
    Stash - 547, 198
    no screenshot in inbox.
    what is the problem with this one? will it be explained in the inbox message?

  14. #194
    DiabloSky's Avatar Private
    Reputation
    1
    Join Date
    Jun 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by burgaud View Post
    Increase the sleep(150) to sleep(250); if that does not yet work, increase further to sleep(500)
    Wow amazing!! I increase the number to 350 and it works (tested twice). Thanks a lot!

  15. #195
    burgaud's Avatar Active Member
    Reputation
    24
    Join Date
    Jun 2012
    Posts
    196
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UPDATE: 1600x900 and 1280x720 support

    Experimental version worked on 1600x900. It should work on 1280x720 as well (though not tested).
    Please download the new PNGMaker version as well.

    If you are trying it on these resolutions, please let us know if it works or not.

    I found this article regarding D3 resolutions. Buttom Line:
    Attachment 18392
    Last edited by burgaud; 06-26-2014 at 10:04 AM.

Page 13 of 24 FirstFirst ... 91011121314151617 ... LastLast

Similar Threads

  1. Replies: 0
    Last Post: 03-02-2009, 11:29 PM
  2. WoWSerenity - Soon to be fully custom!
    By MaXxxLove in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 05-05-2008, 05:15 AM
  3. Replies: 0
    Last Post: 01-31-2008, 11:02 PM
  4. [Release] CoreWoW Ultimate FunDB for 2.3 - Fully Custom DB
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 46
    Last Post: 12-24-2007, 05:29 AM
  5. Bot that's able to get past images...
    By Kjetulf in forum Community Chat
    Replies: 4
    Last Post: 08-19-2006, 03:15 AM
All times are GMT -5. The time now is 02:01 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search