1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- event.load("quest_start");
- event.load("quest_term");
- event.load("block_place");
- stage = 0;
- all_stages = 1;
- quest_name = "Toten Ehre erweisen";
- flowerloc = loc.new(world.get("story"), -1626, 65, -971);
- @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.giveItem(player, read.item("minecraft:red_tulip"));
- block.set(flowerloc, "minecraft:air");
- msg.prefix(player, "§dKumpel", "Mein Schiffsaffe ist vor genau einem Jahr gestorben. Ich hab ihn damals auf dieser Insel vergraben.");
- scheduler.msgPrefix(30, player, "§dKumpel", "Bitte stelle diese Blume auf sein Grab.");
- goto("wait");
- }
- label = concat("stage", text.number(stage));
- goto(label);
- @stage0
- if(event == "block_place") {
- if(block_type == "minecraft:red_tulip") {
- if(block_loc == flowerloc) {
- cancel = false;
- msg.prefix(player, "§dKumpel", "Er möge in Frieden ruhen");
- player.setShipProgress(player, 8);
- entity.cleareffects(player);
- msg(player, "§dQuest abgeschlossen. Belohnung: 2 Snuvis!");
- addMoney(player, 2);
- quest.finish(script, player);
- }
- }
- }
- goto("wait");
|