Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2012, 11:20 AM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,103
Default Event_discover_item

How exactly can I make this useful, as in, displaying when someone finds an item?
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
  #2  
Old 08-17-2012, 11:25 AM
nenelan
Hill Giant
 
Join Date: Feb 2008
Posts: 116
Default

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.
Reply With Quote
  #3  
Old 08-17-2012, 11:45 AM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,103
Default

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.
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
  #4  
Old 08-17-2012, 11:50 AM
nenelan
Hill Giant
 
Join Date: Feb 2008
Posts: 116
Default

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.
Reply With Quote
  #5  
Old 08-17-2012, 12:07 PM
Maze_EQ
Demi-God
 
Join Date: Mar 2012
Posts: 1,103
Default

Ahh, awesome thanks so much
__________________
"No, thanks, man. I don't want you fucking up my life, too."

Skype:
Comerian1
Reply With Quote
  #6  
Old 08-17-2012, 12:10 PM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default

You want quest::varlink() above.
Reply With Quote
  #7  
Old 08-17-2012, 12:23 PM
nenelan
Hill Giant
 
Join Date: Feb 2008
Posts: 116
Default

Duly noted and changed, thanks Tabasco, it's not something I've messed with too much yet.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:58 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3