• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Hooking into an 'item purchase' event

Status
Not open for further replies.

therealdudelee

Enthusiast
Hey guys. I have a custom reputation system, and i want to be able to add semi-blizzlike rep vendors into my server. Basically i want to be able to hook into an event for the purchase of an item, compare two numbers (current rep to min rep) and if the conditions are not met, the item purchade is cancelled (whether that be retracting the item or simply ending the purchase)

Thanks for amy help you can offer. Much love.
 

therealdudelee

Enthusiast
Hey man thanks for your reply. I want to avoid using custom patches for my project, and i need to be able to retain gold costs on vendor items so i dont think this is the ideal solution for me. But thanks for your help regardless, im sure this reaource will come in handy anyway.
 

Jpp

Administrator
Hey man thanks for your reply. I want to avoid using custom patches for my project, and i need to be able to retain gold costs on vendor items so i dont think this is the ideal solution for me. But thanks for your help regardless, im sure this reaource will come in handy anyway.

The link he gave you does not require a custom patch.
 

slp13at420

Mad Scientist
it doesn't mess with anything dealing with costs in gold or customextended.
rather it just sits on the sidelines and lets you know in detail what custom extended costs are required in detail and all at once rather than one at a time. the player doesn't need anything downloaded to enjoy this handy mod its all server-side.

the tutorial I posted --> http://emudevs.com/showthread.php/5670-Patchless-Item-Extended-Costs
 
Last edited:

slp13at420

Mad Scientist
lol !omg! just relized I could add a check for VIP/Premium ranks in the custom cost check there lol then vendors will check if players are Premium or VIP rank x or higher lol

and yea you could get the players honor point count in there then cross check it with required minimum and error if needed.
 
Last edited:

therealdudelee

Enthusiast
Ohh, I see. Sorry for being ignorant, I only looked at it rather quickly as school has been keeping me very busy today. Thanks everyone for your help with this, it is very much appreciated.
 
Status
Not open for further replies.
Top