summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-21 14:37:28 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-21 14:37:28 -0300
commitb33261ac0a948f624fc94c1d1b8149ddaa59bef7 (patch)
treec67f16dabdde5daa8daa5a1de5b49a916fc7ecab
parent001bd1a26ee8ee0c70ecc9f1d0761d707727707a (diff)
downloadserverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.tar.gz
serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.tar.bz2
serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.tar.xz
serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.zip
Rewrite Parum
-rw-r--r--db/re/skill_db.conf7
-rw-r--r--npc/functions/hub.txt3
-rw-r--r--npc/magic/parum.txt51
3 files changed, 27 insertions, 34 deletions
diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf
index 24a5c10db..d55eb0980 100644
--- a/db/re/skill_db.conf
+++ b/db/re/skill_db.conf
@@ -38616,6 +38616,13 @@ skill_db: (
SkillInfo: {
Quest: true
}
+ CoolDown: 4000
+ Requirements: {
+ SPCost: 50
+ Items: {
+ RawLog: 1
+ }
+ }
},
{
Id: 20025
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index c72c1aec0..283bbb044 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -196,6 +196,9 @@ function script HUB_SkillInvoke {
case TMW2_ZARKOR:
SK_zarkor();
break;
+ case TMW2_PARUM:
+ SK_parum();
+ break;
case TMW2_KALMURK:
SK_summon(Maggot, 2, abizit()+1);
break;
diff --git a/npc/magic/parum.txt b/npc/magic/parum.txt
index d91dbd1b4..3b3c39a0b 100644
--- a/npc/magic/parum.txt
+++ b/npc/magic/parum.txt
@@ -11,35 +11,7 @@
// TODO: Using too much transmutation magic may have dire consequences! Like, uh, transmutating your head!
// Nah, it is probably just propaganda... I hope. ¬.¬
-- script sk#parum 32767,{
- end;
-
-/*
-OnFriendlyDeath:
- emote 4;
- end;
-*/
-
-OnCall:
- // Other requeriments
- if (countitem(RawLog) < 1) {
- dispbottom l("You need @@ to cast this skill.", getitemlink(RawLog));
- end;
- }
-
- // Check cooldown
- if (@parum_at > gettimetick(2)) {
- dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@parum_at));
- end;
- }
-
- // Check requisites
- if (!MagicCheck(TMW2_PARUM, 50))
- end;
-
- // Consume items
- delitem RawLog, 1;
-
+function script SK_parum {
// Create the stuff based on MAGIC_EXP
.@r=rand(1,41);
// Each 2 mexp reduces chance to get a fail
@@ -60,12 +32,23 @@ OnCall:
// Mouboo figurine. The other will be arrows, unless you hit the 82 MExp value
// which will add 25% chances to get a Wooden Log too. These values are estimate.
- // set cooldown
- @parum_at=gettimetick(2);
- @parum_at=@parum_at+4;
-
// Get a few mana experience points (this is NOT used by Mana Stone)
- GetManaExp(TMW2_PARUM, rand(1,3));
+ GetManaExp(TMW2_PARUM, rand2(1,3));
+ return;
+}
+
+- script sk#parum 32767,{
+ end;
+
+/*
+OnFriendlyDeath:
+ emote 4;
+ end;
+*/
+
+OnCall:
+ // Deprecated
+ dispbottom l("The usage of @sk-commands was deprecated");
end;
OnInit: