EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Feature Requests (https://www.eqemulator.org/forums/forumdisplay.php?f=612)
-   -   Player Event: Merchant Transaction (https://www.eqemulator.org/forums/showthread.php?t=42206)

blooberry_eq99 12-14-2018 07:43 PM

Player Event: Merchant Transaction
 
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.


All times are GMT -4. The time now is 03:47 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.