View Single Post
12/20/15, 10:25 AM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 578
Originally Posted by SnowmanDK View Post
I am trying to add a tooltip to my fishing pins in Destinations and I have succeeded.
It reads the amount of bait suitable for that particular type of water, and adds it to the pin info.
My problem is, when I have used a bait, then it doesn't update to the new amount when I reopen my map.
Only if I change to another map does it update. That is because it is set to re-read bait info from my bag on map change.

Is there a way to detect I have used a bait, so I can get it to update the numbers left?

I have looked into both fishing events and map events, but can't seem to find any that can be used in this case... Or did I miss something?
Hi SnowmanDK,

how you doing?

Plan A and B:
1. Maybe EVENT_INVENTORY_ITEM_USED is triggered?
2. EVENT_INVENTORY_SINGLE_SLOT_UPDATE is triggered for sure. May set a dirty flag in that event to re-read baits in custom pins tooltip creator callback.

CU
  Reply With Quote