I based this one off maplepuppet's I didn't see anything special for the new year so I just rushed a fast npc script anyways if you can read a script what it does is gives the person a gm hat for 3 days you can remove it after the 3 days with an SQL command and Also giving free maple golden leafs for the new year and some other funny stuff you can switch this to meet your needs or tell me what you wan't the npc to do and I will do it for you =]
PHP Code:var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendSimple("#bWelcome to ServerNAME V.62, I am the New Year Wish Come TRUE! NPC. What do you want \n\#l\b\r\n#L0#GM HAT !\n\#l\b\r\n#L1#Owner's Phone Number\n\#l\b\r\n#L2#Mesos! or Leafs PL0x\n\#l\b\r\n#L3#Can I be a real GM?\n\#l\b\r\n#L4#Will you raise the rates?\n\#l\n\#l\b\r\n#L5#Nevermind I don't need anything.\n\#l")
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("#b Well this new year you can , the GM hat will be available to you for this day only it will be removed from inventory on January 3 of 2009!");
cm.gainItem(1002140,5);
} else if (selection == 1) {
cm.sendOk("#r Omg you sick nasty stalker , if you wan't to call me dial 911...");
} else if (selection == 2) {
cm.sendOk("#d Trade those golden leafs into shanks. ");
cm.gainItem(4000313,5);
} else if (selection == 3) {
cm.sendOk("#k In your dreams...");
} else if (selection == 4) {
cm.sendOk("#r Ofcourse 660X EXP FOR ALL!");
} else if (selection == 5) {
cm.dispose();
}
cm.dispose();
}
}
Diffrent Script this one gives Horntail Necklace
PHP Code:var status = -1;
function start()
{
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
if (status == 0) {
cm.sendSimple("#bWelcome to ServerNAME V.62, I am the New Year Wish Come TRUE! NPC. What do you want \n\#l\b\r\n#L0#Horntail Necklace\n\#l\b\r\n#L1#Owner's Phone Number\n\#l\b\r\n#L2#Mesos! or Leafs PL0x\n\#l\b\r\n#L3#Can I be a real GM?\n\#l\b\r\n#L4#Will you raise the rates?\n\#l\n\#l\b\r\n#L5#Nevermind I don't need anything.\n\#l")
} else if (status == 1) {
if (selection == 0) {
cm.sendOk("#b Well this new year you can , the Horntail Necklace will be available to you for this day only it will be removed from inventory on January 3 of 2009!");
cm.gainItem(1122000,5);
} else if (selection == 1) {
cm.sendOk("#r Omg you sick nasty stalker , if you wan't to call me dial 911...");
} else if (selection == 2) {
cm.sendOk("#d Trade those golden leafs into shanks. ");
cm.gainItem(4000313,5);
} else if (selection == 3) {
cm.sendOk("#k In your dreams...");
} else if (selection == 4) {
cm.sendOk("#r Ofcourse 660X EXP FOR ALL!");
} else if (selection == 5) {
cm.dispose();
}
cm.dispose();
}
}



Reply With Quote![[Release]New Year NPC](http://ragezone.com/hyper728.png)


