diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-22 22:16:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-22 22:16:35 -0300 |
commit | d69c31c13bc2c6a5f6d56caa8352aa2657aab762 (patch) | |
tree | beed3839bc66afaf63d1c53279f91bb03887a272 /npc/functions | |
parent | 0848de549e73575078ba90a4af20b045b0b5301c (diff) | |
download | serverdata-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/functions')
-rw-r--r-- | npc/functions/vault.txt | 20 |
1 files changed, 20 insertions, 0 deletions
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; +} + + |