Grimoric
Member
Hi,
We have a add feature in this file but we can't remove a item from the despawn list after it have been spawned without making a own modifications inside this file. This is important if we spawn a item in a camp that we wish let the player keep it after the camp have despawn.
Existing Add function looks like this today:
And I would suggest to add a new "RemoveItem" in ServUO.
-Grim
We have a add feature in this file but we can't remove a item from the despawn list after it have been spawned without making a own modifications inside this file. This is important if we spawn a item in a camp that we wish let the player keep it after the camp have despawn.
Existing Add function looks like this today:
Code:
public virtual void AddItem( Item item, int xOffset, int yOffset, int zOffset )
{
m_Items.Add( item );
int zavg = Map.GetAverageZ(X + xOffset, Y + yOffset);
item.MoveToWorld( new Point3D( X + xOffset, Y + yOffset, zavg + zOffset ), Map );
}
And I would suggest to add a new "RemoveItem" in ServUO.
Code:
public virtual void RemoveItem( Item item )
{
m_Items.Remove( item ) ;
}
-Grim