אז זה ב-WZ?
ה-NPC:
קוד PHP:
importPackage(Packages.tools);
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
}else if (mode == 0){
cm.sendOk ("#eOkay!");
cm.dispose();
}else{
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendNext("Hey! I am the Manager of Hotel & Hostel!");
}else if (status == 1) {
cm.sendSimple ("What do you want me to do?#e#d" +
"#k\r\n#L0##b Bring me to my Hostel" +
"#k\r\n#L1##r Read the Story Mode" +
"#k\r\n\r\n#L2##g Episode Quest");
} else if (selection == 0) {
cm.warp(109010101);
cm.dispose();
}else if (selection == 1) {
cm.sendSimple ("Helios Story Mode#e#d" +
"#k\r\n\r\n#e Episode 1 - A new journey#n\r\n After " + cm.getPlayer().getName() + " have a nap till 3pm, " + cm.getPlayer().getName() + "'s Mum called " + cm.getPlayer().getName() + " to pack up his things and get ready for his plane to Helios at 6pm! Mum then explain to him some basic stuff about Helios. " + cm.getPlayer().getName() + " reached the airport and hunt down a few snail and was given a Ticket to Helios. He choosed the proffesion he wanted and were sent to plane. During his ride, he maxed all his basic need like the skills. He reached Kerning airport. The Hotel&Hostel Manager is there to help him around Helios. " + cm.getPlayer().getName() + " was given some items and then sent to the entrance of the Hostel." +
"#k\r\n\r\n#e Episode 2 - Something is wrong#n\r\n " + cm.getPlayer().getName() + " settled down at his hostel and explored around Henesys.He saw chef looking troubled and asked him whats wrong. Then, he found out that chef ran out of seal meat. He seeks your help and ask FisherMan what's wrong." + cm.getPlayer().getName() + " said that there's no fish in the sea around here recently! He asked " + cm.getPlayer().getName() + " that will he hunt 500seal meat for him. " + cm.getPlayer().getName() + " said yes." + cm.getPlayer().getName() + " finished hunting 500seal meats and passed it to Chef. Chef thanks him repeatedly and gave him some rewards." +
"#k\r\n\r\n#e Episode 3 - Unexpected!#n\r\n After some time, " + cm.getPlayer().getName() + " went to ask fisherman about the situation. Fisherman told " + cm.getPlayer().getName() + " that all his nets and fishing equipments have been stolen! He requested " + cm.getPlayer().getName() + " to help him make a police report.The Policeman said that he will investigate the case." +
"#k\r\n\r\n#e Episode 4 - Invasion of rats#n\r\n " + cm.getPlayer().getName() + " went to talk to Policeman. Policeman said that he had no time to investigate the case because there were too many cases about rat problems in ludi! He seeked " + cm.getPlayer().getName() + " help and asked you to hunt 600rat traps. After taking hours to hunt, " + cm.getPlayer().getName() + " finally finish hunting. " + cm.getPlayer().getName() + " passed the rat traps and was given some rewards." +
"#k\r\n\r\n#e Episode 5 - Investigation#n\r\n Policeman found out that there were some badasses behind this case. He asked " + cm.getPlayer().getName() + " to talk to fisherman for the exact information. Fisherman explained clearly about what happened on that day. Since there is no fishing equipments, there will be no seafood. " + cm.getPlayer().getName() + " was asked to tell Chef and manager about this. Manager requested " + cm.getPlayer().getName() + " to hunt 100mushroom spores due to new menu and found out that there were some black spot on the mushroom spores. He immediately rejected it and asked " + cm.getPlayer().getName() + " pass it to the policeman. Policeman gave you a medal and some rewards." +
"#k\r\n\r\n#e Episode 6 - The Evil spirit#n\r\n\ Policeman found out about the culprit behind it and he said that it may be the worst case. He asked " + cm.getPlayer().getName() + " to find The Dude somewhere in Ellinia. " + cm.getPlayer().getName() + " found him and told him about the problems. The dude starts talking about the 3 Legend and said their look and where they will be. With the worried face of his, he asked " + cm.getPlayer().getName() + " not to care things so much and go back to town." +
"#k\r\n\r\n\r\n#d-Part 1 end here-");
} else if (selection == 2) {
if(cm.getPlayer().getESP() == 10) {
cm.sendOk(".....\r\n.....\r\n.....\r\n.....\r\n.....\r\n.....\r\n.....\r\nNo seafood for a few weeks -.-\r\n Then i will introduce the Mushroom Soup then.\r\nWill you be kind to bring me 100Mushroom spore?");
cm.gainESP(1);
cm.dispose();
} else if(cm.getPlayer().getESP() == 11 && cm.haveItem(4000011, 100)) {
cm.sendOk("Oh thankyou :)\r\n\r\nWAIT! Whats the black dot inside the spore?\r\nEwww it look disguesting!\r\nNo way im taking it! Pass this to the #ePoliceMan#n!");
cm.gainESP(1);
cm.dispose();
} else {
cm.sendOk ("Your not needed for espisode.\r\nYou can refer to the Hotel Manager about the Story Mode Episodes.");
cm.dispose();
}
}
}
}
הבעיה:
אני לוחץ על Read the story mode אני קורא הכל יורד למטה, אני לוחץ next זה דופק לי דיסי, את האמת לא קשור לרדת למטה, פשוט ה-next דופק לי דיסי וזה לא טוב, השרת על גירסא 83.
עריכה:
הצלחתי לתקן את הסקילים, נשאר ה-NPC.