[Release]My Christmas Event Scripts

Newbie Spellweaver
Joined
Jul 10, 2008
Messages
14
Reaction score
2
Note: Do not flame because 3 of these have been released already, most of these are mine, and most of them were made by me or my team.

Note: the NPC ids are in the spoilers

This includes:
Snowman Spawner
Roodolph warps to Extra Frosty Snow Zone
Rooney warps to happy
Rupi warps to ellinia
Cliff exchanges presents
Maple Claws "gives away" items (ornaments, magic mitten, and happyville snowballs) for one meso
the present reactors in happyville drop nevermelting snow (needed for snowman spawn)
christmas tree warpers (inside and outside)

copy/paste these or download at bottom (SQL for reactor, and Shop not in download)

Maple Claws Shop:
PHP:
/*
/* 
* Made by Iacoopa of RessurectionMS
*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990000, 1, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990001, 1, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990002, 1, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990003, 1, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990004, 1, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990005, 1, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990006, 1, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990007, 1, 8);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990008, 1, 9);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990009, 1, 10);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990010, 1, 11);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990011, 1, 12);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990012, 1, 13);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990013, 1, 14);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990014, 1, 15);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990015, 1, 16);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990016, 1, 17);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990017, 1, 18);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990018, 1, 19);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990019, 1, 20);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990020, 1, 21);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990021, 1, 22);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990022, 1, 23);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3990023, 1, 24);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991, 1, 25);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991010, 1, 36);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991011, 1, 37);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991012, 1, 38);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991013, 1, 39);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991014, 1, 40);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991015, 1, 41);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991016, 1, 42);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991017, 1, 43);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991018, 1, 44);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991019, 1, 45);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991020, 1, 46);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991021, 1, 47);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991022, 1, 48);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991023, 1, 49);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991024, 1, 50);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991025, 1, 51);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991026, 1, 52);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991027, 1, 53);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991028, 1, 54);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991029, 1, 55);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991030, 1, 56);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991031, 1, 57);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991032, 1, 58);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991033, 1, 59);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991034, 1, 60);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991035, 1, 61);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991036, 1, 62);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991037, 1, 63);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991038, 1, 64);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991039, 1, 65);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991040, 1, 66);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991041, 1, 67);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991042, 1, 68);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991043, 1, 69);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991044, 1, 70);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991045, 1, 71);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991046, 1, 72);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991047, 1, 73);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991048, 1, 74);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991049, 1, 75);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991050, 1, 76);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 3991051, 1, 77);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 1472063, 1, 78);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (9192394, 2060005, 1, 79);

INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(9192394, 9201030);
feel free to change npc

now the Snowman Spawner
PHP:
/**
	Happy - 9220004
-- By ---------------------------------------------------------------------------------------------


        NPC HelpDesk - XxOsirisxX , happydud3 aka MrMysterious , acEvolution and XotiCraze


-- Extra Info -------------------------------------------------------------------------------------
 

        Thank you for using our service. Please come again
		
		[U][B]PLEASE ADD THIS TO NPCConversationManager[/B][/U]
	public void spawnMonster(int mobid, int x, int y) {  
      Point spawnPos = new Point(x, y);
        MapleMonster npcmob = MapleLifeFactory.getMonster(mobid); 
        getPlayer().getMap().spawnMonsterOnGroundBelow(npcmob, spawnPos);
}

---------------------------------------------------------------------------------------------------
**/

var status;

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

function action(mode, type, selection) {
if (mode == 1)
status++;
else if (mode == -1 && status == 1) { 
cm.sendOk("Good choice..");
cm.dispose();
} else {
cm.sendOk("I was made by the NPC Helpdesk at ragezone <3");
cm.dispose();
return;
}

if (status == 0)
cm.sendYesNo("Hello, i'm happy, would you like to spawn the Snowman?");
else if (status == 1) { // Could use else but ehh you might wanna add something later so i'll leave it.
if(cm.haveItem(1472063, 1, true, true) && cm.haveItem(2060005) && cm.haveItem(4031875, 1000)) { // Holla if you have problems with this. I think snowballs can be equipped rofl ><
var pos = cm.getPlayer().getPosition();
cm.spawnMonster(9400708, pos.x, pos.y);
cm.gainItem(4031875, -1000);
} else
cm.sendOk("You do not have the items required, Maple Claws sells snowballs and mittens, and slimes drop nevermelting snows");
cm.dispose();
}
}
it's be best you left the npc Happy

and Roodolph
PHP:
/*
Made by Iacoopa of RessurectionMS
Roodolph - 9220005
*/

var status;

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

