From b04e65c9404c658d7c00118e4b6615d005cba4cf Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 27 Aug 2018 20:22:25 -0300 Subject: Make Mana Stone requeriments more flexible and more obscure. Values are exactly the same as before, but we can now have some special, massive, hardcoded, risky events betting the Mana Fragments on it. Winning the event means easier to get magic: Less int required, for example. Losing the event means the opposite. Isn't cool how many cool things we can do? --- npc/functions/util.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'npc/functions/util.txt') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index ca1947df7..181f02ca0 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -248,6 +248,26 @@ function script party_expon { } +// Prepare Mana Stone +// mstone( lvl ) +function script mstone { + // Fill variable + .@v=getarg(0); + + // Determine how much stats you need, this is based on players + // and change based on $Global Variables + .int=15; + .lvl=20; + .jlv=15; + + return ( + MAGIC_LVL == .@v && + readparam(bInt) >= $MANA_BINT+(.int*.@v) && + BaseLevel >= $MANA_BLVL+(.lvl*.@v) && + JobLevel >= $MANA_JLVL+(.jlv*.@v) && + readparam(Sp) == readparam(MaxSp)); +} + // Gets how many subclasses were actually filled // total_subclass( ) function script total_subclass { -- cgit v1.2.3-60-g2f50