|
You last visited: Today at 23:12
Advertisement
Store stackable items
Discussion on Store stackable items within the GW Bots forum part of the Guild Wars category.
03/21/2022, 21:49
|
#1
|
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
|
|
|
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")
|
|
|
03/26/2022, 08:53
|
#3
|
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
|
Quote:
Originally Posted by afmart
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
|
|
|
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
|
|
|
 |
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.
|
|