123456789101112131415161718192021222324252627282930313233343536 |
- event.load("quest_start");
- event.load("quest_term");
- event.load("fishing");
- stage = 0;
- all_stages = 1;
- quest_name = "Feines Abendessen";
- @wait
- wait();
- if(!player.isQuester(player, script)) {
- goto("wait");
- }
- if(event == "quest_term") {
- entity.cleareffects(player);
- wait(); //Script wird von außen terminiert
- }
- if(event == "quest_start") {
- quest.display(player, quest_name, stage, all_stages);
- player.giveSingleItem(player, read.item("minecraft:fishing_rod"), false);
- msg.prefix(player, "§dKumpel", "Nimm diese Angel und fang uns zum Abendessen einen Fisch.");
- goto("wait");
- }
- label = concat("stage", text.number(stage));
- goto(label);
- @stage0
- if(event == "fishing") {
- msg.prefix(player, "§dKumpel", "Lass es dir schmecken!");
- player.setShipProgress(player, 5);
- entity.cleareffects(player);
- msg(player, "§dQuest abgeschlossen. Belohnung: 3 Snuvis!");
- addMoney(player, 3);
- quest.finish(script, player);
- }
- goto("wait");
|