diff options
author | Wushin <pasekei@gmail.com> | 2015-04-30 01:13:05 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-04-30 01:13:05 -0500 |
commit | e690bdd30e3e4bc7ddabbb24a362d8f698f291e0 (patch) | |
tree | 220aa71fc82b72652f44c298cc77387fdb9eb426 /world/map/npc/items | |
parent | 49b17a120e1b9ae26ef3039219051745ff46e913 (diff) | |
parent | 6df037322b925220dd503746692200b9aff5d2d4 (diff) | |
download | serverdata-e690bdd30e3e4bc7ddabbb24a362d8f698f291e0.tar.gz serverdata-e690bdd30e3e4bc7ddabbb24a362d8f698f291e0.tar.bz2 serverdata-e690bdd30e3e4bc7ddabbb24a362d8f698f291e0.tar.xz serverdata-e690bdd30e3e4bc7ddabbb24a362d8f698f291e0.zip |
Merge pull request #332 from mekolat/getparam
remove deprecated readparam & statusup2
Diffstat (limited to 'world/map/npc/items')
-rw-r--r-- | world/map/npc/items/require_stat.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt index 40200ea9..87ecf22a 100644 --- a/world/map/npc/items/require_stat.txt +++ b/world/map/npc/items/require_stat.txt @@ -4,23 +4,20 @@ // This is passed automagically when called in an equip script. // @bStat The stat to check against. // Usually one of: bStr, bAgi, bVit, bInt, bDex, bLuk; -// but can be anything that works with readparam(). +// but can be anything that works with . // @minbStatVal The minimum stat value to accept this item. // ------------------------------------------------------------ function|script|RequireStat { - set @bStatVal, readparam(@bStat); + set @bStatVal, @bStat; // If the requirement isn't met, we set an unequip trigger. // The item is now removed. - if (@bStatVal < @minbStatVal) + if (@bStat < @minbStatVal) goto L_Unequip; - goto L_Return; + return; L_Unequip: callfunc "UnequipLater"; - goto L_Return; - -L_Return: return; } |