[Help] NPC Bug?

Skilled Illusionist
Joined
Sep 2, 2010
Messages
393
Reaction score
10
I have been trying to modify the NPC 'end chat' button to display status = -1; for like half an hour but no success... Can anyone tell me what i'm missing?
PHP:
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == 1) {
        status++; 
    } else { 
        cm.voteMSG();
        cm.dispose(); 
        return; 
    }
    if (status == 0) {
		cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
	} else if (status == 1) {
		cm.warp(?????????);
		cm.dispose();
	} else {
		status = -1;
	}
}
I want it to refresh the NPC window upon clicking END CHAT, like start();/status = -1 and etc... it's not working no matter how hard I try!
 
PHP:
function action(mode, type, selection) {
	if (mode == 1) {
        status++; 
    } else { 
       status = -1;
       mode = 1;
    }
    if (status == 0) {
		cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
	} else if (status == 1) {
		cm.warp(?????????);
		cm.dispose();
	}
}

or

PHP:
function action(mode, type, selection) {
        status++; 
    if (status == 0) {
		cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
	} else if (status == 1) {
		cm.warp(?????????);
		cm.dispose();
	} else {
                status = -1;
        }
}
 
Upvote 0
PHP:
function action(mode, type, selection) {
	if (mode == 1) {
        status++; 
    } else { 
       status = -1;
       mode = 1;
    }
    if (status == 0) {
		cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
	} else if (status == 1) {
		cm.warp(?????????);
		cm.dispose();
	}
}

or

PHP:
function action(mode, type, selection) {
        status++; 
    if (status == 0) {
		cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
	} else if (status == 1) {
		cm.warp(?????????);
		cm.dispose();
	} else {
                status = -1;
        }
}
They both didn't work O.O.
 
Upvote 0
Code:
function action(mode, type, selection) {
    if (mode == 1) {
        status++; 
    } else { 
       action(1,0,0);
    }
    if (status == 0) {
        cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
    } else if (status == 1) {
        cm.warp(?????????);
        cm.dispose();
    }
}

?
 
Upvote 0
Code:
function action(mode, type, selection) {
    if (mode == 1) {
        status++; 
    } else { 
       action(1,0,0);
    }
    if (status == 0) {
        cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
    } else if (status == 1) {
        cm.warp(?????????);
        cm.dispose();
    }
}

?
It still doesn't work. Even when I click 'No' it still warps, and 'End Chat' still does nothing. I'm using V117.2.
 
Last edited:
Upvote 0
add

PHP:
} else if(mode == -1) {
[COLOR=#000000][COLOR=#007700]status = -1;

below

[/COLOR][/COLOR]
PHP:
f (mode == 1) { 
        status++;

This is probably the shittiest way every done, but it works.
I tried that and it still didn't work.
PHP:
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) { 
    if (mode == 1) {
        status++; 
    } else if (mode == -1) {
		status = -1;
	}
    if (status == 0) {
		cm.sendYesNo("Greetings, earthling! I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
	} else if (status == 1) {
		cm.warp(100000000, 0);
		cm.dispose();
	}
}
 
Last edited:
Upvote 0
It seems I might be missing something because this works on V83 but not on V117.2 for some odd reason... Can anyone point me in the right direction as to why this doesn't work?
 
Upvote 0
PHP:
status = -1;

function start() {
    cm.sendNext("Greetings, earthling! ");
}


function action(mode, type, selection) {
    if (mode == 1) {
        status++;
    } else if (mode == 0) {
            cm.voteMSG();
            cm.dispose();
    } else {
        status--;
        return;
    }
    if (status == 0) {
        cm.sendYesNo("I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
    } else if (status == 1) {
        cm.warp(?????????);
        cm.dispose();
    }
}

:blink:



Code:
[COLOR=#333333]----------- 
[/COLOR]sendNext(); & sendOk(); 
----------- 
Type = 0 
If end chat    -    mode = -1 
If next/ok    -    mode = 1 



----------- 
sendYesNo(); 
----------- 
Type = 1 
If end chat    -    mode = -1 
If yes        -    mode = 1 
If no        -    mode = 0
 
Upvote 0
PHP:
status = -1;

function start() {
    cm.sendNext("Greetings, earthling! ");
}


function action(mode, type, selection) {
    if (mode == 1) {
        status++;
    } else if (mode == 0) {
            cm.voteMSG();
            cm.dispose();
    } else {
        status--;
        return;
    }
    if (status == 0) {
        cm.sendYesNo("I hear from some folks around here that your name is #b#h ##k. Anyway, #b#eWelcome to RageZone#k#n; we are one of the best servers that exist in terms of creativity and imagination!\r\n \r\nWe are trying to avoid the GMS cherade, #b#eso we will not introduce you to the beginning credits of the MapleStory Jobs.#k#n\r\n \r\n#eAre we ready to begin the RageZone Adventure?#n#k");
    } else if (status == 1) {
        cm.warp(?????????);
        cm.dispose();
    }
}

:blink:



Code:
[COLOR=#333333]----------- 
[/COLOR]sendNext(); & sendOk(); 
----------- 
Type = 0 
If end chat    -    mode = -1 
If next/ok    -    mode = 1 



----------- 
sendYesNo(); 
----------- 
Type = 1 
If end chat    -    mode = -1 
If yes        -    mode = 1 
If no        -    mode = 0
Still doesn't work. I have already also looked at that block of code you posted from a Mr.Mysterious post way back in the day. I'm assuming it has something to do with NPCScriptManager or NPCConversationManager? These methods should probably work on v83 but fail to do so on v117.2 for some reason.
 
Upvote 0
Still doesn't work. I have already also looked at that block of code you posted from a Mr.Mysterious post way back in the day. I'm assuming it has something to do with NPCScriptManager or NPCConversationManager? These methods should probably work on v83 but fail to do so on v117.2 for some reason.


Post your bat error. I find it hard to believe it doesn't work because not much has changed in regards to NPCs. Granted, I haven't touched a source since v9x but that's irrelevant.
 
Upvote 0
Back