Full Version : Temp Quest Object Timer
xmlspawner >>XMLSpawner Feature Request's >>Temp Quest Object Timer
<< Prev | Next >>
Lord Hog Fred- 01-11-2007
Would it be possible for items with the TemporaryQuestObject attachment to show their time remaining in their property list?
Just a rough time would be nice if exact (or close to) can't be done, so even something like "5 mins remaining" "3 mins remaining" etc. Or even in seconds would be good, whatever is possible really
Thanks ,
ArteGordon- 01-11-2007
you mean so that players can see?
That is handled here

CODE
public override string OnIdentify(Mobile from) { if(from == null || from.AccessLevel == AccessLevel.Player) return null; if(Expiration > TimeSpan.Zero) {
return String.Format("{1} expires in {0} mins",Expiration.TotalMinutes, Name);
} else
{
return String.Format("{1}: QuestOwner {0}",QuestOwner, Name);
}
}

so staff will be able to see this info when they identify the object but players will not. If you want players to be able to get this information, just remove the AccessLevel == AccessLevel.Player test.
If you also want it to show up in the properties list, just remove the entire line

CODE
if(from == null || from.AccessLevel == AccessLevel.Player) return null;

Note that to have attachment info displayed in the properties list, you need to have performed installation step 11

QUOTE
STEP 11: (recommended but not required) To allow attachment properties on weapons/armor to be automatically displayed in the properties list on mouseover/click, these changes must be made to BaseWeapon.cs (Scripts/Items/Weapons/BaseWeapon.cs), BaseArmor.cs (Scripts/Items/Armor/BaseArmor.cs) and BaseJewel.cs (Scripts/Items/Jewels/BaseJewel.cs) described below. (note, you dont have to make this mod if you dont want to, the spawner and other items will work just fine without it, players just wont automatically see attachment properties on items with attachments).