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!

[Request] public Item( int itemID, int hue, bool movable )

Arya

Wanderer
[Request] public Item( int itemID, int hue, bool movable )

As the topic says, I'd like to request an overloaded constructor for the Item class. Such a constructor would help me make the next version of Pandora's Box accessible to more users. What I want to do is to be able to add any item (used for world deco) specifying its hue, without having to set it separately.

Of course I could supply a server script to do this, but it would require the shard to install it and not all might want to do that, and I think that the possibility of adding hued items would help and speed up world building a lot.

Thank you for considering.
 

Phantom

Knight
;)

Write the class and come on the channel, tell Ryan about it and see if he can get it in :)

Thats the best way you will get it in :)

I have to make this for factions anyhow so maybe I will do it :)

I welcome any help, come to our channel or email me.
 

Arya

Wanderer
Well there isn't a need for a class. It takes a constructor added to the Item class which is pretty obvious:

[code:1][ Constructable ]
public Item( int itemID, int hue, bool movable ) : this( itemID )
{
Hue = hue;
Movable = movable;
}[/code:1]

Either way I'll take your suggestion and try IRC sometimes ;)
 
Top