1234567891011121314151617181920212223242526272829303132333435363738394041 |
- %if %getGlobalVar $player-name schiff2; == true goto start;
- %q term;
- @start
- %msg all Gehe an den Strand, dort habe ich eine Farm errichtet. Ernte genug Weizen, damit du 4 Brote craften kannst.;
- %loadEvent block-break;
- %setVar no-join true;
- %setVar playerwheat1 %getItemAmountPlayer $player-name WHEAT:0:1;
- @wait1
- %wait
- %if $event == block-break && $block-type == CROPS && $block-data == 7 goto harvest;
- %goto wait1;
- @harvest
- %setVar cancel false;
- %setVar playerwheat2 %getItemAmountPlayer $player-name WHEAT:0:1;
- %if %sub $playerwheat2 $playerwheat1; >= 12 goto label;
- %goto wait1;
- @label
- %loadEvent craft;
- %unloadEvent block-break;
- %setVar crafted 0;
- @wait2
- %wait;
- %if $event == craft && $item-type == BREAD goto craft;
- %goto wait2;
- @craft
- %setVar crafted %add $crafted $item-amount;;
- %if $crafted >= 4 goto label;
- %msg all Es fehlen noch %sub 4 $crafted; Brote.;
- %goto wait2;
- @endQuest
- %msg all Läuft doch gut.;
- %setGlobalVar $player-name schiff3 true;
- %setGlobalVar $player-name schiff2 false;
- %endQuest 2;
|