I believe the @npc is a command that places an npc on a map permanently. Maybe it d/cs you because the command is screwed up.
Anyways, does it D/C you with every npc you place, or just this one? If just this one, post the code of the NPC's script, it might be bugged, and post your @npc command.
Also, to change it's name and what it will say (In the quote area), you have to edit the WZ files and then publish them to all of people who are playing the server, so it's kind of annoying and useless.
For the teleport script, here you go. Change "NLC_ID" and "KERNING_CITY_ID" to their matching ID's.. I just forgot.
Might not work, add a "}" at the end if it doesn't.
Code:
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1) {
status++;
}else{
status--;
}
if (status == 0) {
cm.sendSimple("Hello, where do you like to teleport, #b#h? #k\r\n#bNew Leaf City (NLC).\r\nKerning City.#k");
} else if (status == 1) {
if (selection == 0)
cm.warp(NLC_ID);
cm.dispose();
} else {
cm.warp(KERNING_CITY_ID);
cm.dispose();
}
}
}