From b36b376a4781a869c4bb3b1dd75b150a5d9ff481 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jun 2020 01:31:36 -0300 Subject: Increase LAST_SKILL range to 5 slots --- npc/config/magic.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'npc/config') diff --git a/npc/config/magic.txt b/npc/config/magic.txt index b5845b07d..21fb15e7f 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -45,7 +45,14 @@ function script GetManaExp { .@pt=limit(0, (.@pt+.@bonus)/3, 1); .@bonus=0; } - LAST_SKILL=.@sk; + // Update skill memory + LAST_SKILL[4]=LAST_SKILL[3] + LAST_SKILL[3]=LAST_SKILL[2] + LAST_SKILL[2]=LAST_SKILL[1] + LAST_SKILL[1]=LAST_SKILL[0] + LAST_SKILL[0]=.@sk; + + // Update Magic EXP MAGIC_EXP=MAGIC_EXP+.@pt+.@bonus; return; } -- cgit v1.2.3-60-g2f50