Hi Guys,
Trying to figure out how to use Items which are currently in the Inventory.
My main Idea was to use this for the Contract "World Renowed". Something like that:
<If Condition="GetItemCount(55179)" > 5" >
<While Condition="not IsQuestObjectiveComplete(9935, 0)" >
<UseItem Items="55179" SkipMissing="true" />
</While>
</If>
It actually counts the Merits, and if there is enough to get the 1500 renown, it should use them, as long as the Quest is not "complete".
But it seems I might misinterpret the UseItem Tag in this case, and it will not work anyway like this. Also tried it with the ID and some absurd variants.
There was this snap I found in the forum here (which I am using in the RegenBreak, to heal quicker), but I cannot implement it somehow with the Exec Tag in the XML:
string itemName = "Cold Pasta";
InventoryItem item = GameManager.Inventory.Bags.Items.FirstOrDefault(o => o.Name == itemName);
if (item != null && item.IsValid)
item.Use();
Anybody has any Idea?
Thanks
EDIT:
<UseItem Items="55179" SkipMissing="true" />
Trying to figure out how to use Items which are currently in the Inventory.
My main Idea was to use this for the Contract "World Renowed". Something like that:
<If Condition="GetItemCount(55179)" > 5" >
<While Condition="not IsQuestObjectiveComplete(9935, 0)" >
<UseItem Items="55179" SkipMissing="true" />
</While>
</If>
It actually counts the Merits, and if there is enough to get the 1500 renown, it should use them, as long as the Quest is not "complete".
But it seems I might misinterpret the UseItem Tag in this case, and it will not work anyway like this. Also tried it with the ID and some absurd variants.

There was this snap I found in the forum here (which I am using in the RegenBreak, to heal quicker), but I cannot implement it somehow with the Exec Tag in the XML:
string itemName = "Cold Pasta";
InventoryItem item = GameManager.Inventory.Bags.Items.FirstOrDefault(o => o.Name == itemName);
if (item != null && item.IsValid)
item.Use();
Anybody has any Idea?
Thanks
EDIT:
<UseItem Items="55179" SkipMissing="true" />
Last edited: