summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/clientversion.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index c6f8d08a5..3bd546ff9 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -642,7 +642,15 @@ function script clientupdater {
getitem TitaniumOre, countitem(LeatherQuiver)*3;
dispbottom l("Titanium Ore refunded on Leather Quiver update.");
}
-
+ // Orby's fix
+ if (strcharinfo(0) == "Orby") {
+ delinventorylist(); // Needed, because we'll rely on rfind()
+ getinventorylist();
+ .@index=array_rfind(@inventorylist_id, IronQuiver);
+ setitemoptionbyindex(.@index, 0, VAR_VITAMOUNT, 1);
+ setitemoptionbyindex(.@index, 0, IOPT_RICHNESS, 1);
+ dispbottom l("Iron Quiver stats restored");
+ }
}
// #ADD_LVL means the user have to right to get some levels. This is a sketch. The code might be deleted.