#W# Auto harvest mining/lumberjacking/fishing. Removed all or except the large graphic ore.
This commit is contained in:
parent
5f61347479
commit
6249b9f8cd
2 changed files with 22 additions and 7 deletions
|
|
@ -237,6 +237,20 @@ namespace Server.Engines.Harvest
|
|||
def.SendMessageTo( from, def.FailMessage );
|
||||
|
||||
OnHarvestFinished( from, tool, def, vein, bank, resource, toHarvest );
|
||||
if ( from != null && from.Alive && !from.Deleted && from.NetState != null && tool != null && !tool.Deleted )
|
||||
{
|
||||
if ( from.TotalWeight >= 400 )
|
||||
{
|
||||
from.SendMessage( 0x22, "You are carrying too much weight to continue harvesting." );
|
||||
}
|
||||
else
|
||||
{
|
||||
Timer.DelayCall( TimeSpan.FromMilliseconds( 500 ), delegate()
|
||||
{
|
||||
StartHarvesting( from, tool, toHarvest );
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void OnHarvestFinished( Mobile from, Item tool, HarvestDefinition def, HarvestVein vein, HarvestBank bank, HarvestResource resource, object harvested )
|
||||
|
|
@ -503,4 +517,4 @@ namespace Server
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue