[release]NPC script for NX seller. v0.62

Newbie Spellweaver
Joined
Jul 7, 2008
Messages
34
Reaction score
1
okays sorry this is the first time i'm posting, so i'm not sure whether anyone has posted it or not because when i needed help on making NPC sells NX for v0.62 i used the searched and all was just telling me how to copy paste and it doesn't works for v0.62 so this is what i've editted.


Before Edits:
if(cm.getMeso() >= 10000000){
cm.sendOk("Thanks! 10,000 NX points has been added to your account! Enjoy!");
cm.gainMeso(-10000000);
cm.modifyNX(10000, 0);
cm.dispose();
}else{
cm.sendOk("You don't have enough mesos, please earn enough first!");
cm.dispose();
}
 
Re: NPC script for NX seller. v0.62

to make it work you need to add the modifyNX command on teh npcconversionmanager o_o
 
Re: NPC script for NX seller. v0.62

Just replace
Code:
cm.modifyNX(10000, 0);

with

Code:
cm.getChar().modifyCSPoints(1, 10000);

If you do not wish to add modifyNX in NPCConversationMangaer.java
 
Back