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