Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 20:46

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

Advertisement



OK to ask for exploit/Scripting help here...

Discussion on OK to ask for exploit/Scripting help here... within the GW Bots forum part of the Guild Wars category.

Reply
 
Old 03/28/2019, 10:42   #91
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
How can i unequip an item without equipping another item instead?

Code:
Global Const $HEADER_ITEM_UNEQUIP						= 0x52	;Unequip item
lasse1993 is offline  
Old 03/28/2019, 17:35   #92
 
elite*gold: 0
Join Date: Feb 2014
Posts: 181
Received Thanks: 337
Quote:
Originally Posted by lasse1993 View Post
How can i unequip an item without equipping another item instead?

Code:
Global Const $HEADER_ITEM_UNEQUIP						= 0x52	;Unequip item
Sorry, I am not able to help much at the moment but I can provide you this from gwapi. The structure looks correct but I do not think you can directly port this but it gives you an idea of what needs to be done.

Code:
Func UnequipItem($aEquipmentSlot, $aBag, $aSlot)
   If IsPtr($aBag) Then
	  $lBagID = MemoryRead($aBag + 8, 'long')
   ElseIf IsDllStruct($aBag) Then
	  $lBagID = DllStructGetData($aBag, 'ID')
   Else
	  $lBagID = MemoryRead(GetBagPtr($aBag) + 8, 'long')
   EndIf
   Return SendPacket(0x10, 0x49, $aEquipmentSlot - 1, $lBagID, $aSlot - 1)
EndFunc   ;==>UnequipItem
In the above code these are the parameters:

Description: Unequips item to $abag, $aslot (1-based).
Equipmentslots:

1 -> Mainhand/Two-hand
2 -> Offhand
3 -> Chestpiece
4 -> Leggings
5 -> Headpiece
6 -> Boots
7 -> Gloves

Hope this helps.




Ok, there was another function in the Fiber Farmer. Try this one:

Code:
	Func unequipitem($aequipmentslot, $abag, $aslot)
		If IsPtr($abag) Then
			$lbagid = memoryread($abag + 8, "long")
		ElseIf IsDllStruct($abag) Then
			$lbagid = DllStructGetData($abag, "ID")
		Else
			$lbagid = memoryread(getbagptr($abag) + 8, "long")
		EndIf
		Return sendpacket(16, $HEADER_ITEM_UNEQUIP, $aequipmentslot - 1, $lbagid, $aslot - 1)
	EndFunc
Notice that this one calls $Header_Item_Unequip so it will read off your current gwa2 headers.
RiflemanX is offline  
Old 03/29/2019, 11:29   #93
 
elite*gold: 0
Join Date: Mar 2008
Posts: 54
Received Thanks: 3
Quote:
Originally Posted by RiflemanX View Post
Sorry, I am not able to help much at the moment but I can provide you this from gwapi. The structure looks correct but I do not think you can directly port this but it gives you an idea of what needs to be done.

Code:
Func UnequipItem($aEquipmentSlot, $aBag, $aSlot)
   If IsPtr($aBag) Then
	  $lBagID = MemoryRead($aBag + 8, 'long')
   ElseIf IsDllStruct($aBag) Then
	  $lBagID = DllStructGetData($aBag, 'ID')
   Else
	  $lBagID = MemoryRead(GetBagPtr($aBag) + 8, 'long')
   EndIf
   Return SendPacket(0x10, 0x49, $aEquipmentSlot - 1, $lBagID, $aSlot - 1)
EndFunc   ;==>UnequipItem
In the above code these are the parameters:

Description: Unequips item to $abag, $aslot (1-based).
Equipmentslots:

1 -> Mainhand/Two-hand
2 -> Offhand
3 -> Chestpiece
4 -> Leggings
5 -> Headpiece
6 -> Boots
7 -> Gloves

Hope this helps.




Ok, there was another function in the Fiber Farmer. Try this one:

Code:
	Func unequipitem($aequipmentslot, $abag, $aslot)
		If IsPtr($abag) Then
			$lbagid = memoryread($abag + 8, "long")
		ElseIf IsDllStruct($abag) Then
			$lbagid = DllStructGetData($abag, "ID")
		Else
			$lbagid = memoryread(getbagptr($abag) + 8, "long")
		EndIf
		Return sendpacket(16, $HEADER_ITEM_UNEQUIP, $aequipmentslot - 1, $lbagid, $aslot - 1)
	EndFunc
