purpose: to make a npc say ur online or not on ur server
skill:1/10
source tested My own server and my friends server
edited files:NPCHandler.java
first open NPCHandler.java and search
Code:
moo
and after that last
Code:
}
add
Code:
else if (npcs[i].npcType == $$$$) {
if (misc.random2(10) <= 3) // this is the time delay
{
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
if (PlayerHandler.isPlayerOn("YOURNAME")) {
npcs[i].textUpdate = "owner&coder YOURNAME is ONLINE";
} else {
npcs[i].textUpdate = "owner&coder YOURNAME is OFFLINE";
}
}
}
}
K TIME TO EXPLAIN
replace $$$$ to the npc id that you want to say if your online or not
replace YOURNAME to your username on your server
save&compile
also were it says owner&coder u can change that to anything like owner, mod waffle,coder etc.