- Joined
- Oct 15, 2008
- Messages
- 2,898
- Reaction score
- 1,129
Check in your source to see if you have the modifyNX method. For npc related help replies, please use Sharkys thread, which is stickied in the Help section.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Wouldn't Work, Atleast On All The Repacks I've Testing Except MoopleDez, You Need:function start() {
cm.sendOk("I am an NPC without a status.");
cm.dispose();
}
function start() {
cm.sendOk("I am an NPC without a status.");
}
function action(mode, type, selection) {
cm.dispose();
}
Not a lot more work to do just to type another function.Errm, 1 Question, On Most Other Repacks, This:
Wouldn't Work, Atleast On All The Repacks I've Testing Except MoopleDez, You Need:
^^Idk why, in NPCConversationalManager, It Isn't Optional In Most Of The Repacks/SOurces I've Trued
modifyNX(int amount, int type) {
Doesnt work, is there any other commands to give Nx?
if (selection == 1) {
if (cm.getJob(jobid)) {
cm.gainMeso(10);
} else if (cm.getJob(jobid)) {
cm.gainMeso(100);
}
btw, I have a question, is there anyway to use two or more conditions in a selection? For example:
PHP:if (selection == 1) { if (cm.getJob(jobid)) { cm.gainMeso(10); } else if (cm.getJob(jobid)) { cm.gainMeso(100); }
Should this exattly work? I am trying to make a "information" about my private server, it has some "status" and it would have two selections, one that just end the converstation and other warp who warps the player to his "main map", like, beginner to 1000 and others.
Thanks you.
I am not sure, you should hunt out and find anyway to get a function or search into your source. What source are you using? I can try to find out and give your the function, just tell us.
btw, I have a question, is there anyway to use two or more conditions in a selection? For example:
PHP:if (selection == 1) { if (cm.getJob(jobid)) { cm.gainMeso(10); } else if (cm.getJob(jobid)) { cm.gainMeso(100); }
Should this exattly work? I am trying to make a "information" about my private server, it has some "status" and it would have two selections, one that just end the converstation and other warp who warps the player to his "main map", like, beginner to 1000 and others.
Thanks you.
var doesGuyHaveJob = cm.getJob(jobid) ? 10 : cm.getJob(jobid) ? 100 : 0; // not sure if exactly works, but it should.
if (selection == 1) {
cm.gainMeso(doesGuyHaveJob);
} // if selection == 1
var doesGuyHaveJob = cm.getJob(100) ? 10 : cm.getJob(0) ? 100 : 0; // 0 = 100 mesos, 100 = 10 mesos.
function start() {
cm.sendYesNo("Would you like to gain mesos? It will depend on your job.");
}
function action(m,t,s) {
if (m > 0) {
cm.gainMeso(doesGuyHaveJob);
cm.sendOk("You have gained your mesos.");
}
cm.dispose();
}