Notice that this one calls $Header_Item_Unequip so it will read off your current gwa2 headers.

Just so anyone can use it if he stumbles in here:
Code:
Global Const $HEADER_ITEM_UNEQUIP						= 0x54
lasse1993 is offline  
Old 03/30/2019, 06:20   #94
 
elite*gold: 0
Join Date: Feb 2014
Posts: 181
Received Thanks: 337
Quote:
Originally Posted by CoderAndy View Post
Hello i'm trying to make a global array with all the 1 point alcohol so i can use them with my Deldrimor skills and don't have to change the alcohol model id all the time i use:QUOTE
Code:
Global $OnePoint_Alcohol_Array[11] = [910, 5585, 6049, 6367, 6375, 15477, 19171, 19172, 19173, 22190, 28435]
Global $ThreePoint_Alcohol_Array[7] = [2513, 6366, 24593, 30855, 31145, 31146, 35124]
Global $FiftyPoint_Alcohol_Array[1] = [36682]

Global Const $ITEM_ID_Hunters_Ale = 910
Global Const $ITEM_ID_Flask_of_Firewater = 2513
Global Const $ITEM_ID_Dwarven_Ale = 5585
Global Const $ITEM_ID_Witchs_Brew = 6049
Global Const $ITEM_ID_Spiked_Eggnog = 6366
Global Const $ITEM_ID_Vial_of_Absinthe = 6367
Global Const $ITEM_ID_Eggnog = 6375
Global Const $ITEM_ID_Bottle_of_Rice_Wine = 15477
Global Const $ITEM_ID_Zehtukas_Jug = 19171
Global Const $ITEM_ID_Bottle_of_Juniberry_Gin = 19172
Global Const $ITEM_ID_Bottle_of_Vabbian_Wine = 19173
Global Const $ITEM_ID_Shamrock_Ale = 22190
Global Const $ITEM_ID_Aged_Dwarven_Ale = 24593
Global Const $ITEM_ID_Hard_Apple_Cider = 28435
Global Const $ITEM_ID_Bottle_of_Grog = 30855
Global Const $ITEM_ID_Aged_Hunters_Ale = 31145
Global Const $ITEM_ID_Keg_of_Aged_Hunters_Ale = 31146
Global Const $ITEM_ID_Krytan_Brandy = 35124
Global Const $ITEM_ID_Battle_Isle_Iced_Tea = 36682
RiflemanX is offline  
Old 03/31/2019, 03:07   #95
 
elite*gold: 0
Join Date: Jun 2009
Posts: 94
Received Thanks: 66
ill just leave this here
*flies away*

Quote:
Originally Posted by RiflemanX View Post
Code:
Global $OnePoint_Alcohol_Array[11] = [910, 5585, 6049, 6367, 6375, 15477, 19171, 19172, 19173, 22190, 28435]
Global $ThreePoint_Alcohol_Array[7] = [2513, 6366, 24593, 30855, 31145, 31146, 35124]
Global $FiftyPoint_Alcohol_Array[1] = [36682]

Global Const $ITEM_ID_Hunters_Ale = 910
Global Const $ITEM_ID_Flask_of_Firewater = 2513
Global Const $ITEM_ID_Dwarven_Ale = 5585
Global Const $ITEM_ID_Witchs_Brew = 6049
Global Const $ITEM_ID_Spiked_Eggnog = 6366
Global Const $ITEM_ID_Vial_of_Absinthe = 6367
Global Const $ITEM_ID_Eggnog = 6375
Global Const $ITEM_ID_Bottle_of_Rice_Wine = 15477
Global Const $ITEM_ID_Zehtukas_Jug = 19171
Global Const $ITEM_ID_Bottle_of_Juniberry_Gin = 19172
Global Const $ITEM_ID_Bottle_of_Vabbian_Wine = 19173
Global Const $ITEM_ID_Shamrock_Ale = 22190
Global Const $ITEM_ID_Aged_Dwarven_Ale = 24593
Global Const $ITEM_ID_Hard_Apple_Cider = 28435
Global Const $ITEM_ID_Bottle_of_Grog = 30855
Global Const $ITEM_ID_Aged_Hunters_Ale = 31145
Global Const $ITEM_ID_Keg_of_Aged_Hunters_Ale = 31146
Global Const $ITEM_ID_Krytan_Brandy = 35124
Global Const $ITEM_ID_Battle_Isle_Iced_Tea = 36682
Attached Files
File Type: txt KnownItemModels.txt (41.3 KB, 23 views)
afmart is offline  
Thanks
3 Users
Old 03/31/2019, 16:17   #96
 
