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

Vanguard Scripting - VGExtreme : VGExtreme Programs

Posted: February 16th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
Its come along way since release.. See the discussion thread for updates and info.


I have included a demo script so that you can see how to interface with the variables.

Please give me feedback and if you have any requests, please make them in the discussion thread.

To run, just run VGExtreme and it will do the rest.

Please do not modify the includes/VGService.vbs file. However, any modifications you make to the main script will not get overwritten.

This is a community effort to make a nice bot. Please post any updates you make to the script so that everybody can enjoy it.


Here are the included API's for the first release. You can look at the includes/VGService.vbs file to get more detailed informationon how these are implemented. You dont have to use these simplified functions, but I havnt documented very much the direct interface. However, you can look at the sources and get a better feel for it. It might be easier for some to use the direct methods.

Code: Register to unlock hidden link

'///     -=*) \/anguard : Saga of |-|eroes (*=-      ///
'///          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~           ///
'///          V G E x t r e m e  V 1. 0 0            ///
'///          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~           ///
'///Author:  WyvernX                                 ///
'///Original Release:  2/14/07                       ///
'///License:  TaultUnleashed Premium Members ONLY    ///
'///Summary:  Enables memory access to Vanguard      ///
'///          class objects and logs.                ///
'///////////////////////////////////////////////////////
'///Notes:  DO NOT EDIT THIS FILE                    ///
'///        THIS FILE WILL PATCH ON NEW RELEASES!!!  ///
'///////////////////////////////////////////////////////
'///                                                 ///
'///             Vanguard Service API                ///
'///                                                 ///
'///////////////////////////////////////////////////////
'///Notes:  DO NOT EDIT THIS FILE                    ///
'///        THIS FILE WILL PATCH ON NEW RELEASES!!!  ///
'///////////////////////////////////////////////////////

'Currently Implemented Functions:
'================================================

'function EnableChatLog() //Turns on the Live Chat log (this HOOKS into the game)
'function DissableChatLog() //Turns off the Live Chat log (this UNHOOKS from the game)

'function getPlayerName() //Returns the Player's Name
'function getPlayerHeading() //Returns the Player's Heading
'function getPlayerZ() //Returns the Player's Z Coordinage
'function getPlayerY() //Returns the Player's Y Coordinage
'function getPlayerX() //Returns the Player's X Coordinage
'function getPlayerHealth() //Returns the Player's Health
'function getPlayerEndurance() //Returns the Player's Endurance
'function getPlayerPower() //Returns the Player's Power
'function getPlayerSpeed() //Returns the Player's Speed
'function getPlayerLevel() //Returns the Player's Level

'function getTargetID() //Returns the Target SpawnID
'function getTargetName() //Returns the Target's Name
'function getTargetZ() //Returns the Target's Z Coordinage
'function getTargetY() //Returns the Target's Y Coordinage
'function getTargetX() //Returns the Target's X Coordinage
'function getTargetHealth() //Returns the Target's Health
'function getTargetDirection() //Returns the Player's Direction to the target
'function getTargetDistance() //Returns the Player's Distance to the target
'function getTargetPoints() //Returns the Target's Points
'function getTargetType() //Returns the Target's Type
'function getTargetLevel() //Returns the Target's Level

'sub setSearchDistance(distance) //Sets the distance for scanning for mobs (default is 40)
'function getNearestMobs(MobType) as ArrayList //Returns with an array of mob objects

'function getMobID(Mob) //Returns the Mob ID
'function getMobName(Mob) //Returns the Mob Name 
'function getMobX(Mob) //Returns the Mob X
'function getMobY(Mob) //Returns the Mob Y
'function getMobZ(Mob) //Returns the Mob Z
'function getMobLevel(Mob) '//Returns the Mob Level
'function mobIsAttacking(Mob) '//Returns the true/false if mob is attacking something
'function getMobHealth(Mob) '//Returns the Mob Health
'function getMobPoints(Mob) '//Returns the Mob Points Rating (1 = easy, 2 = normal, 3 = harder, etc)
'function getMobType(Mob) '//Returns the MobType (see globals)
'function getMobDistance(Mob) '//Return the ingame distance to the mob from the player
'function getMobDirection(Mob) '//Returns the heading degrees to the mob from the player


Attachments:
VGExtremev2.1.zip Register to unlock hidden link
updated to version 2.0, lots of new features.
(1.68 MiB) Downloaded 170 times


Last edited by wyvernx on April 23rd, 2009, 9:12 pm, edited 15 times in total.
Posted: February 16th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
Please redirect all comments and discussion to this thread:

