Basically I want the same command as this:
Code:
"$type": "Grimoire.Botting.Commands.Misc.Statements.CmdQuestNotCompleted, Grimoire",
"Tag": "Quest",
"Text": "Quest can not be turned in",
"Value1": "2082",
"Value2": ""
},
but I want it, when the item selected in shop, cannot be purchased.
I have the code to buy the item:
Code:
"$type": "Grimoire.Botting.Commands.Item.CmdBuy, Grimoire",
"ShopId": 422,
"ItemName": "Spirit Orb"
}
now I want to know how to check the condition if the item cannot/was not bought.
Thank you.
- - - Updated - - -
Solved it myself.
Instead of checking weather or not I have bought the item, I checked if I have the required amount in the inventory.
For anyone wondering for the future reference, here is how I did it.
Code:
{
"$type": "Grimoire.Botting.Commands.Misc.CmdLabel, Grimoire",
"Name": "LOOP-SHOP-BUY"
},
{
"$type": "Grimoire.Botting.Commands.Item.CmdBuy, Grimoire",
"ShopId": 422,
"ItemName": "Spirit Orb"
},
{
"$type": "Grimoire.Botting.Commands.Misc.Statements.CmdInInventory, Grimoire",
"Tag": "Item",
"Text": "Is in inventory",
"Value1": "Undead Energy",
"Value2": "50"
},
{
"$type": "Grimoire.Botting.Commands.Misc.CmdGotoLabel, Grimoire",
"Label": "LOOP-SHOP-BUY"
},
{
"$type": "Grimoire.Botting.Commands.Misc.CmdGotoLabel, Grimoire",
"Label": "START"
},
]
First I buy the item, in my case Spirit Orb.
Then I check in my inventory if I still have the required items to buy Spirit Orb.
If I do then I continue the loop, otherwise I exit.
- - - Updated - - -
Please mark as solved admin. Thank you.