elite*gold: 0
Join Date: Aug 2014
Posts: 17
Received Thanks: 0
hello, I have a coding problem in the function fight I want to make sure that the bot attack priority Forgotten Sage.and if there is not in the group he normally target. could you m ' please help? cordially
diguano is offline  
Old 03/31/2019, 18:37   #97
 
elite*gold: 0
Join Date: Feb 2014
Posts: 181
Received Thanks: 337
Quote:
Originally Posted by diguano View Post
hello, I have a coding problem in the function fight I want to make sure that the bot attack priority Forgotten Sage.and if there is not in the group he normally target. could you m ' please help? cordially
There are some scripts that target a boss or a healer in a group first. Think about what scripts might have this and look through the functions to see if there is something to help. I know Kilroy has something like this so you can try editing the below first.

Code:
Func SelectTarget()
	$target = GetCurrentTarget()
	$Me = GetAgentByID(-2)
	If $target <> 0 And DllStructGetData($target, 'Type') = 219 _
			And DllStructGetData($target, 'Allegiance') = 3 And GetIsDead($target) = 0 Then
		If TimerDiff($tSwitchtarget) < 1000 Or GetDistance($Me, $target) < 100 Then
			Return DllStructGetData($target, 'Id')
		Else
			ConsoleWrite("Switching target, out of range!" &  [MENTION=3576271]CRLF[/MENTION])
		EndIf
	EndIf
	$tSwitchtarget = TimerInit()
	Update("Looking for items")
	PickupItems(1000)
	Update("Selecting new target")
	$kilroy = GetAgentById($kilroyID)
	If GetIsDead($kilroy) Then
		$target = GetNearestEnemyToAgent($meID)
		ConsoleWrite("Kilroy is dead! Roaming!" &  [MENTION=3576271]CRLF[/MENTION])
	Else
		$target = GetAgentByID(GetTarget($kilroy))
		If $target = 0 Or GetIsDead($target) Or DllStructGetData($target, 'Allegiance') <> 3 Then
			$possibletarget = GetNearestEnemyToAgent($kilroy)
			If GetDistance($possibletarget, $kilroy) < 1250 Then
				ConsoleWrite("Roaming!" &  [MENTION=3576271]CRLF[/MENTION])
				$target = $possibletarget
			EndIf
		Else
			ConsoleWrite("Trying to copy target!" &  [MENTION=3576271]CRLF[/MENTION])
		EndIf
	EndIf
	If GetIsBoss($target) Then
		;It's a boss, lets search for minions first!
		$possibletarget = GetNearestEnemyToAgent($target)
		If $possibletarget <> 0 And GetDistance($possibletarget, $kilroy) < 1250 Then
			ConsoleWrite("Retargeting to minion!" &  [MENTION=3576271]CRLF[/MENTION])
			$target = $possibletarget
		EndIf
	EndIf
	If $target <> 0 And GetIsDead($target) = 0 Then
		$targetId = DllStructGetData($target, 'Id')
		Update("Attacking " & $targetId)
		ChangeTarget($target)
		Sleep(GetPing())
		Attack($target)
		Return $targetId
	EndIf
EndFunc   ;==>SelectTarget
RiflemanX is offline  
Thanks
1 User
Old 07/01/2019, 15:15   #98
 
elite*gold: 0
Join Date: Apr 2008
Posts: 14
Received Thanks: 1
How do i go about updating the PerformAction functions in GWA2 (especially TargetNearestAlly, TargetNearestEnemy, etc.) ? Any hints?

Func TargetNearestAlly()
Return PerformAction(0xBC, 0x18)
EndFunc ;==>TargetNearestAlly

Any way to find these with BotDeveloper?
noobsuy is offline  
Old 07/02/2019, 06:24   #99
 
phat34's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 120
Not 100% sure... but two updates ago we raised most of the second PeformAction values by +6.... so this would change the 0x18 to 0x1E and that function should work.

@
for completeness when you have time can you also add the Func GetIsBoss() to message #100

