jan.txt 654 B

1234567891011121314151617181920212223242526
  1. event.load("entity_click");
  2. quest_list = list.new();
  3. list.add(quest_list, "hunger");
  4. list.add(quest_list, "kalt");
  5. list.add(quest_list, "bauen");
  6. overworld = world.get("overworld");
  7. junker_loc = loc.new(overworld, 988, 88, 250);
  8. @wait
  9. wait();
  10. if(event == "entity_click") {
  11. if(entity.getType(entity) == "human") {
  12. if(loc.distance(junker_loc, entity.getLocation(player)) < 8) {
  13. if(!player.hasScript(player)) {
  14. number = math.random(0, list.getSize(quest_list) - 1);
  15. quest_name = list.getIndex(quest_list, number);
  16. script.start(player, concat("storydorf/jan/", quest_name));
  17. }
  18. }
  19. }
  20. }
  21. goto("wait");