diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-14 11:53:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-14 11:53:55 -0300 |
commit | e33967ae6a9f5b4da37b1175c5e0b909ec501cdb (patch) | |
tree | e307b61054ccfa4e1afbcfce5b97f21178ddd689 /npc/functions | |
parent | 81223843ed6c3e773af5235aae19c23d7a00354a (diff) | |
download | serverdata-e33967ae6a9f5b4da37b1175c5e0b909ec501cdb.tar.gz serverdata-e33967ae6a9f5b4da37b1175c5e0b909ec501cdb.tar.bz2 serverdata-e33967ae6a9f5b4da37b1175c5e0b909ec501cdb.tar.xz serverdata-e33967ae6a9f5b4da37b1175c5e0b909ec501cdb.zip |
Test and fix some stuff (mana exp and support still untested)
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/aurora.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 8e9c45800..00e1159e1 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -572,8 +572,9 @@ function script FYEConf_Olympics { // Modify Magic Skills function script FYE_Olympics_SK { if ($EVENT$ != "Olympics") return; + .@sk=getarg(0, @skillId); - .@sl=getarg(1, @skillLevel); + .@sl=max(getarg(1, @skillLv), 1); .@st=getarg(2, @skillTarget); .@cl = $@MSK_CLASS[.@sk]; @@ -595,6 +596,7 @@ function script FYE_Olympics_SK { .@sk != TMW2_TRANSMIGRATION && .@sk != TMW2_OVHFIRE) FYMOLY_SPAMMY += .@sl; + setq Q_AuroraEvent, getq2(Q_AuroraEvent) + rand2(.@sl + 1); return; } |