summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHello=) <hello@themanaworld.org>2025-07-02 04:53:27 +0300
committerHello=) <hello@themanaworld.org>2025-07-02 04:53:27 +0300
commitac37e443cb2c337570bddf90d9a27e2b5d88d559 (patch)
tree7bd3c5ad382ec19fecdb6421df6d17cf93a9af12
parentd6fcab7872a709f6978efb690dfa32b75d9a3c11 (diff)
downloadserverdata-storage-chests.tar.gz
serverdata-storage-chests.tar.bz2
serverdata-storage-chests.tar.xz
serverdata-storage-chests.zip
Add chests NPCs to open storage in banks.storage-chests
This adds chest NPC in all banks to improve usability. Now its possible to open player storage by just 1 mouse click or 2 key presses (N -> T by default) instead of clicking through some NPC dialogs. Idea by Thorbjorn.
-rw-r--r--world/map/npc/functions/storage_chests.txt18
-rw-r--r--world/map/npc/scripts.conf1
2 files changed, 19 insertions, 0 deletions
diff --git a/world/map/npc/functions/storage_chests.txt b/world/map/npc/functions/storage_chests.txt
new file mode 100644
index 00000000..1a603512
--- /dev/null
+++ b/world/map/npc/functions/storage_chests.txt
@@ -0,0 +1,18 @@
+// Storage Chests by Hello=). Idea by Thorbjorn.
+
+-|script|StorageChests|32767
+{
+ openstorage;
+ end;
+
+OnInit:
+// void intentional: even if puppet() fails, chests are just convenience.
+// Map X Y Name 111 = Chest
+ void (puppet("009-2", 21, 99, "Storage#hurns", 111));
+ void (puppet("020-2", 124, 63, "Storage#nivalis", 111));
+ void (puppet("001-2", 61, 17, "Storage#tulimshar", 111));
+ void (puppet("029-2", 29, 116, "Storage#candor", 111));
+ void (puppet("026-2", 26, 118, "Storage#GyInn", 111));
+ end;
+}
+
diff --git a/world/map/npc/scripts.conf b/world/map/npc/scripts.conf
index 66606bd8..a0aa5182 100644
--- a/world/map/npc/scripts.conf
+++ b/world/map/npc/scripts.conf
@@ -39,6 +39,7 @@ npc: npc/functions/global_event_handler.txt
npc: npc/functions/teleport_manager.txt
npc: npc/functions/treasure_hunt.txt
npc: npc/functions/spawns_on_mobkill.txt
+npc: npc/functions/storage_chests.txt
// Item Functions
npc: npc/items/purification_potion.txt