From 6403fda71f2788b0cd18405503e718ace09f034f Mon Sep 17 00:00:00 2001 From: mekolat Date: Wed, 22 Oct 2014 15:41:11 -0400 Subject: remove basic skills --- world/map/npc/functions/clear_vars.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'world/map/npc/functions/clear_vars.txt') 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; } -- cgit v1.2.3-60-g2f50