Reformat and clean up npc scripts

This commit is contained in:
P0nk
2021-09-09 23:35:02 +02:00
parent 0c1545f81d
commit d893309b4f
665 changed files with 19932 additions and 19046 deletions

View File

@@ -32,33 +32,39 @@ function start() {
function action(mode, type, selection) {
status++;
if (mode != 1)
if((mode == 0 && type == 1) || mode == -1 || (mode == 0 && status == 1)){
if(type == 1)
if (mode != 1) {
if ((mode == 0 && type == 1) || mode == -1 || (mode == 0 && status == 1)) {
if (type == 1) {
cm.sendNext("You must have some business to take care of here. You must be tired from all that traveling and hunting. Go take some rest, and if you feel like changing your mind, then come talk to me.");
}
cm.dispose();
return;
} else
} else {
status -= 2;
if (selection == 0)
}
}
if (selection == 0) {
status++;
if(status == 1){
if(selection == 1)
}
if (status == 1) {
if (selection == 1) {
cm.sendYesNo("So you have a #bVIP Ticket to Florina Beach#k? You can always head over to Florina Beach with that. Alright then, but just be aware that you may be running into some monsters there too. Okay, would you like to head over to Florina Beach right now?");
else if (selection == 2)
} else if (selection == 2) {
cm.sendNext("You must be curious about a #bVIP Ticket to Florina Beach#k. Haha, that's very understandable. A VIP Ticket to Florina Beach is an item where as long as you have in possession, you may make your way to Florina Beach for free. It's such a rare item that even we had to buy those, but unfortunately I lost mine a few weeks ago during my precious summer break.");
} else if (status == 2){
if(type != 1 && selection != 0) {
}
} else if (status == 2) {
if (type != 1 && selection != 0) {
cm.sendNextPrev("I came back without it, and it just feels awful not having it. Hopefully someone picked it up and put it somewhere safe. Anyway, this is my story and who knows, you may be able to pick it up and put it to good use. If you have any questions, feel free to ask.");
cm.dispose();
} else{
if (cm.getMeso() < 1500 && selection == 0)
cm.dispose();
} else {
if (cm.getMeso() < 1500 && selection == 0) {
cm.sendNext("I think you're lacking mesos. There are many ways to gather up some money, you know, like... selling your armor... defeating monsters... doing quests... you know what I'm talking about.");
else if(!cm.haveItem(4031134) && selection != 0){
} else if (!cm.haveItem(4031134) && selection != 0) {
cm.sendNext("Hmmm, so where exactly is your #bVIP Ticket to Florina\r\nBeach#k? Are you sure you have one? Please double-check.");
}else{
if(selection == 0)
} else {
if (selection == 0) {
cm.gainMeso(-1500);
}
cm.getPlayer().saveLocation("FLORINA");
cm.warp(110000000, "st00");
}