diff options
Diffstat (limited to 'world/map/npc/functions/vault.txt')
-rw-r--r-- | world/map/npc/functions/vault.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/world/map/npc/functions/vault.txt b/world/map/npc/functions/vault.txt new file mode 100644 index 00000000..6290d8d9 --- /dev/null +++ b/world/map/npc/functions/vault.txt @@ -0,0 +1,33 @@ +// Mirror Lake Protocol and The Mana World Vault utilities +// TMWA is hopelessy broken, so most helpers simply don't exist. +// +// Author: jesusalva + +function|script|VaultLogin +{ + if (##VAULT < 1) goto L_Return; + + callsub S_Exp; + callsub S_Gold; + + return; // go back to global handler + +S_Return: // this is to end execution of a sub + return; + +L_Return: + return; + +S_Exp: + if (##ADD_LVL < 1) goto S_Return; + getexp ##ADD_LVL, 0; + set ##ADD_LVL, 0; + return; + +S_Gold: + if (##ADD_GP < 1) goto S_Return; + set Zeny, Zeny + ##ADD_GP; + set ##ADD_GP, 0; + return; +} + |