summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2013-02-21 15:24:05 +0100
committerVincent Petithory <vincent.petithory@gmail.com>2013-02-21 15:24:05 +0100
commit9a2ba51055c6358383f1b310747084dd078212c3 (patch)
treefa945790e7f5203d457aa7582e689d4bf1b9dd9c
parent8f4e9f1cf093f8cca139cebc6b8a5130dab53898 (diff)
downloadclassic-serverdata-9a2ba51055c6358383f1b310747084dd078212c3.tar.gz
classic-serverdata-9a2ba51055c6358383f1b310747084dd078212c3.tar.bz2
classic-serverdata-9a2ba51055c6358383f1b310747084dd078212c3.tar.xz
classic-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.
-rw-r--r--world/map/npc/items/require_stat.txt4
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;
}