diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-17 08:15:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-17 08:15:11 -0300 |
commit | 823e2d87ca21659bf43f6ecc7550eba4a7eeae31 (patch) | |
tree | 822bdca901c50702fa84fb63cf8098c547b92670 /npc | |
parent | 96ab076d401edb3fe9a11575d4a19687bf04f59f (diff) | |
download | serverdata-823e2d87ca21659bf43f6ecc7550eba4a7eeae31.tar.gz serverdata-823e2d87ca21659bf43f6ecc7550eba4a7eeae31.tar.bz2 serverdata-823e2d87ca21659bf43f6ecc7550eba4a7eeae31.tar.xz serverdata-823e2d87ca21659bf43f6ecc7550eba4a7eeae31.zip |
Register how many skills were used for analysis
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-3/malindou.txt | 5 | ||||
-rw-r--r-- | npc/functions/hub.txt | 6 | ||||
-rw-r--r-- | npc/test/npc1.txt | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index ceae44ac3..7791035de 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -511,6 +511,11 @@ OnInit: //htput($@CONTRIBUTORS, "", 1); end; +// This is for HUB +OnSkillInvoke: + HUB_SkillInvoke(); + end; + // Level up events OnPCBaseLvUpEvent: switch (BaseLevel) { diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 1c698764f..cd7997848 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -169,3 +169,9 @@ function script HUB_Logout { return; } +// HUB_SkillInvoke ( ) +function script HUB_SkillInvoke { + skillInvoke[@skillId] = skillInvoke[@skillId] + 1; + return; + +} diff --git a/npc/test/npc1.txt b/npc/test/npc1.txt index b04d2e1c1..002857dc8 100644 --- a/npc/test/npc1.txt +++ b/npc/test/npc1.txt @@ -715,10 +715,6 @@ OnWhisperGlobal: mes "cmd: " + @whispervar0$; close; -OnSkillInvoke: - skillInvoke[@skillId] = skillInvoke[@skillId] + 1; - end; - OnReadyCheck: debugmes "OnReadyCheck"; $@bgid1 = waitingroom2bg("testbg", 10, 10, "bgnpc1::OnLogout","bgnpc1:OnDie"); |