From 314f816a2aa4e27dca82415c63cd2858eacacac3 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 30 Jan 2022 16:01:59 -0300 Subject: Add the exit from the party --- world/map/npc/annuals/2022.txt | 83 ++++++++++++++++++++++++++++++++++++++++++ world/map/npc/scripts.conf | 1 + 2 files changed, 84 insertions(+) create mode 100644 world/map/npc/annuals/2022.txt diff --git a/world/map/npc/annuals/2022.txt b/world/map/npc/annuals/2022.txt new file mode 100644 index 00000000..a097faf1 --- /dev/null +++ b/world/map/npc/annuals/2022.txt @@ -0,0 +1,83 @@ +// Evol script +// Year: 2022 +// +//////////////////////////////////////////////// +// Controls the party and puppets + +003-1,42,94,0|script|#P2022Exit|400,4,0 +{ + end; +OnTouch: + mes "Do you want to leave the party?"; + if (#X21 < 10) goto L_Warn; + goto L_Prompt; + +L_Warn: + mes "##1You won't be able to complete the party events once you leave.##0"; + goto L_Prompt; + +L_Prompt: + next; + menu + "I'll stay a bit longer.", L_Close, + "Leave to Tulimshar", L_Tulim, + "Leave to Pachua Village", L_Pachua, + "Leave to Hurnscald", L_Hurns, + "Leave to Terranite Cave", L_Terra, + "Leave to Nivalis", L_Nivalis, + "Leave to Blue Sage Manor", L_Blue, + "Leave to Graveyard", L_Crypt, + "Leave to Keshlam Swamps", L_Keshlam, + "Leave to Candor", L_Candor, + "I've changed my mind.", L_Close; +L_Close: + close; + +L_Tulim: + set #X21, 10; + warp "002-1", 60, 42; + close; + +L_Pachua: + set #X21, 10; + warp "006-1", 28, 97; + close; + +L_Hurns: + set #X21, 10; + warp "008-1", 79, 84; + close; + +L_Terra: + set #X21, 10; + warp "012-3", 445, 65; + close; + +L_Nivalis: + set #X21, 10; + warp "020-1", 53, 122; + close; + +L_Blue: + set #X21, 10; + warp "048-2", 26, 47; + close; + +L_Crypt: + set #X21, 10; + warp "026-1", 49, 45; + close; + +// FIXME Map size changed? +L_Keshlam: + set #X21, 10; + warp "099-7", 75, 13; + close; + +L_Candor: + set #X21, 10; + warp "029-1", 69, 69; + close; +} + + diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf index 385d11c5..40c828ca 100644 --- a/world/map/npc/scripts.conf +++ b/world/map/npc/scripts.conf @@ -69,6 +69,7 @@ npc: npc/functions/gm_island.txt npc: npc/annuals/fathertime.txt npc: npc/annuals/check_time.txt npc: npc/annuals/tree_beard.txt +npc: npc/annuals/2022.txt // Annual Christmas npc: npc/annuals/xmas/config.txt npc: npc/annuals/xmas/states.txt -- cgit v1.2.3-60-g2f50