NX Statements

Page 1 of 3 123 LastLast
Results 1 to 15 of 41
  1. #1
    Account Upgraded | Title Enabled! xV1ral is offline
    MemberRank
    Jun 2008 Join Date
    323Posts

    NX Statements

    OPEN net.sf.odinms.client.MapleCharacter.java
    FIND
    Code:
            public void setBuddyCapacity(int capacity) {
                    buddylist.setCapacity(capacity);
                    client.getSession().write(MaplePacketCreator.updateBuddyCapacity(capacity));
            }
    ADD UNDER
    Code:
            public void gainNX(int nxchange) {  
                this.nxcash += nxchange;
    	}


    OPEN net.sf.odinms.scripting.npc.NPCConversationManager.java
    FIND
    Code:
            public int getBuddyCapacity() {
                return getPlayer().getBuddyCapacity();
            }
    ADD UNDER
    Code:
            public void gainNX(int nxcash) {
                    getPlayer().gainNX(nxcash);
            }

    Compile and you're done. Credits to me. D:
    This is for adding NX via NPCs. Use it however you want.
    I have an NPC I can paste on request for the Nexon Game Card 100/250.
    Or I can make one that sells NX for Mesos, instead of using a php. :3

    http://i34.tinypic.com/2m7u17c.jpg
    http://i33.tinypic.com/3515w5c.jpg


  2. #2
    Account Upgraded | Title Enabled! xcelinex33 is offline
    MemberRank
    Apr 2008 Join Date
    spooksLocation
    859Posts

    Re: [Release] NX Statements

    Omg that is so cool :)

  3. #3
    Apprentice xxnosxx is offline
    MemberRank
    May 2008 Join Date
    14Posts

    Re: [Release] NX Statements

    hooooo yay thx you very mach :D

  4. #4
    Account Upgraded | Title Enabled! Davidkun is offline
    MemberRank
    Apr 2008 Join Date
    254Posts

    Re: [Release] NX Statements

    Awesome. Thanks. :]

  5. #5
    Valued Member testing321123 is offline
    MemberRank
    Apr 2006 Join Date
    HellLocation
    143Posts

    Re: [Release] NX Statements

    NPC that sells NX cash sounds interesting.

    Combine with a Register in Game.
    Don't think there will be a need for a website.

  6. #6
    ¯\_(ツ)_/¯ Savage is offline
    LegendRank
    Jun 2008 Join Date
    CampingLocation
    5,476Posts

    Re: [Release] NX Statements

    Very nice :)
    Make one with mesos :)

  7. #7
    Account Upgraded | Title Enabled! xV1ral is offline
    MemberRank
    Jun 2008 Join Date
    323Posts

    Re: [Release] NX Statements

    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 ("Hello!Would you like to buy some NX? I have a few packages here for selection.\r\n#r#L0##e10,000 NX - 100,000,000 Mesos#n#l\r\n#k#L1##e25,000 NX - 250,000,000 Mesos#n#l#k");
    	}
    
    function action(mode, type, selection) {
    		cm.dispose();
    
    	switch(selection){
    		case 0: 
    			if(cm.getMeso() >= 100000000){
    			cm.sendOk("Thanks, 10,000 NX points have been added to your account.");
    			cm.gainNX(10000);
    			cm.gainMeso(-100000000);
    			cm.dispose();
    			}else{
    			cm.sendOk("You do not have 100,000,000 mesos.");
    			cm.dispose();
    			}
    		break;
    		case 1: 
    			if(cm.getMeso() >= 250000000) {
    			cm.sendOk("Thanks, 25,000 NX points have been added to your account.");
    			cm.gainNX(25000);
    			cm.gainMeso(-250000000);
    			cm.dispose();		
    			}
    			else{	
    				cm.sendOk("You do not have 250,000,000 mesos.");
    				cm.dispose();
    			};
    		break;
    			}
    		}
    There's the NPC. Enjoy!!

  8. #8
    ¯\_(ツ)_/¯ Savage is offline
    LegendRank
    Jun 2008 Join Date
    CampingLocation
    5,476Posts

    Re: [Release] NX Statements

    So do you have to mess with the server files if you use the npc script?

  9. #9
    Account Upgraded | Title Enabled! xV1ral is offline
    MemberRank
    Jun 2008 Join Date
    323Posts

    Re: [Release] NX Statements

    Quote Originally Posted by SavageSteez View Post
    So do you have to mess with the server files if you use the npc script?
    You have to add the stuff on top, or else the NPC won't work fully and it'll just eat mesarz.

  10. #10
    ¯\_(ツ)_/¯ Savage is offline
    LegendRank
    Jun 2008 Join Date
    CampingLocation
    5,476Posts

    Re: [Release] NX Statements

    Lol, okay thanks :)
    Nice release.

  11. #11
    Valued Member testing321123 is offline
    MemberRank
    Apr 2006 Join Date
    HellLocation
    143Posts

    Re: [Release] NX Statements

    Quote Originally Posted by xV1ral View Post
    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 ("Hello!Would you like to buy some NX? I have a few packages here for selection.\r\n#r#L0##e10,000 NX - 100,000,000 Mesos#n#l\r\n#k#L1##e25,000 NX - 250,000,000 Mesos#n#l#k");
    	}
    
    function action(mode, type, selection) {
    		cm.dispose();
    
    	switch(selection){
    		case 0: 
    			if(cm.getMeso() >= 100000000){
    			cm.sendOk("Thanks, 10,000 NX points have been added to your account.");
    			cm.gainNX(10000);
    			cm.gainMeso(-100000000);
    			cm.dispose();
    			}else{
    			cm.sendOk("You do not have 100,000,000 mesos.");
    			cm.dispose();
    			}
    		break;
    		case 1: 
    			if(cm.getMeso() >= 250000000) {
    			cm.sendOk("Thanks, 25,000 NX points have been added to your account.");
    			cm.gainNX(25000);
    			cm.gainMeso(-250000000);
    			cm.dispose();		
    			}
    			else{	
    				cm.sendOk("You do not have 250,000,000 mesos.");
    				cm.dispose();
    			};
    		break;
    			}
    		}
    There's the NPC. Enjoy!!
    Thanks alot dude! Now i won't have ppl complaning to me asking me to top-up cash into their accounts.

  12. #12
    Account Upgraded | Title Enabled! frantier123 is offline
    MemberRank
    May 2008 Join Date
    659Posts

    Re: [Release] NX Statements

    Quote Originally Posted by xV1ral View Post
    OPEN net.sf.odinms.client.MapleCharacter.java
    OPEN net.sf.odinms.scripting.npc.NPCConversationManager.java
    FIND
    Code:
            public int getBuddyCapacity() {
                return getPlayer().getBuddyCapacity();
            }
    ADD UNDER
    Code:
            public void gainNX(int nxcash) {
                    getPlayer().gainNX(nxcash);
            }

    Compile and you're done. Credits to me. D:
    This is for adding NX via NPCs. Use it however you want.
    I have an NPC I can paste on request for the Nexon Game Card 100/250.
    Or I can make one that sells NX for Mesos, instead of using a php. :3

    http://i34.tinypic.com/2m7u17c.jpg
    http://i33.tinypic.com/3515w5c.jpg
    Cant find
    Code:
            public int getBuddyCapacity() {
                return getPlayer().getBuddyCapacity();
            }
    help pl0x? Using Sean's Repack


    Havent found "-_-

  13. #13
    Apprentice MrWundaful is offline
    MemberRank
    Oct 2005 Join Date
    EldeonLocation
    15Posts

    Re: [Release] NX Statements

    haha darn you. you beat me to it. but i give you props. cause now i dont have to do so much work. i started on my nxCash exchanging NPC today. and finished it. I was going to wait for my friend to get on so we can test it on his server, and if it didnt work he was going to edit the server files for me to make it work. but now it seems you have done both already. good job man. im still planning on doing mine the way i want but i will use yours as a reference if i get stuck. =)

    (i get stuck alot so im probably going to use alot of yours in the long run)

  14. #14
    Account Upgraded | Title Enabled! xV1ral is offline
    MemberRank
    Jun 2008 Join Date
    323Posts

    Re: [Release] NX Statements

    Quote Originally Posted by frantier123 View Post
    Cant find
    Code:
            public int getBuddyCapacity() {
                return getPlayer().getBuddyCapacity();
            }
    help pl0x? Using Sean's Repack
    find public int getMeso or something, and add it under that.

  15. #15
    Account Upgraded | Title Enabled! frantier123 is offline
    MemberRank
    May 2008 Join Date
    659Posts

    Re: [Release] NX Statements

    Are you sure the file is located in
    net.sf.odinms.scripting.npc.NPCConversationManager .java



Page 1 of 3 123 LastLast

Advertisement