Blizzard Sector
bot picks 1 chest or rack per second... - Printable Version

+- Blizzard Sector (https://www.blizzsector.co)
+-- Forum: Diablo II (https://www.blizzsector.co/forum-4.html)
+--- Forum: Hacks Bots and Editors (https://www.blizzsector.co/forum-16.html)
+--- Thread: bot picks 1 chest or rack per second... (/thread-48037.html)



bot picks 1 chest or rack per second... - Tacos - 06-20-2012

Hey again, i'm having concerns about the bot waiting approximately 1 sec or close to it after it picks a chest or rack b4 goin to the nxt object, but when i play i pick like 3-4 barrels a second and i want the bot to do that. i've looked at the code extensively and the only function i'm suspicious of is the GetNext() function but i can't find it anywhere :/. Here's an example:

_chest = NTC_FindUnit(NTC_UNIT_OBJECT, GetLocaleString(3247));
if(_chest)
{[INDENT]do[/INDENT]
[INDENT]{[/INDENT]
[INDENT=2]if(NTC_OpenChest(_chest))
[/INDENT]
[INDENT=2]NTSI_PickItems();
[/INDENT]
[INDENT=2]}while(_chest.GetNext());
[/INDENT]
[INDENT]}[/INDENT]

i'm still using D2NT3.3 Tongue and i made a few modifications to suit my needs but this is probably the last modification b4 i can finally leave it alone and have a more...realistic behavior closely resembling that of a human player Big Grin

i thank any1 in advance if u can help me find this GetNext() function if it even exists or help me decrease this delay time