Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 05:48

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

Advertisement



Returning Guild tag of a player by ID

Discussion on Returning Guild tag of a player by ID within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2018
Posts: 3
Received Thanks: 0
Returning Guild tag of a player by ID

Evening All,

As the title says really, I want to learn how to return the guild tag of a player called up by the Agent ID, but can't find anything in the GWA2 file that comes close to this

Any ideas?

Cheers,
Ted
ted the farmer is offline  
Old 03/25/2019, 16:04   #2
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 47
This should help some:
Code:
Func Check_Is_Other_Player_Here()
	Local $how_many_Agents, $lAgentArray, $n = 0, $Myname, $Player_Name = ""
	$lAgentArray = GetAgentArray(0xDB)
	For $i = 1 To $lAgentArray[0]
		If (DllStructGetData($lAgentArray[$i], 'Allegiance') == 1) Then
			$Myname = GetCharname()
			$Player_Name = GetAgentName($lAgentArray[$i])
			If ((StringLen($Player_Name) >= 4) And ($Player_Name <> $Myname)) Then
				OUT1($Player_Name)
				$n = +1
			EndIf
		EndIf
	Next
	If ($n > 0) Then
		OUT("Player are here !")
		OUT("Change District again")
		OUT("and skip the Watcher´s! ")
		Return False
	EndIf
	Return True
EndFunc   ;==>Check_Is_Other_Player_Here
savsuds is offline  
Old 03/28/2019, 17:17   #3
 
elite*gold: 0
Join Date: Sep 2018
Posts: 3
Received Thanks: 0
Thanks!

A kind person told me that the guild info for players exists within the agent struct but isn't implemented in GWA2 or GWAPI, so we'd have to create it ourselves. Unfortunately I'm a complete C++ noob so any help would be greatly appreciated!

The advice I was given is roughly:
- There's a Tag-info Struct within Agent-Struct (Offset = 0x104)
- The first element in that struct is the guild ID
- Get the GuildArray (0x18, 0x3C, 0x2F8)
- Iterate through the GuildID ($my_guild_array[$guild_id])
- GuildName = Offset 0x30
- GuildTag = Offset 0x80

Any ideas guys?
ted the farmer is offline  
Old 03/29/2019, 06:19   #4
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 47
Maybe this will help some more.
Code:
Func GetOwnedTown($aGuildName)
	Local $curGuildName
	Static Local $lOffsets[4] = [0,0x18,0x3C]
	$lOffsets[3] = 0x2B0
	Local $TownCount = MemoryReadPtr($mBasePointer,$lOffsets)
	$lOffsets[3] = 0x2A8
	Local $TownPtr = MemoryReadPtr($mBasePointer,$lOffsets)
	$TownPtr[1] += 4

	For $i = 0 to $TownCount[1] - 1
		$curGuildName = MemoryRead($TownPtr[1] + ($i * 0x78) + 0x8,'wchar[32]')
		If $curGuildName = $aGuildName Then Return MemoryRead($TownPtr[1] + ($i * 0x78) + 0x70)
	Next

	Return 0
EndFunc

Func GetTownCurrentAlliegance($aMapId)
	Local $curMapId
	Static Local $lOffsets[4] = [0,0x18,0x3C]
	$lOffsets[3] = 0x2B0
	Local $TownCount = MemoryReadPtr($mBasePointer,$lOffsets)
	$lOffsets[3] = 0x2A8
	Local $TownPtr = MemoryReadPtr($mBasePointer,$lOffsets)
	$TownPtr[1] += 4
	For $i = 0 to $TownCount[1] - 1
			$curMapId = MemoryRead($TownPtr[1] + ($i * 0x78) + 0x70)
			If $curMapId = $aMapId Then
					Return MemoryRead($TownPtr[1] + ($i * 0x78),'long')
			EndIf
	Next
EndFunc
savsuds is offline  
Old 04/01/2019, 02:09   #5
 
elite*gold: 0
Join Date: Sep 2018
Posts: 3
Received Thanks: 0
Thanks, I'm struggling to work with that one, do you have anything that works with Agent IDs instead of towns?
ted the farmer is offline  
Old 04/01/2019, 05:54   #6
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 47
I can ask Ralle1976. He made one once that output the Character name and Tag to the GUI window. Not sure why, but he did it.

I was interested at the time in buying lockpicks in a town I owned for a cheaper rate for bot account title maxing.
savsuds is offline  
Reply


Similar Threads Similar Threads
Long Returning Player looking for help
09/25/2012 - Final Fantasy XIV - 0 Replies
Ok so I'm returning, stopped playing after the fateful tsunami tragedy, looged in I used to be on rabenastre now I'm on Balmung, still a conjurer and I have more than a few items in my bag with a red X beside, not sure what to do.... so should I just scrap everything and start a new character?
Old returning player looking for a CO guide
04/06/2012 - Conquer Online 2 - 4 Replies
So ive been off CO for a long time im really looking for any1 in lightning server or any server to atleast be my friend :P Heres the thing im returning i currently have 3 tq $25 cards from gamestop and dont know what i should do with em Only serious answers Mabe its been 1-2 and a half years since played Can this thread be moved placed in wrong section Sorry
returning player/bot maker, some basic hacks question
06/12/2008 - Conquer Online 2 - 2 Replies
Hi all, As school is over i picked up this game again. Last time i played was August 2007. A couple things i noticed: DM quit along with a lot of other respected epvpers. It was reasonable since i quit too. And now i won't be as much of a full-time hardcore as before, just play CO once in a while for fun and to pass time i guess. I nearly lost all my friends, and my main items char acct was hacked... so i lost about 100~300 hours of gameplay but oh well... My question is, since...



All times are GMT +2. The time now is 05:48.


Powered by vBulletin®
Copyright ©2000 - 2021, 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.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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