1234567891011121314151617181920212223242526 |
- event.load("entity_click");
- quest_list = list.new();
- list.add(quest_list, "hunger");
- list.add(quest_list, "kalt");
- list.add(quest_list, "bauen");
- overworld = world.get("overworld");
- junker_loc = loc.new(overworld, 988, 88, 250);
- @wait
- wait();
- if(event == "entity_click") {
- if(entity.getType(entity) == "human") {
- if(loc.distance(junker_loc, entity.getLocation(player)) < 8) {
- if(!player.hasScript(player)) {
-
- number = math.random(0, list.getSize(quest_list) - 1);
- quest_name = list.getIndex(quest_list, number);
- script.start(player, concat("storydorf/jan/", quest_name));
-
- }
- }
- }
- }
- goto("wait");
|