Re: [Release] Power level npc
PHP Code:
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection)
{
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 0) {
cm.dispose();
return;
} else if (mode == 1) {
status++;
} else {
status--;
} if (status == 0) {
cm.sendYesNo("Hey I am the #rBeta#k #bTest#k #gNPC#k, Would you like to level up?");
} else if (status == 1) {
if (cm.getLevel() < 30) {
cm.getPlayer().levelup();
cm.dispose();
} else {
cm.sendNext("Level 30 is the last level for the power level. #bPlease use your 2nd job skills, 3rd job skills and 4th job skill");
cm.dispose();
}
}
}
}
Hey how long you took to do it?
Re: [Release] Power level npc
See, wouldnt it be better if it didn't dispose.
Like you click yes, level up. Box with the yes is still up though. xD
Re: [Release] Power level npc
Hm, this is good but you can still add more stuff to it like 50 questions or 10 questions a level instead of just clicking "yes" and BAM you leveled. It's already easy enough to level in private servers they don't need a power level npc.
Re: [Release] Power level npc
Really? No cm.levelup function? WOuldn't be hard to add the NPCConversationManager though o.o
Re: [Release] Power level npc
what a big script that could be shorten x 90
good job i guess.