blob: 6290d8d92ef290f3974b03b725cb70b6592f17a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}
|