06-20-2012, 04:59 PM
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
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 
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
_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


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