Register for your free account! | Forgot your password?

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

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

Advertisement



Looking for guidance about a trading bot.

Discussion on Looking for guidance about a trading bot. within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
sadusten's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 52
Received Thanks: 8
Looking for guidance about a trading bot.

So i've been thinking about making a trading bot for daily use, and ive got it sorted with some functions, but the one function that doesnt seems to work is OfferItem. Ive found 2 different ones, 1 from the old gwApi and one from another bot.
Anyone of you know any working offeritem function out there? would be lovely to get a tradebot going to spend less time in kamada



Code:
Func OfferItem($aItemID, $aQuantity = 1)
   If IsPtr($aItemID) <> 0 Then
	  Local $lItemID = MemoryRead($aItemID, 'long')
	  Local $lQuantity = MemoryRead($aItemID + 75, 'byte')
   ElseIf IsDllStruct($aItemID) <> 0 Then
	  Local $lItemID = DllStructGetData($aItemID, 'ID')
	  Local $lQuantity = DllStructGetData($aItemID, 'Quantity')
   Else
	  Local $lItemID = $aItemID
	  Local $lQuantity = MemoryRead(GetItemPtr($aItemID) + 75, 'byte')
   EndIf
   If $aQuantity > $lQuantity Then
	  Return SendPacket(0xC, $HEADER_TRADE_OFFER_ITEM, $lItemID, $lQuantity)
   Else
	  Return SendPacket(0xC, $HEADER_TRADE_OFFER_ITEM, $lItemID, $aQuantity)
   EndIf
EndFunc   ;==>OfferItem

Func getitemptr($aitemid)
	Local $loffset[5] = [0, 24, 64, 184, 4 * $aitemid]
	Local $litemstructaddress = memoryreadptr($mbasepointer, $loffset, "ptr")
	Return $litemstructaddress[1]
EndFunc   ;==>getitemptr



Func OfferItem2($aItem, $aAmount = 0)
	Local $lItemID, $lAmount
	If IsDllStruct($aItem) = 0 Then
		$lItemID = $aItem
		If $aAmount > 0 Then
			$lAmount = $aAmount
		Else
			$lAmount = DllStructGetData(GetItemByItemID($aItem), 'Quantity')
		EndIf
	Else
		$lItemID = DllStructGetData($aItem, 'ID')
		If $aAmount > 0 Then
			$lAmount = $aAmount
		Else
			$lAmount = DllStructGetData($aItem, 'Quantity')
		EndIf
	EndIf

	SendPacket(0xC, $HEADER_TRADE_OFFER_ITEM, $lItemID, $lAmount)
EndFunc   ;==>OfferItem2
sadusten is offline  
Old 11/02/2018, 07:34   #2
 
elite*gold: 0
Join Date: Jun 2013
Posts: 39
Received Thanks: 26
learn to make your own
4D1 is offline  
Thanks
3 Users
Reply

Tags
guild wars bot, offeritem, trade functions, tradebot


Similar Threads Similar Threads
[Selling] Bot of Legends | SETUP + GUIDANCE SERVICE
04/09/2014 - League of Legends Trading - 2 Replies
Hello, I'm willing to help anyone that doesn't get BoL working or has problem with it for 10€. I will keep you added in my Skype and answer your every question about BoL. I'm not selling the scripts/packages because they're available on the internet for free. I've been developing RS bots for more than five years and I've been working on something like BoL for a while now. Payment methods: LOL SKIN CODES REFERRALS PAYSAFECARD PAYPAL CS:GO SKINS 2007SCAPE GOLD
Looking for Guidance and Assistance.
06/27/2012 - CO2 Programming - 2 Replies
Hello guys, I am hear asking for some guidance or assistance. I would like to basically delete jump animation from my Conquer. I have searched, thread and post all day. From my findings it has been done and can be done, and I’m just looking for what files I have to delete what codes edit or whatever it takes. I am aware some people are hesitant about sharing this type of information, but if you don’t want to post here you can PM me. Thanks You for Your Patience and time. P.S I have also...
new here, just need some guidance ;)
05/20/2008 - RF Online - 1 Replies
Anyway, im playing RFPOA. But with its new patch, Fireguard cant be bypass because the client autopatches. So what i did, i got the no-patch exe found here, opened it w/ hex editor and change the IPs to RFPOA's IPs. But when i saved the file, it cant be executed. What went wrong? Or am i even in the right direction...?



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


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.