diff options
author | Vincent Petithory <vincent.petithory@gmail.com> | 2013-02-21 15:24:05 +0100 |
---|---|---|
committer | Vincent Petithory <vincent.petithory@gmail.com> | 2013-02-21 15:24:05 +0100 |
commit | 9a2ba51055c6358383f1b310747084dd078212c3 (patch) | |
tree | fa945790e7f5203d457aa7582e689d4bf1b9dd9c /world/map | |
parent | 8f4e9f1cf093f8cca139cebc6b8a5130dab53898 (diff) | |
download | serverdata-9a2ba51055c6358383f1b310747084dd078212c3.tar.gz serverdata-9a2ba51055c6358383f1b310747084dd078212c3.tar.bz2 serverdata-9a2ba51055c6358383f1b310747084dd078212c3.tar.xz serverdata-9a2ba51055c6358383f1b310747084dd078212c3.zip |
require_stat script: do not force unequip anymore:
* Using unequipbyid was causing a temporary x2 bonus on most stats
of the player, which appeared to be exploitable in one case.
* Fallback on keeping the item equiped but do not activate its bonuses.
Diffstat (limited to 'world/map')
-rw-r--r-- | world/map/npc/items/require_stat.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt index e1d6306f..87fd9d72 100644 --- a/world/map/npc/items/require_stat.txt +++ b/world/map/npc/items/require_stat.txt @@ -21,7 +21,7 @@ function|script|RequireStat|{ if (@bStat$ == "Luk") set @bStatVal, readParam(bLuk); if (@bStatVal >= @minbStatVal) return; - message strcharinfo(0), "You do not see how to use this item properly."; - unequipbyid @slotId; + // If the requirement isn't met, then we end the script. + // Hence, subsequent item modifiers won't be applied. end; } |