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 - -

 
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
 
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.
 
Re: [Release]Event Winner NPC/Gift System

kwl... this is awesome... i wanna do stuff like this ^^ i just dont have the skillz
 
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
 
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
 
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...
 
Back