summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/re/skill_db.conf3
-rw-r--r--npc/commands/event.txt13
-rw-r--r--npc/functions/hub.txt3
3 files changed, 13 insertions, 6 deletions
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index 194da21d7..19a08f304 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38674,8 +38674,9 @@ skill_db: (
{
Id: 20032
Name: "TMW2_FAKESKILL2"
- Description: "Fake Skill Lang"
+ Description: "Fake Skill Event"
MaxLevel: 1
+ CoolDown: 4000
SkillType: {
Self: true
}
diff --git a/npc/commands/event.txt b/npc/commands/event.txt
index 4982d85f1..61caed24b 100644
--- a/npc/commands/event.txt
+++ b/npc/commands/event.txt
@@ -233,10 +233,7 @@ OnCall:
end;
}
-- script @toevent 32767,{
- end;
-
-OnCall:
+function script CMD_toevent {
if (!@toeventchk) {
@toeventval1=readparam(Hp);
@toeventval2=readparam(Sp);
@@ -244,6 +241,14 @@ OnCall:
specialeffect FX_CIRCLE, SELF, getcharid(3);
addtimer 4000, "@toevent::OnEffect";
}
+ return;
+}
+
+- script @toevent 32767,{
+ end;
+
+OnCall:
+ CMD_toevent();
end;
OnEffect:
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index d5dfb9dae..2a844f5f6 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -184,7 +184,8 @@ function script HUB_SkillInvoke {
atcommand("@refresh");
break;
case TMW2_FAKESKILL2:
- CMD_lang(); next; closeclientdialog;
+ //CMD_lang(); next; closeclientdialog;
+ CMD_toevent();
break;
}