- Joined
- May 23, 2008
- Messages
- 628
- Reaction score
- 4
Small release 
Some credits to v1ral? for giving the original script
paste that into w/e blahblah.js file
If you don't have this function yet please add it in NPCConversationManager.java

Some credits to v1ral? for giving the original script
Code:
/*
NX Cash Selling NPC
By V1ral from www.ancient-ms.net
Put it as any NPC you have free.
Change prices and ammounts to your liking
*/
function start() {
cm.sendSimple ("hey dud i sells u drugs k dud? luls jk i sell and exchange nx cash!\r\n#r#L0##e10,000 NX - 1,000,000,000 Mesos#n#l\r\n#k#L1##e25,000 NX - 2,100,000,000 Mesos#n#l#k\r\n#e#L2#Cash out #b1#k #r100 point nx card#k\r\n#e#L3#Cash out #b5#k #r100 point nx cards#k\r\n#e#L4#Cash out #b10#k #r100 point nx cards#k\r\n#e#L5#Cash out #b25#k #r100 point nx cards#k\r\n#e#L6#Cash out #b1#k #g250 point nx card#k\r\n#e#L7#Cash out #b5#k #g250 point nx cards#k\r\n#e#L8#Cash out #b10#k #g250 point nx cards#k\r\n#e#L9#Cash out #b25#k #g250 point nx cards#k")
}
function action(mode, type, selection) {
cm.dispose();
switch(selection){
case 0:
if(cm.getMeso() >= 1000000000){
cm.sendOk("Thanks! 10,000 NX points has been added to your account! Enjoy! #rSome nx items may dc you when you buy them! However, you will have the item in your inven when you log back in!#k");
cm.gainMeso(-1000000000);
cm.modifyNX(10000, 0);
cm.dispose();
}else{
cm.sendOk("Go away hobo you have no money!");
cm.dispose();
}
break;
case 1:
if(cm.getMeso() >= 2100000000) {
cm.sendOk("Thanks! 25,000 NX points has been added to your account! Enjoy! #rSome nx items may dc you when you buy them! However, you will have the item in your inven when you log back in!#k");
cm.gainMeso(-2100000000);
cm.modifyNX(25000, 0);
cm.dispose();
}
else{
cm.sendOk("FUCKING SCAMMER YOU DON'T HAVE 2.1 BIL WITH YOU!");
cm.dispose();
};
break;
case 2:
if(cm.haveItem(4031530, 1)) {
cm.sendOk("Your card has been redeemed! And in return I gave you 100 nx points!")
cm.gainItem(4031530, -1);
cm.modifyNX(100, 0);
cm.dispose();
} else {
cm.sendOk("#eYou don't have #b1#k #v4031530#")
cm.dispose();
};
break;
case 3:
if(cm.haveItem(4031530, 5)) {
cm.sendOk("Your cards have been redeemed! And in return I gave you 500 nx points!")
cm.gainItem(4031530, -5);
cm.modifyNX(500, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b5#k #v4031530#\r\nPlease check your inventory and come back again when you have 5.")
cm.dispose();
};
break;
case 4:
if(cm.haveItem(4031530, 10)) {
cm.sendOk("Your cards have been redeemed! And in return I gave you 1000 nx points!")
cm.gainItem(4031530, -10);
cm.modifyNX(1000, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b10#k #v4031530#\r\nPlease check your inventory and come back again when you have 10.")
cm.dispose();
};
break;
case 5:
if(cm.haveItem(4031530, 25)) {
cm.sendOk("Your cards have been redeemed! And in return I gave you 2500 nx points!")
cm.gainItem(4031530, -25);
cm.modifyNX(2500, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b25#k #v4031530#\r\nPlease check your inventory and come back again when you have 25.")
cm.dispose();
};
break;
case 6:
if(cm.haveItem(4031531, 1)) {
cm.sendOk("Your card have been redeemed! And in return I gave you 250 nx points!")
cm.gainItem(4031531, -1);
cm.modifyNX(250, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b1#k #v4031531#")
cm.dispose();
};
break;
case 7:
if(cm.haveItem(4031531, 5)) {
cm.sendOk("Your cards have been redeemed! And in return I gave you 1250 nx points!")
cm.gainItem(4031531, -5);
cm.modifyNX(1250, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b5#k #v4031531#\r\nPlease check your inventory and come talk to me again when you have 5.")
cm.dispose();
};
break
case 8:
if(cm.haveItem(4031531, 10)) {
cm.sendOk("Your cards have been redeemed! And in return I gave you 2500 nx points!")
cm.gainItem(4031531, -10);
cm.modifyNX(2500, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b10#k #v4031531#\r\nPlease check your inventory and come talk to me again when you have 10.")
cm.dispose();
};
break
case 9:
if(cm.haveItem(4031531, 25)) {
cm.sendOk("Your cards have been redeemed! And in return I gave you 6250 nx points!")
cm.gainItem(4031531, -25);
cm.modifyNX(6250, 0);
cm.dispose();
} else {
cm.sendOk("#eYou need #b25#k #v4031531#\r\nPlease check your inventory and come talk to me again when you have 25.")
cm.dispose();
};
}
}
paste that into w/e blahblah.js file
If you don't have this function yet please add it in NPCConversationManager.java
Code:
public void modifyNX(int amount, int type) {
getPlayer().modifyCSPoints(type, amount);
if (amount > 0) {
getClient().getSession().write(MaplePacketCreator.serverNotice(5, "You have gained NX Cash (+" + amount +")."));
} else {
getClient().getSession().write(MaplePacketCreator.serverNotice(5, "You have lost NX Cash (" + (amount) +")."));
}
}
Last edited: