You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack (1) Thread Tools
Old 07-12-2008   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Yeeeeee
 
Rank: Member +
Join Date: Jun 2008
Posts: 331
Thanked 0 Times in 0 Posts

[Release] NX Statements

Your Ad Here
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
xV1ral is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 07-12-2008   #2 (permalink)
Confused. >:
 
xcelinex33's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: n_n
Posts: 911
Blog Entries: 2
Thanked 0 Times in 0 Posts

Re: [Release] NX Statements

Omg that is so cool :)
__________________
xcelinex33 is offline   Reply With Quote

Endorsement
Old 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
xxnosxx is offline   Reply With Quote

Endorsement

Old 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. :]
Davidkun is offline   Reply With Quote
Old 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.
testing321123 is offline   Reply With Quote
Old 07-12-2008   #6 (permalink)
Cpt. James
 
Savage's Avatar
 
Rank: Subscriber
Join Date: Jun 2008
Location: Wasteland
Posts: 3,402
Blog Entries: 12
Thanked 76 Times in 32 Posts

Re: [Release] NX Statements

Very nice :)
Make one with mesos :)
__________________




Originally Posted by Batz View Post
Put them together bitches and you got SavageSteez, aka Batz' steel hard cock!
Savage is offline   Reply With Quote
Old 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!!
xV1ral is offline   Reply With Quote
Old 07-12-2008   #8 (permalink)
Cpt. James
 
Savage's Avatar
 
Rank: Subscriber
Join Date: Jun 2008
Location: Wasteland
Posts: 3,402
Blog Entries: 12
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 View Post
Put them together bitches and you got SavageSteez, aka Batz' steel hard cock!
Savage is offline   Reply With Quote
Old 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 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.
xV1ral is offline   Reply With Quote
Old 07-12-2008   #10 (permalink)
Cpt. James
 
Savage's Avatar
 
Rank: Subscriber
Join Date: Jun 2008
Location: Wasteland
Posts: 3,402
Blog Entries: 12
Thanked 76 Times in 32 Posts

Re: [Release] NX Statements

Lol, okay thanks :)
Nice release.
__________________




Originally Posted by Batz View Post
Put them together bitches and you got SavageSteez, aka Batz' steel hard cock!
Savage is offline   Reply With Quote
Old 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 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 - ****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.
testing321123 is offline   Reply With Quote
Old 07-12-2008   #12 (permalink)
XtinctMS Coming Soon...
 
frantier123's Avatar
 
Rank: Member +
Join Date: May 2008
Posts: 662
Thanked 0 Times in 0 Posts

Re: [Release] NX Statements

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 "-_-
frantier123 is offline   Reply With Quote
Old 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)
MrWundaful is offline   Reply With Quote
Old 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 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.
xV1ral is offline   Reply With Quote
Old 07-12-2008   #15 (permalink)
XtinctMS Coming Soon...
 
frantier123's Avatar
 
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
frantier123 is offline   Reply With Quote
Old 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 View Post
Are you sure the file is located in
It is for me.
It's probably in net.sf.odinms.scripting for others.
xV1ral is offline   Reply With Quote
Old 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 "}"
Davidkun is offline   Reply With Quote
Old 07-12-2008   #18 (permalink)
Owner of RaveStory
 
RaveStory's Avatar
 
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!
RaveStory is offline   Reply With Quote
Old 07-12-2008   #19 (permalink)
I Don't Own A Server
 
thegamer1907's Avatar
 
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?
thegamer1907 is offline   Reply With Quote
Old 07-12-2008   #20 (permalink)
Member
 
Jorniman's Avatar
 
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,
Jorniman is online now   Reply With Quote
Old 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!
avirtaA is offline   Reply With Quote
Old 07-12-2008   #22 (permalink)
♣ Hectic ♣
 
Regurgitate's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 1,205
Thanked 0 Times in 0 Posts

Re: [Release] NX Statements

Thanks. Great release.
__________________
Coolies, I'm back :)
Regurgitate is offline   Reply With Quote
Old 07-12-2008   #23 (permalink)
XtinctMS Coming Soon...
 
frantier123's Avatar
 
Rank: Member +
Join Date: May 2008
Posts: 662
Thanked 0 Times in 0 Posts

Re: [Release] NX Statements

Work for me ^^ thx
frantier123 is offline   Reply With Quote
Old 07-12-2008   #24 (permalink)
Help Feed Raiden!
 
Falzer's Avatar
 
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?)
__________________
Cl1ck h3r3 t0 halp th1s P0k3m0n g3t sum fud! - Be a kind and generous person and click that link to help Raiden get some food! Comeon! Please click the link! It will help feed Raiden! Please? Pretty Please? Pweeeeeeze?
Falzer is offline   Reply With Quote
Old 07-12-2008   #25 (permalink)
Help Feed Raiden!
 
Falzer's Avatar
 
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?
__________________
Cl1ck h3r3 t0 halp th1s P0k3m0n g3t sum fud! - Be a kind and generous person and click that link to help Raiden get some food! Comeon! Please click the link! It will help feed Raiden! Please? Pretty Please? Pweeeeeeze?
Falzer is offline   Reply With Quote
 

Bookmarks

Thread Tools


LinkBacks (?)
LinkBack to this Thread: http://forum.ragezone.com/f427/release-nx-statements-430050/
Posted By For Type Date
[OdinMS]Releases,Guides,Repacks,Revs,orials,HTML-PHP,Tools,Handbook - Maplestory Releases - ServerFiles.org This thread Refback 03-29-2009 05:48 PM



Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274