10-12-2010, 05:56 AM
Lacred Wrote:I am sorry to bug you guys, I've tried searching every forum page I have recently looked at, but still can't seem to find it. Somewhere, Skidude made a script line to scan the ground for items after every kill, so the bot wouldn't clear an area first, then scan, fast picking basically. Does anyone know where this is? Again, I've searched few a few forums that I frequent on here for updates, and had no luck, but I know I've seen it! o.O Thanks for any help!
Took me about 1 second to find the answer by simply googling "fast pickit", 2nd result from the top

Here is what you need to do.
1. Locate the NTAttack.ntl script located in D2NT\scripts\libs\common
2. In the script go to Line #80 (pretty sure) You will see function NTA_ClearPosition(range, pickitem, safelevel)
3. In this function find this small block of code
Code:
while(_attackcount < (i+1)*100)
{
_mindistance = 100000;
_target = NTC_FindUnit(NTC_UNIT_MONSTER);
if(_target)
{
do
{
of _target = NTC_FindUnit(NTC_UNIT_MONSTER);
and
if(_target)
5. Between these two lines of code put the following:
Code:
NTSI_PickItems();
Code:
_mindistance = 100000;
_target = NTC_FindUnit(NTC_UNIT_MONSTER);
NTSI_PickItems();
if(_target)
{
do
8. Find the line that says: NTConfig_SnagDelay = 500;
It should be right after you tell the bot which bosses to do.
9 Change the value of 500 to 0
NTConfig_SnagDelay = 0;
If 0 is to fast then slow it down back to 500 or whichever you want, but i have mine at 1.
10. Save both files and profit!
So what does the line of code do?
Instead of only running the bot's pickit through the script that is being ran, such as NTDiablo.ntj or which ever other script you would run publicly, the bot will instead run its pickit every time it finds a new target to kill, meaning that every time something dies (usually his target) it will instantly scan the ground and pick up anything it is suppose to.
Credits
~beo900
And if you want tweek your SnagRange, I have mine set as follows.
Code:
NTConfig_SnagRange = 50; // Radius to check for dropped items. 40-50 is a good number here