1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- %if %distance $entity-loc $bibliothecarloc; <= 4 goto start;
- %q term;
- @start
- %setVars %getQuestLeader;;
- %msg all Hallo, ich bin der Bibliothekar und schwer beschäftigt. Ich bräuchte für meine Arbeiten an der Erhaltung alter Dokumente noch ein paar Blätter Papier. Bitte ernte im Dorf Zuckerrohr und stelle daraus Papier her, welches du mir dann bringst.;
- %setInfo
- %loadEvent block-break;
- %setVar canebroken 0;
- @wait1
- %wait;
- %if $event == block-break && $block-type == SUGAR_CANE_BLOCK && %blockType %modLoc $block-loc 0 -1 0;; == SUGAR_CANE_BLOCK goto harvest;
- %goto wait1;
- @harvest
- %setVar cancel false;
- %if %blockType %modLoc $block-loc 0 1 0;; == SUGAR_CANE_BLOCK goto add2;
- %setVar canebroken %add $canebroken 1;;
- %if $canebroken >= 6 goto craft;
- %goto wait1;
- @add2
- %setVar canebroken %add $canebroken 2;;
- %if $canebroken >= 6 goto craft;
- %goto wait1;
- @craft
- %unloadEvent block-break;
- %loadEvent craft;
- %setVar craftedpaper 0;
- @wait2
- %wait;
- %if $event == craft && $item-type == PAPER goto craft2;
- %goto wait2;
- @craft2
- %setVar craftedpaper %add $craftedpaper $item-amount;;
- %if $craftedpaper >= 6 goto label;
- %msg all Es fehlen nochn %sub 6 $craftedpaper; Stück Papier.;
- %goto wait2;
- @label
- %unloadEvent craft;
- %loadEvent villager-give;
- %setInfo Gib dem Bibliothekar 6 Stück Papier.;
- %setVar papergiven 0;
- @wait3
- %wait;
- %if $event == villager-give && $player-item == PAPER goto checkloc;
- %setVar cancel true;
- %msg all Was soll ich damit?;
- %goto wait3;
- @checkloc
- %if %distance $villager-loc $bibliothecarloc; <= 4 goto give;
- %setVar cancel true;
- %msg all Tut mir leid, ich bin nicht der Bibliothekar.;
- %goto wait3;
- @give
- %setVar papergiven %add $papergiven $item-amount;;
- %if $papergiven >= 6 goto endQuest;
- %msg all Ich brauche noch %sub 6 $papergiven; Stück Papier.;
- %goto wait3;
- @endQuest
- %msg all Vielen Dank für deine Hilfe.;
- %endQuest 3;
|