View Full Version : Event_discover_item
Maze_EQ
08-17-2012, 11:20 AM
How exactly can I make this useful, as in, displaying when someone finds an item?
nenelan
08-17-2012, 11:25 AM
Depends what you want to do with it. Every item? Specific item(s)? First time server wide or per person?
Clever qglobal writing and server wide messages should take care of most of what you'd want to do with it, but with an untargeted question like what you provided, a bit hard to give any specific help.
Maze_EQ
08-17-2012, 11:45 AM
Let me elaborate.
What I am trying to do is.
sub EVENT_DISCOVER_ITEM
{
quest::shout2("$name has discovered $discovereditemid");
}
something simple like that, where I can have it when someone discovers ANY item, it will shout worldwide and give the link of the discovered item, I'm not sure how to incorporate this, I have it semi working as in, when someone discovers an item is shouts "$name has discovered" Usually I can figure this stuff out on my own, but i'm at a loss.
nenelan
08-17-2012, 11:50 AM
Just use $itemid, it's exported when EVENT_DISCOVER_ITEM gets called.
http://code.google.com/p/projecteqemu/source/browse/trunk/EQEmuServer/zone/embparser.cpp will tell you what gets exported for each event.
Set up something like $linkid=quest::varlink($itemid); if you want to have it spit out a link for the item, then throw that variable into the shout.
Maze_EQ
08-17-2012, 12:07 PM
Ahh, awesome thanks so much
Tabasco
08-17-2012, 12:10 PM
You want quest::varlink() above.
nenelan
08-17-2012, 12:23 PM
Duly noted and changed, thanks Tabasco, it's not something I've messed with too much yet. :)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.