PDA

View Full Version : Player Event: Merchant Transaction


blooberry_eq99
12-14-2018, 07:43 PM
Would anyone else find it useful to have an event that gets triggered when a player purchases or sells something from a merchant?

The use case I see for this is with the task system, if I have a quest that requires obtaining an item, I'd like the task stage to get updated when the player acquires the item, regardless if it was from looting or purchasing from a vendor.

I think a Perl/Lua API for this would be the most flexible, but I could also see such an event being added directly to the task system as another activitytype.

Kingly_Krab
12-14-2018, 08:34 PM
You can always just modify your source to do exactly what you described.

We do have queryserver logging for merchant transactions, maybe you can piggyback that and find where you'd need to put your task update code.

A new EVENT_MERCHANT or whatever may not be the best route simply because it would be called every time a transaction occurs, regardless of it being scripted.