summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authormekolat <mekolat@gmail.com>2014-10-22 15:41:11 -0400
committermekolat <mekolat@gmail.com>2014-10-22 15:58:46 -0400
commit6403fda71f2788b0cd18405503e718ace09f034f (patch)
tree99eb56d559ff5c288379d138ab59051d843aa51d /world/map/npc/functions
parent50e70491ff4595f299ee737f68d718175597e08d (diff)
downloadserverdata-6403fda71f2788b0cd18405503e718ace09f034f.tar.gz
serverdata-6403fda71f2788b0cd18405503e718ace09f034f.tar.bz2
serverdata-6403fda71f2788b0cd18405503e718ace09f034f.tar.xz
serverdata-6403fda71f2788b0cd18405503e718ace09f034f.zip
remove basic skills
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/clear_vars.txt15
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;
}