Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 09:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Function to return current player position

Discussion on Function to return current player position within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
Function to return current player position

I'm currently working on the Boreal chest farm bot which from time to time get stuck behind the npc next to the gate.

I want to add a check of the current position of the players character.

So i could check the range between the player and a fix point to change the way he is using to run outside.

My problem is i cant find a function to return "Current Player Position"

Hope someone could help me

Oh i actually found it lol.

Close pls

Code:
Func UpdatePos()
	GUICtrlSetData($gX, StringFormat("X: %d", DllStructGetData(GetAgentByID(-2), "X")))
	GUICtrlSetData($gY, StringFormat("Y: %d", DllStructGetData(GetAgentByID(-2), "Y")))
	GUICtrlSetData($gRotation, StringFormat("Rotation: %f", DllStructGetData(GetAgentByID(-2), "Rotation")))
EndFunc
lasse1993 is offline  
Reply


Similar Threads Similar Threads
Change role XYZ will move but return to original position immediately
07/31/2018 - Black Desert - 8 Replies
The current situation is to lock and modify the XYZ value, successfully teleport, but immediately return to the original position.Can someone help me solve the problem?
Finding current position of a player
01/07/2018 - DarkOrbit - 10 Replies
Hello! Is it possible to find the map of any player who is online? Edit: I mean something other than writing him in chat, adding him in contact list, joining his clan with another accout, etc.
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again. Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all. The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run. #AutoIt3Wrapper_UseX64=n...
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack



All times are GMT +1. The time now is 09:42.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.