diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/hub.txt | 3 | ||||
-rw-r--r-- | npc/magic/parum.txt | 51 |
2 files changed, 20 insertions, 34 deletions
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: |