diff options
author | Wushin <pasekei@gmail.com> | 2014-10-23 22:27:15 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2014-10-23 22:27:15 -0500 |
commit | 0fd39e45130a82328e8e1e1f2b8d6bcc46b9151c (patch) | |
tree | c9d14968b6ab6594225e64bc1a8ed1a3dcf048d7 /world/map/npc/functions/clear_vars.txt | |
parent | 15173eeab346c9305436f1e6e2fb30285a610025 (diff) | |
parent | 6403fda71f2788b0cd18405503e718ace09f034f (diff) | |
download | serverdata-0fd39e45130a82328e8e1e1f2b8d6bcc46b9151c.tar.gz serverdata-0fd39e45130a82328e8e1e1f2b8d6bcc46b9151c.tar.bz2 serverdata-0fd39e45130a82328e8e1e1f2b8d6bcc46b9151c.tar.xz serverdata-0fd39e45130a82328e8e1e1f2b8d6bcc46b9151c.zip |
Merge pull request #145 from mekolat/noobskills
allow noobs to use basic skills
Diffstat (limited to 'world/map/npc/functions/clear_vars.txt')
-rw-r--r-- | world/map/npc/functions/clear_vars.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/world/map/npc/functions/clear_vars.txt b/world/map/npc/functions/clear_vars.txt index 289b7a75..0a0247b7 100644 --- a/world/map/npc/functions/clear_vars.txt +++ b/world/map/npc/functions/clear_vars.txt @@ -2,7 +2,7 @@ function|script|ClearVariables|, { - // Tutorial + // Tutorial if ((TUTORIAL) || (sorfina)) goto L_ResetTut; goto L_Heathin; @@ -231,7 +231,7 @@ L_Easter: if (#BankAccount < 0) goto L_FixBank; - return; + goto L_Fix_Skills; L_FixBank: if (Zeny >= -#BankAccount) @@ -240,11 +240,20 @@ L_FixBank: // Partial fix set #BankAccount, #BankAccount + Zeny; set Zeny, 0; - return; + goto L_Fix_Skills; L_Fix_Full: set Zeny, Zeny + #BankAccount; set #BankAccount, 0; + goto L_Fix_Skills; + +L_Fix_Skills: + if(getskilllv(SKILL_TRADE) > 0) setskill SKILL_TRADE, 0; + if(getskilllv(SKILL_PARTY) > 0) setskill SKILL_PARTY, 0; + if(getskilllv(SKILL_EMOTE) > 0) setskill SKILL_EMOTE, 0; + goto L_Return; + +L_Return: return; } |