Author Topic: ''act 4 greaterpots normal'' addon for rushbot!!  (Read 668 times)

Offline killziky

  • Newbie
  • *
  • Join Date: Jun 2010
  • Posts: 46
  • Reputation 0
    • View Profile
''act 4 greaterpots normal'' addon for rushbot!!
« on: August 12, 2010, 10:04:13 AM »
yeas.. took more effort than first expected but damn I am VERY pleased with my results!!

what i made will if told to buy greaterpots in act4 when i normal difficulty! made on request by Apeboyz it will still be able to do everything it will just go act4 for pots, now i figured I'd make some gz edits to it so i added an on/off in charconfig and i made it work only on normal so when it goes nightmare/hell it will be normal! this took some changes in several files so tut here..

open your NTTownManager.ntl and paste this

Code: [Select]
if(NTConfig_BuyAct4Pots && me.diff == 0)
{
if(me.areaid != 103)
{
NTTM_TownMove("waypoint");
NTM_TakeWaypoint(103);
}
if(_NTTMGR_BuyPots)
NTTMGR_VisitJamella();
}
else
{
under this line
Code: [Select]
NTC_PutSkill(115, NTC_HAND_RIGHT);
then just add another
Code: [Select]
} at the end of your NTTownmanager.ntl

Now open your NTTown.ntl and search function NTT_GetPotionAtNPCInt

replace that whole function with this
Code: [Select]
function NTT_GetPotionAtNPCInt(type, npc)
{

if(NTConfig_BuyAct4Pots && me.diff == 0)
{
var _items;

if(!type)
return null;

if(type == "hp" || type == "mp")
        {
_items = npc.GetItems();
       
if(_items)
{
var n;

for(var i = 0 ; i < _items.length ; i++)
{
for(n = 1 ; n > 0 ; n--)
{
if(_items[i].code == (type+4))
return _items[i];
}
}
}
}


else
{
if(type == "rv")
return null;

_items = npc.GetItems(type);

if(_items && _items.length > 0)
return _items[0];
}

return null;
}
else
{
var _items;

if(!type)
return null;

if(type == "hp" || type == "mp")
        {
_items = npc.GetItems();
       
if(_items)
{
var n;

for(var i = 0 ; i < _items.length ; i++)
{
for(n = 5 ; n > 0 ; n--)
{
if(_items[i].code == (type+n))
return _items[i];
}
}
}
}


else
{
if(type == "rv")
return null;

_items = npc.GetItems(type);

if(_items && _items.length > 0)
return _items[0];
}

return null;
}
}

add this in your NTConfig.ntj anywhere you want :D
Code: [Select]
var NTConfig_BuyAct4Pots;
and finally add this in your charconfig anywhere you want :D
Code: [Select]
NTConfig_BuyAct4Pots = true; // this will buy pots from act4 jamella in normal difficulty 
Feel free to point out if i made any mistakes or if there's any bugs...

Made By Killziky with help on ''if'' and ''else'' by TheFreak!
« Last Edit: August 16, 2010, 03:15:28 AM by killziky »

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

''act 4 greaterpots normal'' addon for rushbot!!
« on: August 12, 2010, 10:04:13 AM »

Offline Apeboyz

  • Newbie
  • *
  • Join Date: Aug 2010
  • Posts: 25
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #1 on: August 13, 2010, 10:20:51 AM »
Thank you Very Much! Great Change.

Just few corrections to your Guide mate.

1.

Code: [Select]
if(NTConfig_BuyAct4Pots && me.diff == 0)
{
if(me.areaid != 103)
{
NTTM_TownMove("waypoint");
NTM_TakeWaypoint(103);
}
if(_NTTMGR_BuyPots)
NTTMGR_VisitJamella();
}
else
{
}

U forgot a } at the end to close the code.

2. Its NTTownManager.ntl not NTTownManager.ntj

3. The Line
Code: [Select]
NTC_PutSkill(115, NTC_HAND_RIGHT);function NTT_GetPotionAtNPCInt

Its in the NTTown.ntl not in the NTTownMove.ntj

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #1 on: August 13, 2010, 10:20:51 AM »

Offline TheFreak

  • Just like an admin ;)
  • AFK Admins
  • PK Pro
  • *****
  • Join Date: May 2010
  • Posts: 372
  • Reputation 1
  • I rap and write javascript mutha fucka!
    • View Profile
Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #2 on: August 13, 2010, 12:35:17 PM »
@ 1. I think its supposed to not close, because tha else, is already there, which is tha normal....

If yu were to close that how yu did,

Code: [Select]
else
{
}
then it would give an error...


My New function:

function AlbertEinstein()
{
If (A = success in life)
A = x + y + z;
x = Work;
y = Play;
z = Keeping your mouth shut;
}

"Right after the Sam-Frodo suckfest, right before the credits roll, Sam fuckin' flat-out brick's in Frodo's mouth"

Offline killziky

  • Newbie
  • *
  • Join Date: Jun 2010
  • Posts: 46
  • Reputation 0
    • View Profile
Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #3 on: August 13, 2010, 08:12:43 PM »
@ 1. I think its supposed to not close, because tha else, is already there, which is tha normal....

If yu were to close that how yu did,

Code: [Select]
else
{
}
then it would give an error...

You're right there.. it has an added to the end so if(else) it takes the normal script :)

and apeboyz Ty for pointing out the .ntl files ^^ i always get them wrong :D

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #3 on: August 13, 2010, 08:12:43 PM »

Offline killziky

  • Newbie
  • *
  • Join Date: Jun 2010
  • Posts: 46
  • Reputation 0
    • View Profile
Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #4 on: August 13, 2010, 08:15:11 PM »
@ 1. I think its supposed to not close, because tha else, is already there, which is tha normal....

If yu were to close that how yu did,

Code: [Select]
else
{
}
then it would give an error...

You're right there.. it has an added to the end so if(else) it takes the normal script :)

and apeboyz Ty for pointing out the .ntl files ^^ i always get them wrong :D

/EDIT OMG I'M SO SRY!! apeboyz was half right! i forgot to say you guys need to add another
Code: [Select]
}at the end of the NTTownManager.ntl !! Damn forgot it when i made the tut!

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #4 on: August 13, 2010, 08:15:11 PM »

Offline Apeboyz

  • Newbie
  • *
  • Join Date: Aug 2010
  • Posts: 25
  • Reputation 0
  • I <3 PureKaoz.com
    • View Profile
Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #5 on: August 20, 2010, 06:07:05 AM »
why half right? ^^

i just said to add another } at the end :D

but i quoted the full code

/e: btw i was in mailand for a few days. iam back now. just if u wondered why i write here now ^^

PureKaoz.com - D2NT, Diablo 3 & Starcaft 2 Hacks

Re: ''act 4 greaterpots normal'' addon for rushbot!!
« Reply #5 on: August 20, 2010, 06:07:05 AM »