diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-21 14:37:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-21 14:37:28 -0300 |
commit | b33261ac0a948f624fc94c1d1b8149ddaa59bef7 (patch) | |
tree | c67f16dabdde5daa8daa5a1de5b49a916fc7ecab /npc/magic/parum.txt | |
parent | 001bd1a26ee8ee0c70ecc9f1d0761d707727707a (diff) | |
download | serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.tar.gz serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.tar.bz2 serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.tar.xz serverdata-b33261ac0a948f624fc94c1d1b8149ddaa59bef7.zip |
Rewrite Parum
Diffstat (limited to 'npc/magic/parum.txt')
-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: |