|
You last visited: Today at 10:14
Advertisement
Has some1 a working store function?
Discussion on Has some1 a working store function? within the GW Bots forum part of the Guild Wars category.
03/19/2022, 10:25
|
#1
|
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
|
Has some1 a working store function?
Jo, im coding a new ministerial commendation bot. has some1 a working storage function to store all perfekt items / gold?
|
|
|
03/19/2022, 12:55
|
#2
|
elite*gold: 0
Join Date: Feb 2022
Posts: 7
Received Thanks: 3
|
Code:
Func GoldIs($bagIndex, $numOfSlots)
For $i = 1 To $numOfSlots
ConsoleWrite("Checking items: " & $bagIndex & ", " & $i & [MENTION=3576271]CRLF[/MENTION])
$aItem = GetItemBySlot($bagIndex, $i)
If DllStructGetData($aItem, 'ID') <> 0 And GetRarity($aItem) = $RARITY_Gold Then
Do
For $bag = 8 To 11 ; 6 To 16 are all storage bags
$slot = FindEmptySlot($bag)
If $slot <> 0 Then
$FULL = False
$nSlot = $slot
ExitLoop 2; finding first empty $slot in $bag and jump out
Else
$FULL = True; no empty slots :(
EndIf
Sleep(400)
Next
Until $FULL = True
If $FULL = False Then
MoveItem($aItem, $bag, $nSlot)
ConsoleWrite("Gold item moved ...."& [MENTION=3576271]CRLF[/MENTION])
PingSleep(1000)
EndIf
EndIf
Next
EndFunc ;==>GoldIs
Func FindEmptySlot($bagIndex) ;Parameter = bag index to start searching from. Returns integer with item slot. This function also searches the storage. If any of the returns = 0, then no empty slots were found
Local $lItemInfo, $aSlot
For $aSlot = 1 To DllStructGetData(GetBag($bagIndex), 'Slots')
Sleep(40)
ConsoleWrite("Checking: " & $bagIndex & ", " & $aSlot & [MENTION=3576271]CRLF[/MENTION])
$lItemInfo = GetItemBySlot($bagIndex, $aSlot)
If DllStructGetData($lItemInfo, 'ID') = 0 Then
ConsoleWrite($bagIndex & ", " & $aSlot & " <-Empty! " & [MENTION=3576271]CRLF[/MENTION])
$lReturn = $aSlot
ExitLoop
Else
$lReturn = 0
EndIf
Next
Return $lReturn
EndFunc ;==>FindEmptySlot
bitte, copy pasta aus einem script
|
|
|
03/21/2022, 22:27
|
#3
|
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
|
I have this 2 functions.. but the bot always want the 6, 1 slot in chest.. but this slot isnt empty so.. where is my mistake?...
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
Code:
Func FindEmptyStorageSlot(ByRef $StorageNumber, ByRef $SlotNumber)
For $StorageNumber = 6 To 16
Local $lBag = GetBag($StorageNumber)
If $lBag == 0 Then
Return False
EndIf
For $SlotNumber = 1 To 20
Local $lItem = GetItemBySlot($StorageNumber, $SlotNumber)
If DllStructGetData($lItem, "ID") = 0 Then
Return True
EndIf
Next
Next
Return False
EndFunc ; <== Find empty storage slot
|
|
|
03/24/2022, 23:24
|
#4
|
elite*gold: 0
Join Date: Jun 2009
Posts: 94
Received Thanks: 66
|
check what id you get on slot 1,1. if it gets nothing you probaply need new pointers or headers
|
|
|
03/26/2022, 08:54
|
#5
|
elite*gold: 0
Join Date: Feb 2015
Posts: 400
Received Thanks: 46
|
Ye, i fixed it
|
|
|
 |
Similar Threads
|
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann.
Ich verzweifle an Folgendem Vorhaben:
#include <Windows.h>
#include <string>
#include <iostream>
using namespace std;
|
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again.
Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all.
The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run.
#AutoIt3Wrapper_UseX64=n...
|
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp:
this is a new hack by TSYS
Status : UNDETECTED
Functions (VIDEO) :
YouTube - WarRock - Bikini event VIP hack
|
some1 has to make it.
02/07/2010 - SRO Private Server - 11 Replies
can some1 make a guide for sibibot(sjsro) specificly in windows 7?
i cant make it work with process explorer nor applocale.
|
need help some1 who has msn or yahoo
01/17/2009 - EO PServer Hosting - 2 Replies
i need some1 to help me with some finishing touches on my server plz reply fast if u choose to play my server i will giv u PM ^^
|
All times are GMT +1. The time now is 10:14.
|
|