EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Event_discover_item (https://www.eqemulator.org/forums/showthread.php?t=35672)

Maze_EQ 08-17-2012 11:20 AM

Event_discover_item
 
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.

Code:

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/projecteqem.../embparser.cpp will tell you what gets exported for each event.

Set up something like
Code:

$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. :)


All times are GMT -4. The time now is 01:40 PM.

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