123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- event.load("human_hurt");
- event.load("entity_click");
- event.load("inv_click");
- msg("dev", "§bQuests: §rSpawn loaded.");
- @wait
- wait();
- ignoreGoto(event);
- goto("wait");
- @human_hurt
- if(!isPlayer(entity)) {
- goto("wait");
- }
- player = entity;
- entity = human;
- goto("human_core");
- @entity_click
- if(hand == "OFF_HAND") {
- goto("wait");
- }
- if(entity.getType(entity) != "human") {
- goto("wait");
- }
- goto("human_core");
- @human_core
- if(player.hasQuest2(player)) {
- goto("wait");
- }
- entity_name = entity.getName(entity);
- if(entity_name == "Tutorial") {
- /*script = script.start("story/spawn/tutorial", "utils/u_quest", "utils/u_general");
- if(script == null) {
- waitfor(1);
- msg("dev", "quest waitfor");
- }
- quest.addPlayer(script, player);
- script.setVar(script, "player", player);
- script.setVar(script, "script", script);
- script.setVar(script, "quest_player_uuid", player.getUuid(player));
- script.callEvent("quest_start", script);*/
- msg(player, "Coming soon");
- goto("wait");
- }
- if(entity_name == "Marvin") {
- script = script.start("story/spawn/findmentos", "utils/u_quest", "utils/u_general");
- if(script == null) {
- waitfor(1);
- msg("dev", "quest waitfor");
- }
- quest.addPlayer(script, player);
- script.setVar(script, "player", player);
- script.setVar(script, "script", script);
- script.setVar(script, "quest_player_uuid", player.getUuid(player));
- script.callEvent("quest_start", script);
- goto("wait");
- }
- goto("wait");
|