03-31-2011, 08:25 AM
This script is to turn on and off the chicken feature in D2NT (sorry i dont know how to do the fancy looking code paste thing so bear with me these are only minimal changes)
in your NTMapGame.ntj file there should be a couple of lines that look like so
_LifeMax = me.hpmax;
_ManaMax = me.mpmax;
******************
added code starts here
******************
_SavedChickenHP = NTConfig_LifeChicken;
******************
added code ends here
******************
.
( some more of the files code in between here )
.
.
function NT_KeyEvents(keycode)
{
switch(keycode)
{
case 109: // show or hide enemy - keypad '-'
if(me.showenemyonautomap)
{
me.showenemyonautomap = false;
Print("Enemy on Automap : Off");
}
else
{
me.showenemyonautomap = true;
Print("Enemy on Automap : On");
}
break;
case 107: // show or hide missile - keypad '+'
if(me.showmissileonautomap)
{
me.showmissileonautomap = false;
Print("Missile on Automap : Off");
}
else
{
me.showmissileonautomap = true;
Print("Missile on Automap : On");
}
break;
case 106: // auto party on/off - keypad '*'
if(NTConfig_AutoParty)
{
NTConfig_AutoParty = false;
Print("Auto Party : Off");
}
else
{
NTConfig_AutoParty = true;
Print("Auto Party : On");
}
break;
******************
added code starts here
******************
case 33: // set chicken to zero page up
if(me.chickenhp != 0)
{
me.chickenhp = 0;
Print("Chicken: Off");
}
else
{
me.chickenhp = _SavedChickenHP;
Print("Chicken: On");
}
break;
******************
added code ends here
******************
}
This little bit will turn on and off chicken with the PageUp button. If it is on you turn it off when you press it, when it is on PageUp turns it off, vice versa. Sorry about the code
also when you make a new game chicken is automatically on!
I was looking for code yesterday to do this and I couldn't find any so I made this myself. Enjoy!
in your NTMapGame.ntj file there should be a couple of lines that look like so
_LifeMax = me.hpmax;
_ManaMax = me.mpmax;
******************
added code starts here
******************
_SavedChickenHP = NTConfig_LifeChicken;
******************
added code ends here
******************
.
( some more of the files code in between here )
.
.
function NT_KeyEvents(keycode)
{
switch(keycode)
{
case 109: // show or hide enemy - keypad '-'
if(me.showenemyonautomap)
{
me.showenemyonautomap = false;
Print("Enemy on Automap : Off");
}
else
{
me.showenemyonautomap = true;
Print("Enemy on Automap : On");
}
break;
case 107: // show or hide missile - keypad '+'
if(me.showmissileonautomap)
{
me.showmissileonautomap = false;
Print("Missile on Automap : Off");
}
else
{
me.showmissileonautomap = true;
Print("Missile on Automap : On");
}
break;
case 106: // auto party on/off - keypad '*'
if(NTConfig_AutoParty)
{
NTConfig_AutoParty = false;
Print("Auto Party : Off");
}
else
{
NTConfig_AutoParty = true;
Print("Auto Party : On");
}
break;
******************
added code starts here
******************
case 33: // set chicken to zero page up
if(me.chickenhp != 0)
{
me.chickenhp = 0;
Print("Chicken: Off");
}
else
{
me.chickenhp = _SavedChickenHP;
Print("Chicken: On");
}
break;
******************
added code ends here
******************
}
This little bit will turn on and off chicken with the PageUp button. If it is on you turn it off when you press it, when it is on PageUp turns it off, vice versa. Sorry about the code
also when you make a new game chicken is automatically on!
I was looking for code yesterday to do this and I couldn't find any so I made this myself. Enjoy!