Ny0n / Nys_ToDoList

WoW addon that creates a simple in-game To-Do list
https://legacy.curseforge.com/wow/addons/nys-todolist
7 stars 5 forks source link

Check task based on an item being in your bag/equipped, uncheck if in bank or absent #10

Open VincentVancalbergh opened 3 years ago

VincentVancalbergh commented 3 years ago

I'm looking for a checklist that can help me get ready for a specific event (AQ40, Naxx, Farming out in the world). I'm considering this one but I'm wondering if I can make a task item that checks/unchecks itself whether I have an item equipped or in my bags.

Example: For Naxx Day 2 I want to bring 10 Greater Frost Protection Potions, 10 Juju Embers and my Frost Resist set. So I'd make a checklist "Naxx Day 2" and type in the first task: ">= 10 " and then Shift-Click a Juju Ember to add in an itemlink (say I have 4 in my bags). It'll be unchecked by default of course but also because I have less than 10. Then when I go to my bank and get 10 more Juju Embers then the task will automatically check itself (since I have 14, which is more than 10).

If I add "=10 Greater Frost Protection Potion" as a task it would be unchecked if I have 9 or 11 (don't want to bring too many, since they only stack per 5) but be checked if I have 10 in my bags.

Can this addon do that (or would that be a feature you would add)? I'd be fine with the actual bag/equip check to be a button (for performance reasons).

I would be willing to add it myself and upload it as a pull request if you'll want to take it in.

Ny0n commented 3 years ago

Hi! Yes this should be something doable, but first i'll actually try to push later today a little update that i wanted to finish that actually changes the code a bit for optimization, so after this i can definitely look into this feature. I just don't know how much time it would take me bc i don't even know how to search the bags yet x) if you already have some experiences coding things like that then yes you can add it yourself, that's not a problem 👍