From 884d6f1121a6b75a79882a47cfdb743f36ab005e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 11 Sep 2019 00:05:13 -0300 Subject: Make @shroom arguments optional --- npc/commands/shroom.txt | 10 ++++++++++ npc/functions/clientversion.txt | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/commands/shroom.txt b/npc/commands/shroom.txt index 635cfc554..79bab470d 100644 --- a/npc/commands/shroom.txt +++ b/npc/commands/shroom.txt @@ -11,6 +11,16 @@ OnShroom: .@mobAm=atoi(array_shift(.@atcmd_parameters$)); .@mobName$=implode(.@atcmd_parameters$, " "); + // Checks + if (!.@mobId) + .@mobId=Plushroom; + + if (!.@mobAm) + .@mobAm=1; + + if (.@mobName$ == "") + .@mobName$=strmobinfo(1, .@mobId); + //.@gmType=(Sex ? NPC_GAMEMASTER : NPC_GAMEMISTRESS); .@gmType=(Sex ? GameMaster : GameMistress); .@gmId=monster("boss", 45, 45, strcharinfo(0), .@gmType, 1); diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 520987756..bdae5759b 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -655,7 +655,7 @@ function script clientupdater { getinventorylist(); .@index=array_rfind(@inventorylist_id, IronQuiver); setitemoptionbyindex(.@index, 0, VAR_VITAMOUNT, 1); - setitemoptionbyindex(.@index, 0, IOPT_RICHNESS, 1); + setitemoptionbyindex(.@index, 1, IOPT_RICHNESS, 1); dispbottom l("Iron Quiver stats restored"); // As Orby is Hurnscald Mayor for this term, fix Hurnscald .@df=$HURNS_TAX-100; -- cgit v1.2.3-70-g09d2