Making glass jugs fillable
Hi,
In Scripts/Items/Food/BeverageEmpty.cs there's the details for an empty glass jug (among other things)
I'd like to make this so that you can fill it from any water source like you can on OSI - ie double click and target a water tile/water trough and it is refilled with water. A lot of players are finding it awkward to keep themselves refreshed (as drinking is required as well as eating) and being able to refill an item would be an advantage.
I know I probably need to add a line like:[code:1]
public override void OnDoubleClick( Mobile from )
[/code:1]
But after that I'm lost.
Can someone point me in the right direction? Or give me an example to work off?
Thanks in advance.....
P.S. Yes - I have already done a search.
Hi,
In Scripts/Items/Food/BeverageEmpty.cs there's the details for an empty glass jug (among other things)
I'd like to make this so that you can fill it from any water source like you can on OSI - ie double click and target a water tile/water trough and it is refilled with water. A lot of players are finding it awkward to keep themselves refreshed (as drinking is required as well as eating) and being able to refill an item would be an advantage.
I know I probably need to add a line like:[code:1]
public override void OnDoubleClick( Mobile from )
[/code:1]
But after that I'm lost.
Can someone point me in the right direction? Or give me an example to work off?
Thanks in advance.....
P.S. Yes - I have already done a search.