rpgquest.txt 336 B

1234567891011121314151617
  1. event.load("block-break");
  2. setVar("amount", ggv($player-name, "rpgamount"));
  3. setVar("blocktype", ggv($player-name, "rpgblock"));
  4. @wait
  5. wait();
  6. if(equal($event, "block-break")) goto("break");
  7. goto("wait");
  8. @break
  9. if(equal($block-type, $blocktype)) dec("amount");
  10. if(lessequal($amount, 0)) {
  11. term();
  12. //jobxp erhöhen
  13. }
  14. goto("wait");