The dev contiune here
Home­FAQ­Search­Memberlist­Usergroups­Register­Log in
Post new topic   Reply to topicShare | 
 

 [Release] White Scroll Maker NPC (OdinMS)

View previous topic View next topic Go down 
AuthorMessage
metaL
Admin


Posts: 11
Join date: 2008-08-16
Age: 26
Location: Singapore Ftw

PostSubject: [Release] White Scroll Maker NPC (OdinMS)   Sat Aug 16, 2008 12:20 pm

Hey, I decided to make this for my server and I'll release it to you guys to.
You can Make the Piece of Scroll (4001136) drop from anything you want.



Code:
// White Scroll Maker By Sawyer of LynnStory
//High Preist John (9201002)
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("Rawr!?");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("I am John and if you have all of the materials I will make you a White Jesus Scroll!!! You will need #b5 Pieces of Scroll#k, #bHoly Water#k, and #b10 Mill Mesos#k. ");
}
else if (status == 1) {
if ((cm.haveItem(4001136, 5)) && (cm.haveItem(2050003)) && (cm.getMeso() >= 10000000)) {
cm.sendYesNo("It seems like you have the required materials, do you want me to make a #bWhite Scroll#k for you?");
}
else if (!cm.haveItem(4001136, 5)) {
cm.sendOk("You dont have the required items.");
cm.dispose();
}
else if (!cm.haveItem(2050003)) {
cm.sendOk("You dont have the required items.");
cm.dispose();
}
else if (!cm.getMeso() <= 10000000) {
cm.sendOk("You dont have the required items.");
cm.dispose();
}

}
else if (status == 2) {
cm.gainMeso(-10000000);
cm.gainItem(4001136, -5);
cm.gainItem(2050003, -1);
cm.gainItem(2340000, 1);
cm.dispose();

}
}
}
Back to top Go down
View user profile http://zalams-dev.darkbb.com
 

[Release] White Scroll Maker NPC (OdinMS)

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You can reply to topics in this forum
ZalaMs dev :: ZalaMs categories :: Release section-
Post new topic   Reply to topic