#W# Tools: Mining and fishing now require the tool to be equiped to use.
This commit is contained in:
parent
15830c7e23
commit
65d8953956
2 changed files with 12 additions and 0 deletions
|
|
@ -519,6 +519,12 @@ namespace Server.Engines.Harvest
|
|||
return false;
|
||||
}
|
||||
|
||||
if (tool.Parent != from)
|
||||
{
|
||||
from.SendMessage("You must equip your fishing pole to be able to catch fish.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (from.Mounted)
|
||||
{
|
||||
from.SendLocalizedMessage(500971); // You can't fish while riding!
|
||||
|
|
|
|||
|
|
@ -303,6 +303,12 @@ namespace Server.Engines.Harvest
|
|||
return false;
|
||||
}
|
||||
|
||||
if (tool.Parent != from)
|
||||
{
|
||||
from.SendMessage("You must equip this to mine ore.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (from.IsBodyMod && !from.Body.IsHuman)
|
||||
{
|
||||
from.SendLocalizedMessage(501865); // You can't mine while polymorphed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue