Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » VGExtreme Programs

VG Bots - B-Bot 1.3 : VGExtreme Programs

Posted: March 15th, 2007
mordacai
Thanks for the response I just used 111 as a place holder for the real numbers, To date that was the only confusing piece of information in the bot documentation I found . to ask another question is there a button I can press that sends the command to kill control of the bot, I always make a set of waypoints and watch a run through for any problems, the only thing is I sometimes see a train wreak coming and somtimes I cant stop it, if I could kill the control of the bot I would be able to manually steer my way out. thanks again this bot is awesome.
Posted: March 16th, 2007
Total Posts:154 Joined:2006
I think a bot pause would be a good idea will work on adding that.

The way I run it now is I keep it in windowed mode with about an inch on the bottom and on the left side showing the Exhume program.

That way I can see the messages of what the bot is doing.

If you are runing it with Avoid_Players on it will tell who is close to you as well and you know why your bot quit pulling mobs.

At the top I have it just far enough over that I can hit the stop button on the bot as well.
Posted: March 16th, 2007
User avatar
Total Posts:199 Joined:2005
It tried putting on in mine a while back but i Gave up since i think it would never get the ansikey state properly, itmay have been some incompatibilty with My Key mapping vrs XUm, but i see Admin has patched in support for the VK_Keys. So maby i will try it again, if you figure a way to do it let me know..
Posted: March 16th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
You do this with a GetAsyncKeyState command set in a timer loop and check for your virtual key to be pressed. And have it toggle some looping command like bRunning or similar.

_________________
Use Search first, ask questions later!
Posted: March 16th, 2007
User avatar
Total Posts:199 Joined:2005
I tried that but didn't put it in a timer loop, I think i will give it another go tonight
Posted: March 16th, 2007
crazyjosh1
I am having a problem with it. It will move left-right to stay with the mob, but not forward and back, and it also will not attack. It will heal properly, but not attack. All keybindings are set properly per the vbs file. Any ideas?
Posted: March 16th, 2007
Total Posts:154 Joined:2006
Added the pause and will include it in the next release.
Anyone wanting to add it just use the following code.
F12 will put the bot in Pause Mode
F11 will put the bot back in normal Mode.

Add the Function above the main loop.

Code: Register to unlock hidden link

' Will Pause the bot when hitting F12
' Will UnPause the Bot when you hit F11
Function Pause 
Dim WAIT 
WAIT = 1
if GetAsyncKeyState(123) then
  Sleep 100
    do while (WAIT = 1)
      Sleep 1000
        if GetAsyncKeyState(122) then
          WAIT = 0
        End if
    loop 
End if 
End Function 


Then call the function a couple times in the main loop or the kill loop depends where you want to be able to pause the bot from.

Code: Register to unlock hidden link

Pause 
Thanks for the info Wyvernx
Posted: March 16th, 2007
mordacai
I await the release with bot pause :) , I cant code to save myself so that snippet is not much use to me, And on that note.
I see from a previous post that someone may have made some code to stop bot activity when other Player character proximity is detected please please please could you intergrate his into your code, from extensize use of various bots this is the number 1 thing to prevent reporting, Bloodmage has the ability for tranlucence this covers off getting whacked by mobs whilst standing around, I would love to stop all activity and stay in translucent form when a PC is detected untill they leave. please please implement this into the code if it is possible.
On a side note anyone notice the random NPC spawn system ?? I usulaly have a fairly small waypoint area when it gets cleared there is an insta respawn that does not always rematch what was there previously, it has been the source of many a death untill I figure out the safe spot for when the insta spawn is triggered. It is pretty similar to the harvest node system you clear a certain % of nodes in an area and you get insta respwn.
Posted: March 16th, 2007
Total Posts:154 Joined:2006
Mordacai there is already a setting to avoid players.

Pick like 50 waypoints in mobs that are spread out.

Inside the bot there is a setting for avoid players set it to 1

Avoid_Players = 1

What it will do if there is a player near after it finishing killing the current mob it will go INVIS then move to the next waypoint.
It then checks for the player if it is still near it will invis and move to the next waypoint.

So what will happen u will go invis and start running away from the person.
Posted: March 16th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
FYI, you can use the same key code for pause and un pause.

The only thing you have to remember with getasynckeystate, is that it has to be initialized once. Ie if you were to hit F12, and then call GetAsyncKeyState for the first time, it would return false. It works on the logic that it will return true ONLY if the key has been pressed since the last call to GetAsyncKeyState.

ie, this should work in theory (havnt tested):

Code: Register to unlock hidden link

' Will Pause the bot when hitting F12 
' Will UnPause the Bot when you hit F12
Function Pause 
if GetAsyncKeyState(123) then 
  Sleep 100 
    do while (GetAsyncKeyState(123) = false) 
      Sleep 1000 
    loop 
End if 
End Function 

_________________
Use Search first, ask questions later!
Posted: March 17th, 2007
User avatar
Total Posts:374 Joined:2005
i notice the bot cycle in fight many around to many sometimes cycle 7+ sekends around but mob is in front of me.
cycle also often left right left right its happent when the mob stay to close to me.

P.,s seems only on flying mobs, and the buffing still not work correct.
the skrpt self is a rly good work and helps me much while low on real time.
Posted: March 17th, 2007
crazyjosh1
It still won't attack, or move forward/backwards to follow mobs for me. It only heals and moves left-right. ><;
Posted: March 17th, 2007
kslay85
tault_razorwing wrote:I know people i getting memory problems, but is anyone getting this one:

"A Start up Error"
"Attempted to read or write to protected memory. This is often an indication that other memory is corrupt"
i get this error too
Posted: March 17th, 2007
Total Posts:154 Joined:2006
crazyjosh1

Set Waypoints = 0

That makes it stand still and fight.

See what it does it should do these things in order.

1 Finds the closest mob to it that is less than 24 units away.
2. Targest that mob and then turns to face it.
3. Casts a spell on the mob.
Posted: March 17th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
kslay85, delete vgextreme.exe and run updatevge.exe

_________________
Use Search first, ask questions later!
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 2 guests
Locked