Npc runs. All cm.... arguments are correct for my npcconversationmanager.java, yet i can't get it to say anything except for the lase else statement. I removed the text for personal reasons. It seems not to be checking the maps correctly or something like that? I have no clue. I'm surprised i got it to work at all. Any help is welcome :pPHP Code:var spawnmap = 926110700;
var tentmap = 260010600;
var tentitem1 = 4220147;
var camp1 = 401000000;
var camp1item = 4220147;
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.getMap() == spawnmap) {
cm.sendSimple("");
} else if (status == 1 && cm.getMap() == tentmap && cm.getPlayer().haveItem(tentitem1, 1)) {
cm.sendOk("");
} else if (status == 1 && cm.getMap() == camp1 && cm.getPlayer.haveItem(camp1item, 1)) { // This is for the player who started the quest and just got warped, or stumbled upon him in the camp
cm.sendOk("");
cm.dispose
} else if (status == 1 && cm.getMap() == tentmap2 && cm.getPlayer.haveItem(tentitem2, 1)) { // This is for the player who started the quest and just got warped, or stumbled upon him in the camp
cm.sendOk("");
cm.dispose
} else if (status == 1 && cm.getMap() == spawnmap) {
cm.PlayerToNpc("");
} else if (status == 2 && cm.getMap() == spawnmap) {
cm.sendNextPrev("");
} else if (status == 3 && cm.getMap() == spawnmap) {
cm.PlayerToNpc("");
} else if (status == 4 && cm.getMap() == spawnmap) {
cm.sendNextPrev("");
} else if (status == 5 && cm.getMap() == spawnmap) {
cm.PlayerToNpc("");
} else if (status == 6 && cm.getMap() == spawnmap) {
cm.sendNextPrev("");
} else if (status == 4 && cm.getMap() == spawnmap) {
cm.sendNextPrev("");
} else if (status == 5 && cm.getMap() == spawnmap) {
cm.PlayerToNpc("");
} else if (status == 6 && cm.getMap() == spawnmap) {
cm.PlayerToNpc("(Pick your response:)#b\r\n\r\n #L0#O#l\r\n #L1#W#l\r\n #L2#Y#l\r\n #L3#W#l\r\n ");
} else if (status == 7 && cm.getMap() == spawnmap) {
if (selection == 0){
cm.sendNextPrev("");
cm.warp(camp1, 1);
cm.Video();
cm.gainItem(4220147, 1);
cm.dispose();
} else if (selection == 1){
cm.sendNextPrev("");
cm.warp(camp1, 1);
cm.KazVideo();
cm.gainItem(4220147, 1);
cm.dispose();
} else if (selection == 2){
cm.warp(270030411, 0);//time temple
cm.sendOk("");
cm.spawnmonster(8610014);
cm.dispose();
} else if (selection == 3){
cm.sendOk("");
cm.warp(camp1, 1);
cm.KazVideo();
cm.gainItem(4220147, 1);
cm.dispose();
}
} else if (status == 8 && cm.getMap() == spawnmap) {
cm.sendOk("");
cm.warp(camp1, 1);
cm.KazVideo();
cm.gainItem(4220147, 1);
cm.dispose();
} else if (cm.getMap() == spawnmap) {
cm.sendOk("");
cm.dispose();
} else {
cm.sendOk("");
cm.dispose();
}
}



Reply With Quote