function action(mode, type, selection) {
if (mode == 1)
status++;
else if (mode == 0 && status == 1) { 
cm.sendOk("Cya");
cm.dispose();
} else {
cm.sendOk("Talk again soon ~");
cm.dispose();
return;
}

if (status == 0)
cm.sendYesNo("Hello, i'm #rRoodolph#k, I can drag yo- I mean, take you for a ride, in my sleigh! Where would you like to go?r\n\L0##dThe Extra Frosty Snow Zone#k#lr\n\L1##dHappy Ville#k#l");
if (selection == 1) {
cm.warp(209080000, 0);//extra frosty snow zone
cm.sendOk("Come back for another draggin- I mean, ride!");
cm.dispose();
return;
} else if (selection == 2) {
cm.warp(209000000, 0);//happy ville
cm.sendOk("Come back for another draggin- I mean, ride!");
cm.dispose();
return;
}



/*else if (status == 1) { 
cm.warp(209000000, 0); // happy ville
cm.sendOk("Have fun ~");
cm.dispose();
return;
}*/

Rooney
PHP:
/*
Made by Iacoopa of RessurectionMS
Rooney - 1022101
*/

var status;

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

function action(mode, type, selection) {
if (mode == 1)
status++;
else if (mode == 0 && status == 1) { 
cm.sendOk("Cya");
cm.dispose();
} else {
cm.sendOk("Talk again soon ~");
cm.dispose();
return;
}

if (status == 0)
cm.sendYesNo("Hello, i'm #gRooney#k, would you like to go to #dHappy Ville#k?");
else if (status == 1) { 
cm.warp(209000000, 0); // happy ville
cm.sendOk("Have fun ~");
cm.dispose();
return;
} 
}

Rupi
PHP:
/*
Made by Iacoopa of RessurectionMS
Rupi - 2002000
*/

var status;

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

function action(mode, type, selection) {
if (mode == 1)
status++;
else if (mode == 0 && status == 1) { 
cm.sendOk("Cya");
cm.dispose();
} else {
cm.sendOk("Talk again soon ~");
cm.dispose();
return;
}

if (status == 0)
cm.sendYesNo("Hello, i'm #gRupi#k, would you like to go to #dEllinia#k?");
else if (status == 1) { 
cm.warp(101000000, 0); // Ellinia
cm.sendOk("Come back soon!");
cm.dispose();
return;
} 
}

Cliff
PHP:
/* 
* Made by Iacoopa of RessurectionMS
* www.RessurectionMaple.tk
*Cliff - 2001000
*/



function start() {
	cm.sendSimple ("Hello, I am incharge of exchanging #dChristmas Presents#k would you like to exchange? \r\n#L0##i4000422##k \r\n#L1##i4000423##k \r\n#L2##i4000424##k \r\n#L3##i4000425##k");
    }
function action(mode,type,selection) {
	cm.dispose();
	    switch (selection) {
	case 0:
	    if (cm.haveItem(4000422)) {
		cm.gainItem(4000422, -1);
		cm.gainItem(1002225,1);
		cm.gainItem(1082101,1)
		cm.sendOk("Come back with more #bPresents#k soon!")
		cm.dispose();
		return;
	    } else {
		cm.sendOk("You do not have #bPresents#k, or have made the wrong choice.")
		cm.dispose();
		return;
	   } break;
	case 1:
	    if (cm.haveItem(4000423)) {
		cm.gainItem(4000423, -1);
		cm.gainItem(1070005,1);
		cm.gainItem(1051049,1);
		cm.gainItem(1071016,1);
		cm.sendOk("Come back with more #bPresents#k soon!")
		cm.dispose();
		return;
	    } else {
		cm.sendOk("You do not have #bPresents#k, or have made the wrong choice.")
		cm.dispose();
		return;
	        } break;
	case 2:
	    if (cm.haveItem(4000424)) {
	        cm.gainItem(4000424, -1);
	        cm.gainItem(1050119,1);
	        cm.gainItem(1050019,1);
		cm.gainItem(1051131,1);
		cm.sendOk("Come back with more #bPresents#k soon!")
		cm.dispose();
		return;
	    } else {
		cm.sendOk("You do not have #bPresents#k, or have made the wrong choice.")
		cm.dispose();
		return;
	        } break;
	case 3:
	    if (cm.haveItem(4000425)) {
		cm.gainItem(4000425, -1)
		cm.gainItem(1702166,1);
		cm.gainItem(1702100,1);
		cm.gainItem(1702008,1);
		cm.sendOk("Come back with more #bPresents#k soon!")
		cm.dispose();
		return;
	    } else {
		cm.sendOk("You do not have #bPresents#k, or have made the wrong choice.")
		cm.dispose();
		return;
	        } break;
}
}

Reactors:
PHP:
/* drops nevermelting snow ~ Iacoopa, RessurectionMS, ID 2092001
SQL:
INSERT reactordrops (reactorid,itemid,chance) VALUES (2092001,4031875,1);  
*/
function act() {
    rm.dropItems();
}

Christmas tree warper (from outside, goes inside)
PHP:
/* Made by Iacoopa of RessurectionMS
* straw snowman - 2001001
*/
        function start() { 
            cm.sendYesNo("The #gChristmas Tree#k is now open to the public.\r\nDo you want to #bdecorate#k it?"); 
        } 
        function action(mode, type, selection) { 
        if (mode == 1) { 
        if (cm.getChar().getGender() == 0) { 
            cm.warp(209000001,0); 
        } else { 
            cm.warp(209000001,0); 
        } 
    } 
    cm.dispose(); 
}

Tree warper (inside, to outside and other trees)
PHP:
/* Author Johnlth93 - Zairean Dev
*
 * X'mas Event
 * 
 * 2001004.js: Happy Village - Warper Inside The X'mas Tree
 */
    function start() { 
        cm.sendSimple("Hello, Im #b#p"+cm.getNpc()+"##k\r\nIm in charge of warping in this Event, what can i help you with?\r\n#L0##m209000001# 1#k \r\n#L1##m209000002# 2#k \r\n#L2##m209000003# 3#k \r\n#L3##m209000004# 4#k \r\n#L4##m209000005# 5#k \r\n#L5##m209000006# 6#k \r\n#L6##m209000007# 7#k \r\n#L7##m209000008# 8#k \r\n#L8##m209000009# 9#k \r\n#L9##m209000010# 10#k \r\n#L10##m209000011# 11#k \r\n#L11##m209000012# 12#k \r\n#L12##m209000013# 13#k \r\n#L13##m209000014# 14#k \r\n#L14##m209000015# 15#k \r\n#L15##rNope i bored~I wanna get out of here~!!#k \r\n#L16##dWhere is every thing?!#k"); 
    } 
    
    function action(mode, type, selection) {
        cm.dispose();
        if (selection == 0) {
            cm.warp(209000001,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000001# 1#k");
            cm.dispose();
        } else if (selection == 1) {
            cm.warp(209000002,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000002# 2#k");
            cm.dispose();
        } else if (selection == 2) {
            cm.warp(209000003,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000003# 3#k");
            cm.dispose();
        } else if (selection == 3) {
            cm.warp(209000004,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000004# 4#k");
            cm.dispose();
        } else if (selection == 4) {
            cm.warp(209000005,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000005# 5#k");
            cm.dispose();
        } else if (selection == 5) {
            cm.warp(209000006,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000006# 6#k");
            cm.dispose();
        } else if (selection == 6) {
            cm.warp(209000007,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000007# 7#k");
            cm.dispose();
        } else if (selection == 7) {
            cm.warp(209000008,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000008# 8#k");
            cm.dispose();
        } else if (selection == 8) {
            cm.warp(209000009,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000009# 9#k");
            cm.dispose();
        } else if (selection == 9) {
            cm.warp(209000010,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000010# 10#k");
            cm.dispose();
        } else if (selection == 10) {

            cm.warp(209000011,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000011# 11#k");
            cm.dispose();
        } else if (selection == 11) {
            cm.warp(209000012,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000012# 12#k");
            cm.dispose();
        } else if (selection == 12) {
            cm.warp(209000013,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000013# 13#k");
            cm.dispose();
        } else if (selection == 13) {
            cm.warp(209000014,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000014# 14#k");
            cm.dispose();
        } else if (selection == 14) {
            cm.warp(209000015,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000015# 15#k");
            cm.dispose();
        } else if (selection == 15) {
            cm.warp(209000000,0);
            cm.sendOk("Have a Merry Christmas~ Enjoy ur stay in #r#m209000000##k");
            cm.dispose();
        } else if (selection == 16) {
	    cm.sendOk("I'll give you the rundown on the entire event: \r\n#e{#n#gSo, what happens is, Maple Claws sells ornaments, mittens, and snowballs, my friend the Straw Snowman, will warp you here, Roodolph with take you to the Extra Frosty Snow Zone, and Rupi takes you back to Ellinia, oh and by the way, happy the elf spawns the snowman...#k#e}#n");
	    cm.dispose();
	    return;
	}
    }



CREDITS: Me, RessurectionMS coder (Alex), NPC Helpdesk, Zairean Dev. And if you do post somewhere else, please give proper credits.
 

Attachments

Last edited:
Good job dude ;)
Will help people/And people not Using "Search" button.

But there will be people who will flame you :(
 
Nice Release for Bringing it all together.I love java lol.All those Trial&Error.JS is more fun then java cos Java has netbeans to back you up to show the errors lol
 
Very nice work ok the NPC scripts.

~Merry Christmas~

Even thought I really think kids and people should really be with there family on Christmas day not on the computer.

Hopefully to Enjoy Christmas they can do BOTH woot! =D

To people that are addicted at least do something nice. xD
 
Very nice work on the NPC scripts.

~Merry Christmas~

Even thought I really think kids and people should really be with there family on Christmas day not on the computer.

Hopefully to Enjoy Christmas they can do BOTH woot! =D

To people that are addicted at least do something nice. xD

Sorry if double posted.
 
I kinda didn't understand ur Roodolph.....makes no sense.....
And what does the reactor actually do?
 
Back