diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-04 11:19:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-04 11:19:32 -0300 |
commit | 386ee92c7a56653d0a1d478964e5dc63e3cc1244 (patch) | |
tree | 3e4a810ba323e28cfda550dc5163e1d2f6f5699b | |
parent | 356d8c4e0937adccd43b12679fa9edf1e35d1a63 (diff) | |
download | serverdata-386ee92c7a56653d0a1d478964e5dc63e3cc1244.tar.gz serverdata-386ee92c7a56653d0a1d478964e5dc63e3cc1244.tar.bz2 serverdata-386ee92c7a56653d0a1d478964e5dc63e3cc1244.tar.xz serverdata-386ee92c7a56653d0a1d478964e5dc63e3cc1244.zip |
Restore Orby's Iron Quiver, and assign a bonus for the downtime
-rw-r--r-- | npc/functions/clientversion.txt | 10 |
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. |