From 823e2d87ca21659bf43f6ecc7550eba4a7eeae31 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 17 Oct 2019 08:15:11 -0300 Subject: Register how many skills were used for analysis --- npc/003-3/malindou.txt | 5 +++++ npc/functions/hub.txt | 6 ++++++ 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"); -- cgit v1.2.3-60-g2f50