hi who do I cant the mining so it is a item not a tiles
Code:
 privatestaticreadonlyint[] m_MountainAndCaveTiles = newint[][code]  plz
 
Are you having an issue with trying to mine a cave wall? If so it is due to the server and client not having the same patch. I had the same problem when I was running lower client version than the server's.

If however you want to add new static items that you want to mine from, you will need to add the ItemID to the m_MountainAndCaveTiles list. Either at the beginning or end , doesn't matter.

If you want to have different resources, however on your specified item you will need to create a new HarvestDefinition yournew;
then yournew.Tiles will need to be assigned to a int[] containing your itemid.

Hope i've made it clear enough. I'm Pressed for time.
 
Do you want to use existing item? If not it should very easy to implement, when you create your item that you want people to be able to mine from simply inherit it from Static and not Item.

For instance
public class YourItem : Static
{
.....

Then
private static int[] m_yourItemItemIDS = new int[]
{
yourItemID
};

when you create the HarvestDefinition
assign the Tiles property to m_yourItemItemIDS;

so if HarvestDefinition yournew = ...

yournew.Tiles = m_yourItemItemIDS;
 
Back