diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-06-04 01:02:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-06-04 01:02:47 -0300 |
commit | 050af2325caf46c264025188c2a9cbbc6cb1f6ed (patch) | |
tree | 29bafd9fe211c6028fcce2ca7c3251d5dcb6ece6 /npc/functions | |
parent | c70bc85bbf301065db437c6c30d26d7d6afb65b7 (diff) | |
download | serverdata-050af2325caf46c264025188c2a9cbbc6cb1f6ed.tar.gz serverdata-050af2325caf46c264025188c2a9cbbc6cb1f6ed.tar.bz2 serverdata-050af2325caf46c264025188c2a9cbbc6cb1f6ed.tar.xz serverdata-050af2325caf46c264025188c2a9cbbc6cb1f6ed.zip |
Add random treasure chests which can be relocated on random mazes.
They come with a 1.5% bonus chance of getting something good.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/maze.txt | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/npc/functions/maze.txt b/npc/functions/maze.txt index 27c026c4f..c1a8d86d1 100644 --- a/npc/functions/maze.txt +++ b/npc/functions/maze.txt @@ -192,3 +192,90 @@ function script RenewMaze { 030-74 mapflag zone MMO 030-75 mapflag zone MMO +///////////////////////////////////////////////////////////////////////////////// +// Add Treasure chests +030-01,0,0,0 script #T_030-01 NPC_CHEST,{ + if (!reachable(.x, .y, 3)) end; + callfunc "TreasureBox", 150; // 1.5% extra chance + specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing + close; +OnInit: + .distance=3; + end; +} + +030-02,0,0,0 duplicate(#T_030-01) #T_030-02 NPC_CHEST +030-03,0,0,0 duplicate(#T_030-01) #T_030-03 NPC_CHEST +030-04,0,0,0 duplicate(#T_030-01) #T_030-04 NPC_CHEST +030-05,0,0,0 duplicate(#T_030-01) #T_030-05 NPC_CHEST +030-06,0,0,0 duplicate(#T_030-01) #T_030-06 NPC_CHEST +030-07,0,0,0 duplicate(#T_030-01) #T_030-07 NPC_CHEST +030-08,0,0,0 duplicate(#T_030-01) #T_030-08 NPC_CHEST +030-09,0,0,0 duplicate(#T_030-01) #T_030-09 NPC_CHEST +030-10,0,0,0 duplicate(#T_030-01) #T_030-10 NPC_CHEST +030-11,0,0,0 duplicate(#T_030-01) #T_030-11 NPC_CHEST +030-12,0,0,0 duplicate(#T_030-01) #T_030-12 NPC_CHEST +030-13,0,0,0 duplicate(#T_030-01) #T_030-13 NPC_CHEST +030-14,0,0,0 duplicate(#T_030-01) #T_030-14 NPC_CHEST +030-15,0,0,0 duplicate(#T_030-01) #T_030-15 NPC_CHEST +030-16,0,0,0 duplicate(#T_030-01) #T_030-16 NPC_CHEST +030-17,0,0,0 duplicate(#T_030-01) #T_030-17 NPC_CHEST +030-18,0,0,0 duplicate(#T_030-01) #T_030-18 NPC_CHEST +030-19,0,0,0 duplicate(#T_030-01) #T_030-19 NPC_CHEST +030-20,0,0,0 duplicate(#T_030-01) #T_030-20 NPC_CHEST +030-21,0,0,0 duplicate(#T_030-01) #T_030-21 NPC_CHEST +030-22,0,0,0 duplicate(#T_030-01) #T_030-22 NPC_CHEST +030-23,0,0,0 duplicate(#T_030-01) #T_030-23 NPC_CHEST +030-24,0,0,0 duplicate(#T_030-01) #T_030-24 NPC_CHEST +030-25,0,0,0 duplicate(#T_030-01) #T_030-25 NPC_CHEST +030-26,0,0,0 duplicate(#T_030-01) #T_030-26 NPC_CHEST +030-27,0,0,0 duplicate(#T_030-01) #T_030-27 NPC_CHEST +030-28,0,0,0 duplicate(#T_030-01) #T_030-28 NPC_CHEST +030-29,0,0,0 duplicate(#T_030-01) #T_030-29 NPC_CHEST +030-30,0,0,0 duplicate(#T_030-01) #T_030-30 NPC_CHEST +030-31,0,0,0 duplicate(#T_030-01) #T_030-31 NPC_CHEST +030-32,0,0,0 duplicate(#T_030-01) #T_030-32 NPC_CHEST +030-33,0,0,0 duplicate(#T_030-01) #T_030-33 NPC_CHEST +030-34,0,0,0 duplicate(#T_030-01) #T_030-34 NPC_CHEST +030-35,0,0,0 duplicate(#T_030-01) #T_030-35 NPC_CHEST +030-36,0,0,0 duplicate(#T_030-01) #T_030-36 NPC_CHEST +030-37,0,0,0 duplicate(#T_030-01) #T_030-37 NPC_CHEST +030-38,0,0,0 duplicate(#T_030-01) #T_030-38 NPC_CHEST +030-39,0,0,0 duplicate(#T_030-01) #T_030-39 NPC_CHEST +030-40,0,0,0 duplicate(#T_030-01) #T_030-40 NPC_CHEST +030-41,0,0,0 duplicate(#T_030-01) #T_030-41 NPC_CHEST +030-42,0,0,0 duplicate(#T_030-01) #T_030-42 NPC_CHEST +030-43,0,0,0 duplicate(#T_030-01) #T_030-43 NPC_CHEST +030-44,0,0,0 duplicate(#T_030-01) #T_030-44 NPC_CHEST +030-45,0,0,0 duplicate(#T_030-01) #T_030-45 NPC_CHEST +030-46,0,0,0 duplicate(#T_030-01) #T_030-46 NPC_CHEST +030-47,0,0,0 duplicate(#T_030-01) #T_030-47 NPC_CHEST +030-48,0,0,0 duplicate(#T_030-01) #T_030-48 NPC_CHEST +030-49,0,0,0 duplicate(#T_030-01) #T_030-49 NPC_CHEST +030-50,0,0,0 duplicate(#T_030-01) #T_030-50 NPC_CHEST +030-51,0,0,0 duplicate(#T_030-01) #T_030-51 NPC_CHEST +030-52,0,0,0 duplicate(#T_030-01) #T_030-52 NPC_CHEST +030-53,0,0,0 duplicate(#T_030-01) #T_030-53 NPC_CHEST +030-54,0,0,0 duplicate(#T_030-01) #T_030-54 NPC_CHEST +030-55,0,0,0 duplicate(#T_030-01) #T_030-55 NPC_CHEST +030-56,0,0,0 duplicate(#T_030-01) #T_030-56 NPC_CHEST +030-57,0,0,0 duplicate(#T_030-01) #T_030-57 NPC_CHEST +030-58,0,0,0 duplicate(#T_030-01) #T_030-58 NPC_CHEST +030-59,0,0,0 duplicate(#T_030-01) #T_030-59 NPC_CHEST +030-60,0,0,0 duplicate(#T_030-01) #T_030-60 NPC_CHEST +030-61,0,0,0 duplicate(#T_030-01) #T_030-61 NPC_CHEST +030-62,0,0,0 duplicate(#T_030-01) #T_030-62 NPC_CHEST +030-63,0,0,0 duplicate(#T_030-01) #T_030-63 NPC_CHEST +030-64,0,0,0 duplicate(#T_030-01) #T_030-64 NPC_CHEST +030-65,0,0,0 duplicate(#T_030-01) #T_030-65 NPC_CHEST +030-66,0,0,0 duplicate(#T_030-01) #T_030-66 NPC_CHEST +030-67,0,0,0 duplicate(#T_030-01) #T_030-67 NPC_CHEST +030-68,0,0,0 duplicate(#T_030-01) #T_030-68 NPC_CHEST +030-69,0,0,0 duplicate(#T_030-01) #T_030-69 NPC_CHEST +030-70,0,0,0 duplicate(#T_030-01) #T_030-70 NPC_CHEST +030-71,0,0,0 duplicate(#T_030-01) #T_030-71 NPC_CHEST +030-72,0,0,0 duplicate(#T_030-01) #T_030-72 NPC_CHEST +030-73,0,0,0 duplicate(#T_030-01) #T_030-73 NPC_CHEST +030-74,0,0,0 duplicate(#T_030-01) #T_030-74 NPC_CHEST +030-75,0,0,0 duplicate(#T_030-01) #T_030-75 NPC_CHEST + |