diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-11 17:01:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-11 17:01:29 -0300 |
commit | d6f939f0072cac5d8988a0a7f67d39a048f77194 (patch) | |
tree | 373a67243da31cca00c22158e8f4149dcc768776 /npc/functions/math.txt | |
parent | b10f74c33d3d6021f26b31ba4ce6a030ee6c1609 (diff) | |
parent | 1a51dc5fb3d0f3525e48bb255500d665ed5f93b4 (diff) | |
download | serverdata-jesusalva/feather.tar.gz serverdata-jesusalva/feather.tar.bz2 serverdata-jesusalva/feather.tar.xz serverdata-jesusalva/feather.zip |
Merge branch 'master' into jesusalva/featherjesusalva/feather
Diffstat (limited to 'npc/functions/math.txt')
-rw-r--r-- | npc/functions/math.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/math.txt b/npc/functions/math.txt index 004125c7..357407da 100644 --- a/npc/functions/math.txt +++ b/npc/functions/math.txt @@ -2,6 +2,7 @@ // Authors: // 4144 // Reid +// Jesusalva // Description: // Math functions @@ -38,3 +39,12 @@ function script lognbaselvl { return .@ret; } + + +// result is: lower < target <= higher +// is_between ( lower, higher, target) +function script is_between { + .@val=getarg(2); + return (getarg(0) < .@val && getarg(1) >= .@val); +} + |