Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Turn on/off chicken (for use with mh and is really easy to do)
#1
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to turn off pickit/snagit? OnaPalehorse 1 241 04-26-2012, 07:55 PM
Last Post: comper
  d2nt turn off potion/merc NPC's Bervan 0 219 02-14-2012, 01:27 AM
Last Post: Bervan
  Easy question DragonSpirited 1 125 02-13-2012, 04:18 AM
Last Post: comper
  Few Easy Questions :) horneysludgeman 2 130 02-05-2012, 04:38 AM
Last Post: comper
  Can Someone Answer This Easy Question? dtmar 0 205 09-14-2011, 10:16 AM
Last Post: dtmar
  easy to answer d2nt bot question spin 1 279 08-27-2011, 12:34 PM
Last Post: Tap
  chicken? wildeman 3 237 02-04-2011, 11:24 PM
Last Post: Jammer74
  [NEW] [BOT] !! New Bot 1.13 Easy to Use !! [NEW] jown3r 0 1,516 08-02-2010, 09:08 AM
Last Post: jown3r
  d2nt 3.1 Light Immunity = chicken ohai 0 1,449 07-02-2010, 05:46 AM
Last Post: ohai
  Easy Help? FlaK- 0 156 06-11-2010, 04:31 AM
Last Post: FlaK-

Forum Jump:


Users browsing this thread: 1 Guest(s)