Author Topic: [D2NT] Full Rejuv Priority (Replace rejuvs with Fulls)  (Read 1883 times)

Offline Justin

  • I run this bitch!
  • Administrator
  • PureKaoz HeRo
  • *****
  • Posts: 780
  • Reputation 3
  • Fck Bnet
    • View Profile
    • PureKaoz.com
[D2NT] Full Rejuv Priority (Replace rejuvs with Fulls)
« on: June 03, 2010, 01:41:10 AM »
Try this if you have the bot picking up both small and full rejuvs and you want the bot to replace small rejuvs with full when it can. Works for 3.0; unknown about 3.1

Change /scripts/libs/common/Snagit.ntl function NTSI_IsLimitedItemInt(item) from:

Code:

Code: [Select]
   if(_potnum < 1)
   return true;

To:


 
Code: [Select]
   if(_potnum < 1) {
            //if you find a Full Rejuv
            if(_type == 78 && _code == "rvl" ) {
               for(i = 0 ; i < _items.length ; i++)
               {
                  //look for a small rejuv
                  if(_items[i].mode == 2 && _items[i].code == "rvs") {
                     //if found drop the small rejuv
                     SetUIState(0x1F, true);
                     if(NTT_DropItem(_items[i]))
                     NTC_PingDelay(200);
                     me.Cancel(1);
                     return false;  //return not full now after dropping a juv
                  }
               }
            }
            return true;
         }

Owner of Cutting Edge Promotions http://CEPromotion.net

PixelatedGod

  • Guest
Re: [D2NT] Full Rejuv Priority (Replace rejuvs with Fulls)
« Reply #1 on: July 25, 2010, 02:52:32 PM »
Been working great for me on 3.1. Just so everyone knows. lol