Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Event Winner NPC/Gift System

Newbie Spellweaver
Joined
Nov 8, 2007
Messages
33
Reaction score
0
What is this? - -
It's an NPC that I made that converts these
StormLexer - Event Winner NPC/Gift System - RaGEZONE Forums
into NX.

Why would you wanna use this? - -
Well you can make the cash shop a donation/event only thing. Where people can't pay mesos to use. Then you could, if you want to, have another shop with items, but not every single item. If you get what I mean.

Information - -
The NPC is originaly in Amoria and is Mr Sandman, but if you have half a brain you can change it. lol

The "Prices" are:
1 = 1,000NX
10 = 10,000NX

Item ID for
StormLexer - Event Winner NPC/Gift System - RaGEZONE Forums
is 3992006.

Install Instructions - -
Download the rar file.
go to \yoursource\scripts\npc
Add 9201042.js into there.

Misc - -

This is around my first NPC and this is my first release. I know it may seem "zomfgezpz" to most of you, but I feel proud of my first work. So enjoy it or not, here it is.

Download - -


Screenshot - -

 
Experienced Elementalist
Loyal Member
Joined
Apr 23, 2008
Messages
240
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

You should make 10 gift boxes worth 11k nx.
 
Experienced Elementalist
Joined
Jul 1, 2008
Messages
270
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

There were things made like this already, it wouldn't be hard to change some of the values
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release]Event Winner NPC/Gift System

It looks quite interesting
 
Newbie Spellweaver
Joined
Nov 8, 2007
Messages
33
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

You should make 10 gift boxes worth 11k nx.
Lol, yeah I guess I should have. Since like 11 items = 11,000nx.

Sounds nice :)
Thanks.

There were things made like this already, it wouldn't be hard to change some of the values
I've only seen meso > NX type npcs. =/
I'm just learning coding, this is a start isn't it?
It looks quite interesting
Thanks.
 
Junior Spellweaver
Joined
Aug 1, 2008
Messages
145
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

Mind if I snatch this?
 
Experienced Elementalist
Joined
Aug 23, 2008
Messages
226
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

Nice Release very interesting

Hands Off CptObvious !
 
The almighty chicken
Loyal Member
Joined
Apr 7, 2008
Messages
570
Reaction score
31
Re: [Release]Event Winner NPC/Gift System

i already made a way better one than this o_O
 
Banned
Banned
Joined
Aug 16, 2008
Messages
102
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

kwl... this is awesome... i wanna do stuff like this ^^ i just dont have the skillz
 
Newbie Spellweaver
Joined
Nov 8, 2007
Messages
33
Reaction score
0
Junior Spellweaver
Joined
May 20, 2008
Messages
153
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

This is just like buying NX on GMS.
 
The almighty chicken
Loyal Member
Joined
Apr 7, 2008
Messages
570
Reaction score
31
Re: [Release]Event Winner NPC/Gift System

PHP:
var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			cm.sendSimple("Hello #h #, Welcome to #rChickenMS!#k\r\nWhat do you want to do?\r\n#L1##bTrade #i4000422# for 1k NX#l\r\n#L2##bTrade #i4000423# for 2.5k NX#k#l\r\n#L3##bTrade #i4000424# for 5k NX#k#l\r\n#L4##bTrade #i4000425# for 10k NX#k#l\r\n#L5##eEww, you are ugly, i won't talk to you!#n#l");
		} else if (status == 1) {
			if (selection == 1) {
				if (cm.itemQuantity(4000422) >= 1 ) {
					cm.gainItem(4000422, -1);				
					cm.gainNX(1000);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000422#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}								
			} else if (selection == 2) {
				if (cm.itemQuantity(4000423) >= 1 ) {
					cm.gainItem(4000423, -1);				
					cm.gainNX(2500);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000423#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}
			} else if (selection == 3) {
				if (cm.itemQuantity(4000424) >= 1 ) {
					cm.gainItem(4000424, -1);				
					cm.gainNX(5000);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000424#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}
			} else if (selection == 4) {
				if (cm.itemQuantity(4000425) >= 1 ) {
					cm.gainItem(4000425, -1);				
					cm.gainNX(10000);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000425#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}
			} else {
				cm.sendOk("Oh. i see... Well then, have fun in #rChickenMS!#k\r\n\r\n#e*cries*#n");
				cm.dispose();
			}
		}
	}
}

works with 4 colors of presents
the presents that the huge snowman drop
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release]Event Winner NPC/Gift System

PHP:
var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
			cm.sendSimple("Hello #h #, Welcome to #rChickenMS!#k\r\nWhat do you want to do?\r\n#L1##bTrade #i4000422# for 1k NX#l\r\n#L2##bTrade #i4000423# for 2.5k NX#k#l\r\n#L3##bTrade #i4000424# for 5k NX#k#l\r\n#L4##bTrade #i4000425# for 10k NX#k#l\r\n#L5##eEww, you are ugly, i won't talk to you!#n#l");
		} else if (status == 1) {
			if (selection == 1) {
				if (cm.itemQuantity(4000422) >= 1 ) {
					cm.gainItem(4000422, -1);				
					cm.gainNX(1000);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000422#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}								
			} else if (selection == 2) {
				if (cm.itemQuantity(4000423) >= 1 ) {
					cm.gainItem(4000423, -1);				
					cm.gainNX(2500);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000423#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}
			} else if (selection == 3) {
				if (cm.itemQuantity(4000424) >= 1 ) {
					cm.gainItem(4000424, -1);				
					cm.gainNX(5000);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000424#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}
			} else if (selection == 4) {
				if (cm.itemQuantity(4000425) >= 1 ) {
					cm.gainItem(4000425, -1);				
					cm.gainNX(10000);
					cm.dispose();
				} else {
					cm.sendOk("You don't have enough #i4000425#\r\nDon't scam me or I will use this on you! #s5001001#");
					cm.dispose();
				}
			} else {
				cm.sendOk("Oh. i see... Well then, have fun in #rChickenMS!#k\r\n\r\n#e*cries*#n");
				cm.dispose();
			}
		}
	}
}

works with 4 colors of presents
the presents that the huge snowman drop

Offtopic: Issn't this in your FM i saw it haha
 
Master Summoner
Loyal Member
Joined
May 5, 2008
Messages
532
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

Nice release! I like it
 
Junior Spellweaver
Joined
Feb 3, 2008
Messages
183
Reaction score
2
Re: [Release]Event Winner NPC/Gift System

Haha , very good NPC for your First Release... is a good idea ^^

Continue making NPCs like this...

I will suggest that put a option to Select the color... and that every color cost different...
 
Experienced Elementalist
Joined
May 29, 2008
Messages
258
Reaction score
0
Re: [Release]Event Winner NPC/Gift System

great npc i added it in i wish i could do stuff like this
 
Back
Top