diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-18 15:05:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-18 15:05:32 -0300 |
commit | c9173a4e2e55b0fdf4df0d99920c556548a81e4b (patch) | |
tree | 885d66f5e10289843fa71a4316fe49a454c47c01 /npc/magic/mkpot.txt | |
parent | 9222961a0b3b38aee2f01a1d53c8a08e174488e2 (diff) | |
parent | 7c8417bb63afb65516852da1b9eb8ff0b4d2877f (diff) | |
download | serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.tar.gz serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.tar.bz2 serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.tar.xz serverdata-c9173a4e2e55b0fdf4df0d99920c556548a81e4b.zip |
Merge branch 'master' into testserver
Conflicts solved with -X theirs
Diffstat (limited to 'npc/magic/mkpot.txt')
-rw-r--r-- | npc/magic/mkpot.txt | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/npc/magic/mkpot.txt b/npc/magic/mkpot.txt deleted file mode 100644 index 576de7ebc..000000000 --- a/npc/magic/mkpot.txt +++ /dev/null @@ -1,70 +0,0 @@ -// TMW2 script -// Author: Jesusalva <admin@tmw2.org> -// -// Magic Script: TMW2_MKPOT -// -// Attempts to make a haste potion from Mouboo Milk and Plushroom. -// May make sewer water on failure. -// 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#mkpot 32767,{ - end; - -/* -OnFriendlyDeath: - emote 4; - end; -*/ - -OnCall: - // Other requeriments - if (countitem(Plushroom) < 10 || !countitem(Milk)) { - dispbottom l("You need @@ @@ and @@ to cast this skill.", 10, getitemlink(Plushroom), getitemlink(Milk)); - end; - } - - // Check cooldown - if (@mkpot_at > gettimetick(2)) { - dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@mkpot_at)); - end; - } - - // Check requisites - if (!MagicCheck(TMW2_MKPOT, 185, -5)) - end; - - // Consume items - delitem Plushroom, 10; - delitem Milk, 1; - - // Create the stuff based on MAGIC_EXP - // The closer to zero, best; - // Each 3 mexp reduces chance to get a fail - // Each skill level reduces chances to get a fail - .@r=rand(141,181)-(MAGIC_EXP/3)-getskilllv(TMW2_MKPOT); - if (.@r < 21) { - // Get up to 6 Haste Potions depending on your skill. - getitem HastePotion, abizit()+1; - } else if (.@r < 82) { - getitem any(BottleOfTonoriWater, BottleOfWoodlandWater, BottleOfDivineWater, Milk, CelestiaTea, PileOfAsh), 1; - } else if (.@r < 122) { - getitem any(BottleOfSewerWater, Milk, CelestiaTea, PileOfAsh), 1; - } else if (.@r < 162) { - getitem any(BottleOfSewerWater, BottleOfSewerWater, PileOfAsh), 1; - } else { - dispbottom l("Your items vanishes into thin air. What?!"); - } - - // set cooldown - @mkpot_at=gettimetick(2); - @mkpot_at=@mkpot_at+6; - - // Get a few mana experience points (this is NOT used by Mana Stone) - GetManaExp(TMW2_MKPOT, rand(4,11)); - end; - -OnInit: - bindatcmd "sk-mkpot", "sk#mkpot::OnCall", 0, 100, 0; - end; -} |