@
Did that help you solve the problem...?? I use to use a Func GetAgentbyName() to help me with situations like this and then Func Target($lAgent)… Let me know if you still need help with this.
phat34 is offline  
Old 07/04/2019, 19:22   #100
 
elite*gold: 0
Join Date: Jun 2019
Posts: 2
Received Thanks: 0
In GWA2,
Code:
GetTraderCostValue()
always returns 0. Anyone any ideas on this?
makryno is offline  
Old 07/05/2019, 13:28   #101


 
elite*gold: 144
Join Date: Aug 2010
Posts: 69
Received Thanks: 9
anyone got an updated gwbible? i tried that one from the working JQ bot but still get an error "Label: SkillLogProc not provided"
1328™ is offline  
Old 07/09/2019, 23:10   #102


 
elite*gold: 144
Join Date: Aug 2010
Posts: 69
Received Thanks: 9
i have two questions:

First one: is there an list of all map ids? i am to lazy to create one

Second: SetDisplayedTitle(0x29) change the displayed title to Norn. how can i find out for other titles? i dont find anything in the botdeveloper :/
1328™ is offline  
Old 07/10/2019, 06:04   #103
 
phat34's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 120
Cool yes sir

Quote:
Originally Posted by 1328™ View Post
i have two questions:

First one: is there an list of all map ids? i am to lazy to create one

Second: SetDisplayedTitle(0x29) change the displayed title to Norn. how can i find out for other titles? i dont find anything in the botdeveloper :/
1)


********* = gam3r3vision but with normal letters (site blocks it)

2)
;~ Description: Set the currently displayed title.
;~ Author: Skaldish
;~ No Title = 0x00
;~ Spearmarshall = 0x11
;~ Lightbringer = 0x14
;~ Asuran = 0x26
;~ Dwarven = 0x27
;~ Ebon Vanguard = 0x28
;~ Norn = 0x29
phat34 is offline  
Thanks
2 Users
Old 07/10/2019, 21:55   #104
 
elite*gold: 0
Join Date: Jun 2019
Posts: 7
Received Thanks: 21
Hey all, I’m a full-time software developer and recently got back into Guild Wars to start making bots as a hobby. This forum has been an awesome resource and props to all of the main contributors around here making/updating bots and helping out everyone. Some people seem unappreciative of the few folk that are really doing a lot to support this community and I want to say thank you to those guys.

I’ve started editing a Vaettir bot with success but I’d like to make it more intelligent when it comes to handling items. Things like salvaging certain Mods, saving r9 items of specific attributes, salvaging Highly Salvagable items, and salvaging items for specific materials.

My idea was to make a script that bots could require in their script that would act as a module to handle these different scenarios with a GUI to select and prioritize what inscriptions/mods you’d like to salvage/store, items and requirements you’d like to store, materials you’d aim to salvage from items that don’t meet any of the other criteria, etc.

My question is, is this something that’s already done or attempted? Is this more work than I assume? I’ve laid out a decent sized framework of GUI, functions and workflow. But I haven’t developed a bot start to finish yet and I’m not sure if it’s even possible to make a ‘module’ like this that can be essentially plugged in to existing bots to handle their item/inventory logic.
spartanfbj is offline  
Old 07/11/2019, 06:35   #105
 
phat34's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 120
Anything is possible till they turn the switch off or decide to make it impossible...
phat34 is offline  
Reply


Similar Threads Similar Threads
Hello guys, i got hacked and gm didnt help me :( so i ask for help here
12/22/2009 - Kal Online - 25 Replies
Hello guys, i got hacked 7 days ago, i sent a c/s to gms connected my id card, they told me twrite back after 7 days... GM Reply Hello. This is Kalonline. We checked over your report and blocked hackers.
HELP! I need help scripting
02/06/2007 - Conquer Online 2 - 1 Replies
OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
L2Walker, scripting questions/help
12/13/2006 - Lineage 2 - 0 Replies
Hey, just asking a few questions hope you don't mind ^_^ I'm looking to make a script so when I cast magic on something, the walker bot will cast, say Wind Strike, on the same thing, at the same time. I've looked through the options in walker and have it setup now, but it doesn't cast at the same time, but when I've finished casting. If this isn't possible, last time I checked Walker scripts could not pickup what was said in chat, is this still the case? Thanks. ^_^ Note: If you...
I need help scripting
09/05/2006 - General Coding - 0 Replies
Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D



All times are GMT +1. The time now is 20:47.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.