Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 23:12

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

Advertisement



Store stackable items

Discussion on Store stackable items within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
Backxtar's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
Store stackable items

Hey, this storage function is working only for single items.. how can i store stackable items?

Code:
If FindEmptyStorageSlot($lStorageNumber, $lSlotNumber) Then
					Out("Storing item [" & $I & "," & $J & "]")
					MoveItem($lItem, $lStorageNumber, $lSlotNumber)
					Do
						RndSleep(GetPing() + 1000)
					Until DllStructGetData(GetItemBySlot($lStorageNumber, $lSlotNumber), "ID") <> 0
				EndIf
Backxtar is offline  
Old 03/24/2022, 23:49   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 94
Received Thanks: 66
just moving the item should do it, at least according to some old code

If FindEmptyStorageSlot($lStorageNumber, $lSlotNumber) Then
MoveItem($lItem, $lStorageNumber, $lSlotNumber)
EndIf

you can also check the amount and only move it if its full (250)
DllStructGetData($lItem, "quantity")
afmart is offline  
Old 03/26/2022, 08:53   #3
 
Backxtar's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
Quote:
Originally Posted by afmart View Post
just moving the item should do it, at least according to some old code

If FindEmptyStorageSlot($lStorageNumber, $lSlotNumber) Then
MoveItem($lItem, $lStorageNumber, $lSlotNumber)
EndIf

you can also check the amount and only move it if its full (250)
DllStructGetData($lItem, "quantity")
Solved the problem with arrays
Backxtar is offline  
Old 04/04/2022, 20:12   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 94
Received Thanks: 66
ok,
please note there should be 3 different headers
$MoveItemHeader
$AcceptAllItemsHeader
$MoveItemSplitHeader

I dont have the current values for headers or patterns and dont have the time to look into it. Maybe i'll do it during the summer.

this a funcion that was available in bots shared back in 2018.
Code:
Func MoveItem(Const ByRef $aItem, $aBag, $aSlot, $aAmount = 0)
	Local $lItemPtr = GetItemPtr($aItem)
	Local $lItemStruct = GetItemByPtr($lItemPtr)
	Local $lQuantity = GetItemProperty($lItemStruct, 'Quantity')
	Local $lBagPtr = GetBagPtr($aBag)
	Local $lBagStruct = GetBag($lBagPtr)
	If $lItemStruct = 0 Or $lBagStruct = 0 Then Return False
	If $aAmount = 0 Or $aAmount > $lQuantity Then $aAmount = $lQuantity
	Local $lFromSlot = GetItemProperty($lItemStruct, 'Slot')
	Local $lFromBag = GetItemProperty($lItemStruct, 'Bag')
	If $aAmount >= $lQuantity Then
		SendPacket(0x10, $MoveItemHeader, GetItemProperty($lItemStruct, 'Id'), GetBagProperty($lBagStruct, 'Id'), $aSlot - 1)
	Else
		SendPacket(0x14, $MoveItemSplitHeader, GetItemProperty($lItemStruct, 'Id'), $aAmount, GetBagProperty($lBagStruct, 'Id'), $aSlot - 1)
	EndIf
	Local $lDeadlock = TimerInit()
	Do 
		Sleep(50)
		If GetItemProperty($lItemPtr, 'Quantity') <> $lQuantity Then Return True
		If GetItemProperty($lItemPtr, 'Bag') <> $lFromBag Then Return True
		If GetItemProperty($lItemPtr, 'Slot') <> $lFromSlot Then Return True
	Until TimerDiff($lDeadlock) > 5000
	Return False
EndFunc
afmart is offline  
Reply


Similar Threads Similar Threads
[Request-PSERVER] Duping Non Stackable Items
02/24/2009 - WoW Private Server - 2 Replies
Does anyone know of how to dupe Non stackable item's, It would be very Appreciated :)
Buy -> Duping stackable items which works on Mangos ( 2.4.3 like )
10/16/2008 - WoW PServer Exploits, Hacks & Tools - 6 Replies
All in the topic. Just PM me. I pay with paypal or anything else. PS : - the tips with WPE and 50 BOJ doesn't work.
Willing to Trade - Dupe any stackable items
10/06/2008 - WoW PServer Exploits, Hacks & Tools - 6 Replies
Willing to trade hack to dupe any kind of stackable items. I make 5k gold in 5 minutes just duping sunmotes and selling to vendor. Sell materials to Jewelcrafters and Enchanters and so on, or have unlimited materials to yourself. Will only trade if you have a working bug/hack that works in ascent 2.4.3 or else it aint yours and don't waste my time by begging. Would like damage or stat bugs to kill boss easily too:mofo:
[WPE] Dupe stackable Items // working on Scape 28.08.08
09/26/2008 - WoW PServer Exploits, Hacks & Tools - 89 Replies
// Edit: deleted for security reasons All right, cause i heard that this was first postet from arigity and he say this should be deleted, i will delete /Edit the thread now. All guys have to edit their post where is a guide how to make it please. I cant answer to pms now, cause im going to greece for 4 weeks from tomorrow, just ask someone in this forum if u wanna get this exploit. Have a nice time and be happy with this until its got fixed. good bye e*pvpers* see u in 4 weeks ^^
stackable items
09/12/2008 - EO PServer Hosting - 10 Replies
hey all, just wondering how would you make a item stackable like the random portals ect thanks all :)



All times are GMT +1. The time now is 23:15.


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.