summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-22 22:16:35 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-22 22:16:35 -0300
commitd69c31c13bc2c6a5f6d56caa8352aa2657aab762 (patch)
treebeed3839bc66afaf63d1c53279f91bb03887a272 /npc
parent0848de549e73575078ba90a4af20b045b0b5301c (diff)
downloadserverdata-d69c31c13bc2c6a5f6d56caa8352aa2657aab762.tar.gz
serverdata-d69c31c13bc2c6a5f6d56caa8352aa2657aab762.tar.bz2
serverdata-d69c31c13bc2c6a5f6d56caa8352aa2657aab762.tar.xz
serverdata-d69c31c13bc2c6a5f6d56caa8352aa2657aab762.zip
Add getvaultexp() function and assign 20 Soul EXP each rebirth.
Moubootaur Legends has used 100 Soul EXP out of 500 possible.
Diffstat (limited to 'npc')
-rw-r--r--npc/025-1/phoenix.txt1
-rw-r--r--npc/functions/vault.txt20
-rw-r--r--npc/scripts.conf1
3 files changed, 22 insertions, 0 deletions
diff --git a/npc/025-1/phoenix.txt b/npc/025-1/phoenix.txt
index 1a380f331..5cc7df6d1 100644
--- a/npc/025-1/phoenix.txt
+++ b/npc/025-1/phoenix.txt
@@ -116,6 +116,7 @@
REBIRTH_OVERLEVEL=max(0, BaseLevel-.@blvl-(REBIRTH_OVERLEVEL/REBIRTH));
resetlvl(3);
NewcomerEXPDROPUP();
+ getvaultexp(20);
getitembound SupremeGift, 1, 4;
warp "005-1", 40, 117;
LOCATION$="Candor";
diff --git a/npc/functions/vault.txt b/npc/functions/vault.txt
new file mode 100644
index 000000000..55ae5ae9f
--- /dev/null
+++ b/npc/functions/vault.txt
@@ -0,0 +1,20 @@
+// TMW-2 Script
+// Author:
+// Jesusalva
+// Description:
+// Vault Utilities
+
+function script getvaultexp {
+ .@exp=getarg(0);
+ if (.@exp > 100)
+ Exception("ILLEGAL VAULT EXPERIENCE, FIXME URGENTLY. STOPPING SCRIPT BY FORCE WHILE DOING NOTHING.",
+ RB_DEBUGMES | RB_IRCBROADCAST | RB_GLOBALANNOUNCE | RB_ISFATAL);
+ if (##VAULT) {
+ ##VAULT_EXP+=.@exp;
+ debugmes("Granting %d Soul Exp to %d under the Moubootaur's authority.",
+ .@exp, ##VAULT);
+ }
+ return;
+}
+
+
diff --git a/npc/scripts.conf b/npc/scripts.conf
index aad39c382..e10a2ac27 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -7,6 +7,7 @@
"npc/functions/array.txt",
"npc/functions/bitwise.txt",
"npc/functions/math.txt",
+"npc/functions/vault.txt",
"npc/functions/util.txt",
// General-purpose Framework functions