summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt20
1 files changed, 20 insertions, 0 deletions
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 {