RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Minor change to FullVialsWRack

Froman2686

Wanderer
Minor change to FullVialsWRack

Whilst creating my invention system, I was testing the use of the Empty and Full vials with rack. Level 2 research requires an empty set of vials, and it fills them. I didn't want the player to have to purchase or make a new set of empty vials every time they wanted to research alchemy, so I added an OnDoubleClick method to the FullVialsWRack class. It deletes the full vials, replaces them with empty ones, plays a splashing sound (as though you poured out the contents onto the ground) and sends a message saying "You empty the vials." Figured someone might want that, if just for realism's sake.

This file goes in Scripts/Items/Misc/ and overwrites GlassItems.cs.
 

Attachments

  • GlassItems.cs
    28.8 KB · Views: 51
Top