Skip to content

Commit

Permalink
require_stat script: do not force unequip anymore:
Browse files Browse the repository at this point in the history
 * 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.
  • Loading branch information
vincent-petithory committed Feb 21, 2013
1 parent 8f4e9f1 commit 9a2ba51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions world/map/npc/items/require_stat.txt
Expand Up @@ -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;
}

0 comments on commit 9a2ba51

Please sign in to comment.