How can I check if me/other is carrying a tradepack ?
Currently I'm trying with:
foreach (var item = player.getAllEquipedItems().Where(x => ((x.cell == 26) && (x.place == ItemPlace.Equiped) && isTradePack(x.id)))))
{
...
}
- (x.cell == 26) instead of (equipCell == EquipItemPlace.Backpack) because latter doesn't seems to work
- isTradePack(), custom function with id lookup table.
Problem:
- works when carrying a tradepack but stills returns a valid item when trade is put on the ground.
- If targeted player disconnect then reconnect, information is accurate.
- If tradepack is equiped again, foreach() returns 2 entries for same entity.
Currently I'm trying with:
foreach (var item = player.getAllEquipedItems().Where(x => ((x.cell == 26) && (x.place == ItemPlace.Equiped) && isTradePack(x.id)))))
{
...
}
- (x.cell == 26) instead of (equipCell == EquipItemPlace.Backpack) because latter doesn't seems to work
- isTradePack(), custom function with id lookup table.
Problem:
- works when carrying a tradepack but stills returns a valid item when trade is put on the ground.
- If targeted player disconnect then reconnect, information is accurate.
- If tradepack is equiped again, foreach() returns 2 entries for same entity.