mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-10 07:05:41 +12:00
Block trading specific items
This commit is contained in:
parent
26d24c1113
commit
efdd02214e
1 changed files with 2 additions and 0 deletions
|
@ -434,6 +434,8 @@ namespace HISP.Game
|
||||||
foreach(InventoryItem item in trade.Trader.Inventory.GetItemList())
|
foreach(InventoryItem item in trade.Trader.Inventory.GetItemList())
|
||||||
{
|
{
|
||||||
Item.ItemInformation itemInfo = Item.GetItemById(item.ItemId);
|
Item.ItemInformation itemInfo = Item.GetItemById(item.ItemId);
|
||||||
|
if (itemInfo.Type != "QUEST" && itemInfo.Type != "TEXT" && !(itemInfo.Id == Item.DorothyShoes || itemInfo.Id == Item.Telescope))
|
||||||
|
continue;
|
||||||
message += Messages.FormatTradeOfferItem(itemInfo.IconId, itemInfo.Name, item.ItemInstances.Count, item.ItemId);
|
message += Messages.FormatTradeOfferItem(itemInfo.IconId, itemInfo.Name, item.ItemInstances.Count, item.ItemId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue