Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

NX Statements and ModifityNx Statment (for people who need this)

Status
Not open for further replies.
Junior Spellweaver
Joined
Jul 19, 2008
Messages
100
Reaction score
0
FIRST FOR gainNX; go to
net.sf.odinms.client.MapleCharacter;
ctrl+find

PHP:
              ret.nxcash = 0;
                ret.gifttokens = 0;
                ret.maplepoints = 0;
change this into
PHP:
             ret.nxcash = client.getPlayer().getNX();
                ret.gifttokens = client.getPlayer().getGiftTokens();
                ret.maplepoints = client.getPlayer().getMaplePoints();

Secondly ctrl+find
PHP:
      public int getNX() {
                return nxcash;
        }
Under it Add
PHP:
       public int getGiftTokens(){
            return gifttokens;
        }

        public int getMaplePoints(){
            return maplepoints;
        }

NOW FOR ModiftyNx Statment
Credits To iGoofy..

NPCConversationManager, before the last '}' bracket: add this
PHP:
        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) +")."));           
                 }
        }

SOME SS ..TAKEN FROM Marcuschai (which he really need the release)
Bangala - NX Statements and ModifityNx Statment (for people who need this) - RaGEZONE Forums

CREDITS TO :iGoofy
IDEEKAY



HOPE I HELPED I AM JUST A NOOB ><
:juggle:
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

hope every1 see my thread =(
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

Thank i very want :)

Good luck ~
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

BUMPy FOr my thread adding the NX npc of both modiftyNX npc and gainNX npc
both ^^
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

um when u replace the first three parts char creation doesnt work anymore so u shud try the other one
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

Hmm..question...
will this give u nx bugs when u use it? like last time i used iGoofy's or something.. and everytime i bought nx it duplicated >_>
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

No credits for me? O: That's my NPC.
 
Re: [RE-RELEASE]NX Statements and ModifityNx Statment (for people who need this)

Hmm ~ NX Cash selling NPC Script. Anyone mind sharing one? :3
 
Status
Not open for further replies.
Back