Register to unlock hidden link

_________________
Use Search first, ask questions later!


Last edited by wyvernx on February 25th, 2007, 1:20 am, edited 2 times in total.
Posted: February 16th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
Here is a screenshot so you can see some of what you can do:


Attachments:
Register to unlock hidden image
VGExtreme.jpg (152.89 KiB) Viewed 11925 times
Posted: February 21st, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
Updated 2/21/07
--Added: Patch engine to grab latest updates
--BugFix: ExhumeHelpe.dll should now properly register
--Added: includes/Navigation.vbs
'///Modified 2/21/07 - Added MoveToMob(Mob) 'Thisb will move the player to the mob within 4 yards.
'///Modified 2/21/07 - Added faceMob(Mob) 'This will turn the player to the mob within 20 degrees.
'///Modified 2/21/07 - Added faceDirection(Mob) 'This will turn the player to the mob within 20 degrees.
'///Modified 2/21/07 - Added MoveTo(x,y) 'This will move the player to 4 yards of the x,y coords
--Updated: includes/VGService.vbs
'///Modified 2/21/07 - Added VGSendText(strText) 'Get VG focus then send a text string (NO ENTER)
'///Modified 2/21/07 - Added VGSendCommand(strCommand) 'Get VG focus then send a text string with ENTER
'///Modified 2/21/07 - Added getPlayerDistanceTo(Mob) 'Returns the distance from the player to the mob
'///Modified 2/21/07 - Added getTarget() ' Returns a reference object to the target
'///Modified 2/21/07 - Added getPlayer() ' Returns a reference object to the player
'///Modified 2/21/07 - Added getPetHealth() ' Returns the current pet's HitPoints
'///Modified 2/21/07 - Added getPlayerIsAttacking() 'Returns True/False if player is attacking
'///Modified 2/21/07 - Added getPetMaxHealth() ' Returns the current pet's max HitPoints
'///Modified 2/21/07 - Added getMob(Mob) ' Returns a byRef object that can be passed to functions
'///Modified 2/21/07 - Added getPlayerDistanceTo(Mob) 'Returns the distance to the mob

_________________
Use Search first, ask questions later!
Posted: March 15th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
March 13, 2007
--BugFix Fixed the GUID (its now dynamic)
--Patched for Update 3.13.07

'///Modified 3/13/07 - Added const TYPE_OBJECT = &H8010
'///Modified 3/13/07 - Added getMobIsAggro(Mob) returns true/false
'///Modified 3/13/07 - Added getTargetDifficulty() returns a string of how hard the mob is. (NoXP, n1, n2, Even, p1, etc)
'///Modified 3/13/07 - Added getPlayerIsAutoAttacking() returns true/false
'///Modified 3/13/07 - Added getPlayerHasPet() returns true/false
'///Modified 3/13/07 - Added getPlayerIsHarvesting() returns true/false
'///Modified 3/13/07 - Added getPlayerIsCasting() returns true/false
'///Modified 3/13/07 - Added getPlayerHasCounter() returns true/false
'///Modified 3/13/07 - Added getPlayerHasFinisher() returns true/false
'///Modified 3/13/07 - Added getPlayerHasCombatForms() returns true/false
'///Modified 3/13/07 - Added getPlayerHasRescue() returns true/false
'///Modified 3/13/07 - Added getPlayerHasSympathetic() returns true/false
'///Modified 3/13/07 - Added getPlayerHasVirtue() returns true/false

_________________
Use Search first, ask questions later!
Posted: March 15th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
March 14, 2007 Vgextreme 1.4
'///Modified 3/14/07 - Added getDefTarget() returns Mob Object pointing to the Defensive Target, can use all getMobXXXX functions on it. Ie getMobName(getDefTarget) etc
'///Modified 3/14/07 - Added getDefTargetHP() 'Returns the Defensive Target HP

_________________
Use Search first, ask questions later!
Posted: March 19th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
March 20, 2007 Vgextreme 1.5
'///Modified 3/20/07 - Added getGroupMember(ZeroBasedIndex) 'Returns a Mob object for the party member at position index
'///Modified 3/20/07 - Added getGroupMemberCount() 'Returns the number of members in your party
'///Modified 3/20/07 - Added getGroupMemberHP(ZeroBasedIndex) 'Returns the Group Member HP at index

_________________
Use Search first, ask questions later!
Posted: March 24th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
March 24, 2007 VGExtreme v1.6

