- Joined
- Mar 1, 2010

- Messages
- 79

- Reaction score
- 2

/*

NX Cash Selling NPC

By Ricky, LookItzRicky at ragezone.

Put it as any NPC you have free.

Change prices and amounts to your liking

*/

function start() {

cm.sendSimple ("Hello, I am the NX Seller. How much would you like to buy?\r\n#r#L0##e10,000 NX for 10,000,000 Mesos#n#l\r\n#k#L1##e30,000 NX for 20,000,000 Mesos#n#l#k");

}

function action(mode, type, selection) {

cm.dispose();

switch(selection){

case 0:

if(cm.getMeso() >= 10000000){

cm.sendOk("Thanks, 10,000 NX points have been added to your account.");

cm.gainNX(10000);

cm.gainMeso(-10000000);

cm.dispose();

}else{

cm.sendOk("You do not have 10,000,000 mesos.");

cm.dispose();

}

break;

case 1:

if(cm.getMeso() >= 20000000){

cm.sendOk("Thanks, 30,000 NX points have been added to your account.");

cm.gainNX(30000);

cm.gainMeso(-20000000);

cm.dispose();

}else{

cm.sendOk("You do not have 20,000,000 mesos.");

cm.dispose();

}

break;

}

}

However, when I buy the NX, it takes the correct amount of mesos from me but gives me the wrong amount. What it gives is 5,000 Maple Points and 15,000 Maple Points. Where about can I change this?