diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-30 10:25:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-30 10:25:53 -0300 |
commit | 2732854aaf11732545e40144bec36c92ab1ced85 (patch) | |
tree | ae739d26a7e2b9b9efd222aa1d5a88c15134ec3d /npc/functions | |
parent | e42d77c7a2375b4849f7f81378dbef77c05e4c4c (diff) | |
download | serverdata-2732854aaf11732545e40144bec36c92ab1ced85.tar.gz serverdata-2732854aaf11732545e40144bec36c92ab1ced85.tar.bz2 serverdata-2732854aaf11732545e40144bec36c92ab1ced85.tar.xz serverdata-2732854aaf11732545e40144bec36c92ab1ced85.zip |
Replace HVAN_CAPRICE with TMW2_CAPRICE
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/hub.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index add706461..b9817f18a 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -388,6 +388,15 @@ function script HUB_SkillInvoke { sc_end SC_BLIND; sc_start SC_CURSE, rand2(3500, 5000), 1, 10000, SCFLAG_NONE, @skillCaster; break; + case TMW2_CAPRICE: + .@gid = @skillCaster; // gethominfo(0); + .@ak1 = getunitdata(.@gid, UDT_MATKMIN); + .@ak2 = getunitdata(.@gid, UDT_MATKMAX); + for (.@i=0; .@i < limit(1, @skillLv, 10); .@i++) { + harm(@skillTarget, rand2(.@ak1, .@ak2), HARM_MAGI, any(Ele_Fire, Ele_Water, Ele_Wind, Ele_Earth), .@gid); + sleep2(100); + } + break; } return; } |