'///Modified 3/24/07 - Bugfix Added Vista Support. (see forum for details on how to setup)
'///Modified 3/24/07 - Bugfix Fixed some CLSID errors some where having.
'///Modified 3/24/07 - Added getPlayerChunkX() 'Returns the map coords in chunk format.
'///Modified 3/24/07 - Added getPlayerChunkY() 'Returns the map coords in chunk format.

To get working in vista (and maybe xp64):
Right click on VGExtreme.exe Click on poperties. Check the box for Run in Compatibility mode with XPSP2. Check the box for Run as Administrator. Do the same for UpdateVGExtreme.exe.




March 28, 2007 - VGExtreme v1.7
'///Modified 3/28/07 -Bugfix with chat log not closing on exit.
'///Modified 3/28/07 -Added VGEWrapper.dll that can be inlcuded in any .net project and you can use VGE!
'///Modified 3/28/07 -Fixed a few memory locs. Should work with latest patch now.




March 29, 2007 - VGExtreme v1.8
'///Modified 3/29/07 -Bugfix Object.ByRef works again.
'///Modified 3/29/07 -Bugfix Player.HP works again.
'///Modified 3/29/07 -Bugfix MobArray works again.
'///Modified 3/29/07 -Bugfix Better exceptions are now logged to help identify problems.

_________________
Use Search first, ask questions later!


Last edited by wyvernx on April 11th, 2007, 7:23 pm, edited 2 times in total.
Posted: April 11th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
April 11, 2007 - VGExtreme v1.9

'/// Modified 4/11/07 - Bugfux Fixed disconnect issue with VGEWrapper.dll
'/// Modified 4/11/07 - Added COM access

'/// Place VGE into folder that accesses COM object and run.
'/// IE to run under AutoIT, place VGE into autoIT folder.

Here is a demo autoit script:

Code: Register to unlock hidden link

Dim $oAutoIT

$oAutoIT = ObjCreate('VGExtreme.VGEWrapper')

Msgbox(0,"AutoItCOM Test",   $oAutoIT.Player.Name)

_________________
Use Search first, ask questions later!
Posted: April 14th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
April 14, 2007 - VGExtreme v1.9a

'/// Modified 4/14/07 - Bugfux Fixed COM access.
'/// To access from AutoIT (or any other COM language):
'/// Place VGE into folder that accesses COM object and run.
'/// IE to run under AutoIT, place VGE into autoIT folder.
'/// Com object is called: VGExtreme.VGECOMWrapper
'/// You will need to register the com objects via: Regasm.exe /codebase VGECOMWrapper.dll

_________________
Use Search first, ask questions later!
Posted: April 30th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
May 1, 2007 - VGExtreme v1.10

-- Bugfix VG chat log now logging the correct chat window name
-- Added Crafting:

Crafting functions are starting to go in. Most are self explanatory. But, holler if you need help!

These are found in the includes/VGCrafting.vbs file


'Function Crafting_State
'Function Crafting_StepHealth(step)
'Function Crafting_ComplicationHealth(step)
'Function Crafting_StageCount
'Function Crafting_StepCount
'Function Crafting_Stage
'Function Crafting_ActionPointsMax
'Function Crafting_ActionPointsLeft
'Function Crafting_Quality
'Function Crafting_QualityLetter
'Function Crafting_CurrentStageHealth
'Function Crafting_RecipeId
'Function Crafting_RecipeSectionName
'Function Crafting_RecipeNumUses
'Function Crafting_RecipeDescription
'Function Crafting_RecipeName
'Function Crafting_ActionDescription(step)
'Function Crafting_RemedyDescription(step)
'Function Crafting_ToolTipDescription
'Function Crafting_ToolTipName

_________________
Use Search first, ask questions later!
Posted: May 12th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
May 12, 2007 - VGExtreme v1.11

-- Bugfix: Working with latest patch.
-- Added: VB.Net sample application to play with.

_________________
Use Search first, ask questions later!
Posted: May 12th, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
May 12, 2007 - VGExtreme v1.12

--Bugfix: Tweaked some Vista issues.

_________________
Use Search first, ask questions later!
Posted: May 21st, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
May 21, 2007 - VGExtreme v1.13

-- Bugfix: getGroupMemberHP(ZeroBasedIndex) 'Returns the Group Member HP at index
-- Added: getGroupMemberMP(ZeroBasedIndex) 'Returns the Group Member MP at index

_________________
Use Search first, ask questions later!
Posted: May 23rd, 2007
User avatar
Premium
Total Posts:6662 Joined:2004
May 23, 2007 - VGExtreme v1.14

-- Bugfix: Patched for VG update.

_________________
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 1 guest
Locked