From 386ee92c7a56653d0a1d478964e5dc63e3cc1244 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 4 Sep 2019 11:19:32 -0300 Subject: Restore Orby's Iron Quiver, and assign a bonus for the downtime --- npc/functions/clientversion.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'npc') 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. -- cgit v1.2.3-70-g09d2