Theoretical idea: Item Discovery Notifications
I'm pondering whether or not this would be possible via perl, and how it would be done. If anyone has any ideas, feel free to let me know and maybe we can come up with a fun little custom feature.
My idea is that when a player gets the discovery on an item, a notification message would be sent to one of the following, depending on how the server admin has it set : Option A: Directly to the player Option B: To the player and a designated GM Option C: Broadcast to all players on the server I'm wondering if something can be scripted to pull this information from the discovered_items table, and then send a message with the item name (maybe even a link to the item) and the name of the player who discovered it. Any thoughts? |
This will work, yes. Here's why:
Code:
sub EVENT_DISCOVER_ITEM - Triggered when an item is discovered. Code:
$client->Message(335, "You discovered " . quest::varlink($itemid) . "!"); Code:
$client->Message(335, "You discovered " . quest::varlink($itemid) . "!"); Code:
quest::gmsay("$name discovered " . quest::varlink($itemid) . "!", 335, 1, 0, 0); |
Oh, sweet! This makes me very happy! Thanks, Kingly!
|
You're welcome.
|
Option C needs to leverage quest::we, not gmsay, only GMs get those messages, that is if you want to broadcast to all players
|
Not only GMs get them if you specify a minimum status of 0.
|
Quote:
|
Just for anyone reading this curious about it, this works for looted items, tradeskill made items, and even zones. Very cool! Thanks again to Kingly for helping figure this out.
|
This is really cool idea but let me get this straight, this would be coded like:
Code:
## should there be a list of items up here to trigger this, so not every item is spammed via "we"?## |
All times are GMT -4. The time now is 11:14 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.