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!

[Release] Chaos Scroll NPC

Junior Spellweaver
Joined
Jul 31, 2008
Messages
113
Reaction score
0
WELL, this is my FIRST release ever. I was pretty bored in this one server, so I was like...where's the events if your bored? There's no GMs on, plus it's not like GMs do events anyways. I just decided to make a NPC that...well, practically if you're bored in a server, get something that'll you like. Hope you like it? LOL



PHP:
/*
Made outta boredom by Shadow465 of RaGEZONE, aka itsRJ
Not like anyone gives credits anyways. :p
Crystal NPC Code - 1061010
*/
importPackage(net.sf.odinms.client);
var status = 0;



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


function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (status >= 2 && mode == 0) {
			cm.sendOk("Yo #h #. ");
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
				cm.sendNext("                                    
#e#rThe scroll of risk#n#k\r\n#dThe crystal glows with an ominous feel to it. You can feel your heartbeat even louder than before. What is this odd feeling?\r\n\r\n\You feel as if it's in need for something. Odd as it seems, you seem to believe if you place about 35 pieces of  #v4000298# at the base, it'll do something extraordinary...");
 }
		else if (status == 1) {
			if (cm.haveItem(4000298, 35)) 
			{
			cm.sendOk("#bThe crystal glows brighter. You look at it in awe.");
			}
			else if (!cm.haveItem(4000298, 35)) {
			cm.sendOk("#rThe crystal shoots off a little spark at you.");
			cm.dispose();
			}	
		}
		else if (status == 2) {
			cm.gainItem(4000298, -35);
			cm.gainItem(2049100, 10);
			cm.dispose();
}
}
}

Shadow465 - [Release] Chaos Scroll NPC - RaGEZONE Forums


Comments and Criticisms welcome. Flames expected.:)
 
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2008
Messages
26
Reaction score
1
Re: Chaos Scroll NPC

Not too bad, so simple but it like it xD. Ill probably add to my server this weekend. Nice job on your first release :thumbup:
 
Newbie Spellweaver
Joined
Dec 8, 2008
Messages
41
Reaction score
2
Re: Chaos Scroll NPC

You forgot your dispose ^^ .

-XotiCraze.
 
Newbie Spellweaver
Joined
Apr 24, 2008
Messages
89
Reaction score
0
Re: Chaos Scroll NPC

PHP:
/*
Made outta boredom by Shadow465 of RaGEZONE, aka itsRJ
Not like anyone gives credits anyways. :p
*/

var status;



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


function action(mode, type, selection) {
    if (mode == -1)
        cm.dispose();
    else if (status >= 2 && mode == 0) {
            cm.sendOk("Yo #h #. ");
            cm.dispose();
            return;
        } else if (mode == 1)
            status++;
        else
            status--;
			
			
        if (status == 0) {
                cm.sendNext("#e#rThe scroll of risk#n#k\r\n#dThe crystal glows with an ominous feel to it. You can feel your heartbeat even louder than before. What is this odd feeling?\r\n\\r\n\You feel as if it's in need for something. Odd as it seems, you seem to believe if you place about 35 pieces of  #v4000298# at the base, it'll do something extraordinary...");
            } else if (status == 1) {
            if (cm.haveItem(4000298, 35)) {
            cm.sendOk("#bThe crystal glows brighter. You look at it in awe.");
            } else {
            cm.sendOk("#rThe crystal shoots off a little spark at you.");
            cm.dispose();
            }
        } else if (status == 2) {
            cm.gainItem(4000298, -35);
            cm.gainItem(2049100, 10);
            cm.dispose();
}
}


LOL you and your mega spaces. Nice npc
 
Junior Spellweaver
Joined
Jul 31, 2008
Messages
113
Reaction score
0
Re: Chaos Scroll NPC

LOL, i'm sorry. XD I like super spaces, I can read it easier... Oh and btw, it works fine, I don't think the cm.dispose(); is neccessary.

Yeah, this was a REALLY simple npc...
 
Newbie Spellweaver
Joined
Dec 8, 2008
Messages
41
Reaction score
2
Re: Chaos Scroll NPC

You'll have to CC or Relog if you didn't dispose o_o .

-XotiCraze.
 
Junior Spellweaver
Joined
Jul 31, 2008
Messages
113
Reaction score
0
Re: Chaos Scroll NPC

Oh is that why it did that? XD Uhhmm, lemme edit it then.

Thank you! :D

~Added
 
Newbie Spellweaver
Joined
Dec 8, 2008
Messages
41
Reaction score
2
Re: Chaos Scroll NPC

Uh, you are supposed to at it in status 2 , not 1 lol .

-XotiCraze.
 
Newbie Spellweaver
Joined
Apr 24, 2008
Messages
89
Reaction score
0
Re: Chaos Scroll NPC

LOL or he couldve just used mine D;
 
Junior Spellweaver
Joined
Jul 31, 2008
Messages
113
Reaction score
0
Re: Chaos Scroll NPC

God, i'm sucha newb.

Hey, anyone willing to test my Cody I edited? XD
 
Master Summoner
Loyal Member
Joined
Sep 25, 2008
Messages
501
Reaction score
0
nice..might use it thiknk bout it
 
Divine Celestial
Loyal Member
Joined
Jul 19, 2008
Messages
830
Reaction score
2
Simple yet working, good job
 
Back
Top