INVENTORY_UPDATE trigger

allspaminthecan

Active Member
How do I figure out how to use the INVENTORY_UPDATE trigger? I don't see any documentation about it anywhere when I Google it, so where do I start looking?

I hope to use it to figure out what has changed, but I can't figure out how to get it to tell me. Using it like the quest data example below does not seem to work.

Code:
function main(string mode)
{
	AddTrigger trigger1 QUESTDATA::@qinfo@

	do
	{
		ExecuteQueued
		wait 1
	}
	while 1
}

function trigger1(string Ling, string qinfo)
{
	echo ${Ling} -- ${qinfo}
}
 

mycroft

Script Author: MyPrices
My guess would be an atom run on the trigger...like...

Event[EQ2_onInventoryUpdate]:AttachAtom[EQ2_onInventoryUpdate]


atom(script) EQ2_onInventoryUpdate()
{
InventorySlotsFree:Set[${Me.InventorySlotsFree}]
Echo Character now has ${InventorySlotsFree} Slots free in bags
}
 
Top Bottom