123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- event.load("human_hurt");
- event.load("entity_click");
- event.load("inv_click");
- msg("dev", "§bQuests: §rSchiffbruch loaded.");
- @wait
- wait();
- ignoreGoto(event);
- goto("wait");
- @human_hurt
- if(!isPlayer(entity)) {
- goto("wait");
- }
- player = entity;
- entity = human;
- goto("human_core");
- @entity_click
- if(hand == "OFF_HAND") {
- goto("wait");
- }
- if(entity.getType(entity) != "human") {
- goto("wait");
- }
- goto("human_core");
- @human_core
- if(player.hasQuest2(player)) {
- goto("wait");
- }
- entity_name = entity.getName(entity);
- if(entity_name == "Kumpel") {
- inv = inv.new("333333333333333333");
- progress = player.getShipProgress(player);
- inv.setItem(inv, 0, read.item("minecraft:enchanted_book", 1, "§fSchiffbruch"));
- if(progress > 0) {
- inv.setItem(inv, 1, read.item("minecraft:enchanted_book", 1, "§fNüchtern werden"));
- }
- if(progress > 1) {
- inv.setItem(inv, 2, read.item("minecraft:enchanted_book", 1, "§fSchatz der Santa Maria"));
- }
- if(progress > 2) {
- inv.setItem(inv, 3, read.item("minecraft:enchanted_book", 1, "§fNie wieder Hunger leiden"));
- }
- if(progress > 3) {
- inv.setItem(inv, 4, read.item("minecraft:enchanted_book", 1, "§fFeines Abendessen"));
- }
- if(progress > 4) {
- inv.setItem(inv, 5, read.item("minecraft:enchanted_book", 1, "§fMonster besiegen"));
- }
- if(progress > 5) {
- inv.setItem(inv, 6, read.item("minecraft:enchanted_book", 1, "§fBaumaterial besorgen"));
- }
- if(progress > 6) {
- inv.setItem(inv, 7, read.item("minecraft:enchanted_book", 1, "§fToten Ehre erweisen"));
- }
- if(progress > 7) {
- inv.setItem(inv, 8, read.item("minecraft:enchanted_book", 1, "§fIch bin durstig"));
- }
- if(progress > 8) {
- inv.setItem(inv, 9, read.item("minecraft:enchanted_book", 1, "§fBacke Backe Kuchen"));
- }
- if(progress > 9) {
- inv.setItem(inv, 10, read.item("minecraft:enchanted_book", 1, "§fVorbereitungen"));
- }
- if(progress > 10) {
- inv.setItem(inv, 11, read.item("minecraft:enchanted_book", 1, "§fFeuerteufel"));
- }
- if(progress > 11) {
- inv.setItem(inv, 12, read.item("minecraft:enchanted_book", 1, "§fBoss"));
- }
- inv.open(inv, player, "Quests: Kumpel");
- goto("wait");
- }
- goto("wait");
- @inv_click
- if(inv_name == "Quests: Kumpel") {
- progress = player.getShipProgress(player);
- if(inv_slot > progress) {
- goto("wait");
- }
- if(inv_slot == 0) {
- quest.start(player, "story/schiffbruch/schiff_1_schiffbruch");
- goto("wait");
- }
- if(inv_slot == 1) {
- quest.start(player, "story/schiffbruch/schiff_2_nuechtern");
- goto("wait");
- }
- if(inv_slot == 2) {
- quest.start(player, "story/schiffbruch/schiff_3_schatz");
- goto("wait");
- }
- if(inv_slot == 3) {
- quest.start(player, "story/schiffbruch/schiff_4_hunger");
- goto("wait");
- }
- if(inv_slot == 4) {
- quest.start(player, "story/schiffbruch/schiff_5_abendessen");
- goto("wait");
- }
- if(inv_slot == 5) {
- quest.start(player, "story/schiffbruch/schiff_6_monster");
- goto("wait");
- }
- if(inv_slot == 6) {
- quest.start(player, "story/schiffbruch/schiff_7_baumaterial");
- goto("wait");
- }
- if(inv_slot == 7) {
- quest.start(player, "story/schiffbruch/schiff_8_ehre");
- goto("wait");
- }
- if(inv_slot == 8) {
- quest.start(player, "story/schiffbruch/schiff_9_durst");
- goto("wait");
- }
- if(inv_slot == 9) {
- quest.start(player, "story/schiffbruch/schiff_10_kuchen");
- goto("wait");
- }
- if(inv_slot == 10) {
- quest.start(player, "story/schiffbruch/schiff_11_vorbereitungen");
- goto("wait");
- }
- if(inv_slot == 11) {
- quest.start(player, "story/schiffbruch/schiff_12_feuerteufel");
- goto("wait");
- }
- if(inv_slot == 12) {
- quest.start(player, "story/schiffbruch/schiff_13_boss");
- goto("wait");
- }
- }
- goto("wait");
|