RaGEZONE sponsored advertisment:
| | The free 3D side scrolling MMORPG. | |
07-12-2008
|
#1 (permalink)
| | Yeeeeee
Rank: Member + Join Date: Jun 2008
Posts: 331
Thanked 0 Times in 0 Posts
| [Release] 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 |
| |
RaGEZONE sponsored advertisment:
07-12-2008
|
#2 (permalink)
| | Confused. >:
Rank: Member + Join Date: Apr 2008 Location: n_n
Posts: 911
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Omg that is so cool :)
|
| | 
Endorsement
07-12-2008
|
#3 (permalink)
| | Newbie
Rank: Hobbit
Join Date: May 2008
Posts: 16
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
hooooo yay thx you very mach :D
|
| | 
Endorsement
07-12-2008
|
#4 (permalink)
| | Indeed.
Rank: Member + Join Date: Apr 2008
Posts: 265
Thanked 2 Times in 1 Post
| Re: [Release] NX Statements
Awesome. Thanks. :]
|
| |
07-12-2008
|
#5 (permalink)
| | Monster Member
Rank: Member
Join Date: Apr 2006 Location: Hell
Posts: 180
Thanked 0 Times in 0 Posts
| 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.
|
| |
07-12-2008
|
#6 (permalink)
| | Cpt. James
Rank: Subscriber Join Date: Jun 2008 Location: Wasteland
Posts: 3,402
Thanked 76 Times in 32 Posts
| Re: [Release] NX Statements
Very nice :)
Make one with mesos :)
__________________
|
Originally Posted by Batz | |
Put them together bitches and you got SavageSteez, aka Batz' steel hard cock!
| |
| |
07-12-2008
|
#7 (permalink)
| | Yeeeeee
Rank: Member + Join Date: Jun 2008
Posts: 331
Thanked 0 Times in 0 Posts
| 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 - ****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 ****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!!
|
| |
07-12-2008
|
#8 (permalink)
| | Cpt. James
Rank: Subscriber Join Date: Jun 2008 Location: Wasteland
Posts: 3,402
Thanked 76 Times in 32 Posts
| Re: [Release] NX Statements
So do you have to mess with the server files if you use the npc script?
__________________
|
Originally Posted by Batz | |
Put them together bitches and you got SavageSteez, aka Batz' steel hard cock!
| |
| |
07-12-2008
|
#9 (permalink)
| | Yeeeeee
Rank: Member + Join Date: Jun 2008
Posts: 331
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
|
Originally Posted by SavageSteez | |
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.
|
| |
07-12-2008
|
#10 (permalink)
| | Cpt. James
Rank: Subscriber Join Date: Jun 2008 Location: Wasteland
Posts: 3,402
Thanked 76 Times in 32 Posts
| Re: [Release] NX Statements
Lol, okay thanks :)
Nice release.
__________________
|
Originally Posted by Batz | |
Put them together bitches and you got SavageSteez, aka Batz' steel hard cock!
| |
| |
07-12-2008
|
#11 (permalink)
| | Monster Member
Rank: Member
Join Date: Apr 2006 Location: Hell
Posts: 180
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
|
Originally Posted by xV1ral | 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 - ****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 ****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.
|
| |
07-12-2008
|
#12 (permalink)
| | XtinctMS Coming Soon...
Rank: Member + Join Date: May 2008
Posts: 662
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
|
Originally Posted by xV1ral |
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 "-_-
|
| |
07-12-2008
|
#13 (permalink)
| | Newbie
Rank: Hobbit
Join Date: Oct 2005 Location: LakeH00d
Posts: 3
Thanked 0 Times in 0 Posts
| 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)
|
| |
07-12-2008
|
#14 (permalink)
| | Yeeeeee
Rank: Member + Join Date: Jun 2008
Posts: 331
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
|
Originally Posted by frantier123 |
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.
|
| |
07-12-2008
|
#15 (permalink)
| | XtinctMS Coming Soon...
Rank: Member + Join Date: May 2008
Posts: 662
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Are you sure the file is located in
| | Quote: | |
net.sf.odinms.scripting.npc.NPCConversationManager .java
| |
| |
07-12-2008
|
#16 (permalink)
| | Yeeeeee
Rank: Member + Join Date: Jun 2008
Posts: 331
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
|
Originally Posted by frantier123 | |
Are you sure the file is located in
| It is for me.
It's probably in net.sf.odinms.scripting for others.
|
| |
07-12-2008
|
#17 (permalink)
| | Indeed.
Rank: Member + Join Date: Apr 2008
Posts: 265
Thanked 2 Times in 1 Post
| Re: [Release] NX Statements
It doesn't matter, add it to the bottom before the very last "}"
|
| |
07-12-2008
|
#18 (permalink)
| | Owner of RaveStory
Rank: Member + Join Date: Jun 2008
Posts: 353
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
xV1ral, can u release the coupon script also? like exchange the coupon for the cash
__________________ 
Click on my Siggy! Something will amazed you! |
| |
07-12-2008
|
#19 (permalink)
| | I Don't Own A Server
Rank: Member + Join Date: May 2008 Location: Singapore
Posts: 469
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
just asking, is there a way to edit what's being sold in the cash shop?
|
| |
07-12-2008
|
#20 (permalink)
| | Member
Rank: Hobbit
Join Date: Apr 2008
Posts: 43
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Hi,
Nice release! I was wondering you could add a 'getNX'
Would it be like this ? (in MapleCharacter.java) Code: public int getNX() {
return nxchange;
}
And in NPCConversationManager.java Code: public int getNX() {
return getPlayer().getNX();
}
THIS CAN BE INCORRECT SO DO NOT USE THIS YET! SO DON`T COME WHINING IF THIS FUCKED UP YOUR SERVER LEECHERS!
xV1ral, is this correct? Please help me if not.
Thanks for the release anyway,
|
| |
07-12-2008
|
#21 (permalink)
| | Member
Rank: Hobbit
Join Date: Jun 2008
Posts: 48
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Not working for me :x
__________________ BreakStory try it out now! |
| |
07-12-2008
|
#22 (permalink)
| | ♣ Hectic ♣
Rank: Member + Join Date: Apr 2008
Posts: 1,205
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Thanks. Great release.
|
| |
07-12-2008
|
#23 (permalink)
| | XtinctMS Coming Soon...
Rank: Member + Join Date: May 2008
Posts: 662
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Work for me ^^ thx
|
| |
07-12-2008
|
#24 (permalink)
| | Help Feed Raiden!
Rank: Member + Join Date: May 2008 Location: Uhh... Somewhere?
Posts: 882
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
Hmm... I'm confused.
So, you add the stuff on the 1st post.
Then, use that Code? (And turn it into an SQL File, right?)
|
| |
07-12-2008
|
#25 (permalink)
| | Help Feed Raiden!
Rank: Member + Join Date: May 2008 Location: Uhh... Somewhere?
Posts: 882
Thanked 0 Times in 0 Posts
| Re: [Release] NX Statements
(Sorry for Double-Post)
And, then what?
|
| | |