The dev contiune here
Home­FAQ­Search­Memberlist­Usergroups­Register­Log in
ZalaMs dev  :: 

ZalaMs categories

 :: 

Release section

 :: 

[Release] White Scroll Maker NPC (OdinMS)

Post a reply
Username
Subject
Message body
 
 
  


Options-
HTML is OFF
BBCode is ON
Smilies are ON
 
Disable BBCode in this post
Disable Smilies in this post
Jump to:  
Topic review
AuthorMessage
metaL
Sat Aug 16, 2008 12:20 pm   Topic: [Release] White Scroll Maker NPC (OdinMS)

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();

}
}
}