From 9a2ba51055c6358383f1b310747084dd078212c3 Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Thu, 21 Feb 2013 15:24:05 +0100 Subject: 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. --- world/map/npc/items/require_stat.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'world/map/npc/items') 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; } -- cgit v1.2.3-60-g2f50