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 09-09-2009, 12:39 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

ok first of all there is no such thing as sub EVENT_ITEM_2

there can only be ONE of any special subs.

2nd the say check will not work from inside sub EVENT_ITEM or any other sub other than EVENT_SAY

what you need for npc to remember you is to use a global variable.

there is an example in details in the wiki on how to use it.
i don't have a sample handy atm
Reply With Quote
  #2  
Old 09-09-2009, 12:53 AM
Pretentious
Fire Beetle
 
Join Date: Sep 2009
Posts: 22
Default

Is it alright to use the same function twice?

I appreciate the help, and apologize for the noobiness.
Reply With Quote
  #3  
Old 09-09-2009, 01:19 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

if by function you mean the subs- then no.
if you need to make more than 1 item hand in check you simple put them in one after another, like this:



Code:
sub EVENT_ITEM 
{


	if(plugin::check_handin(\%itemcount, 1001 => 1))
	{
	quest::say("You gave me item 1001!");
	quest::summonitem("1002");  
	}

	if(plugin::check_handin(\%itemcount, 1002 => 1))
	{
	quest::say("You gave me item 1002!");
	quest::summonitem("1001");  
	}


	else 
	{
	plugin::return_items(\%itemcount);	
	}

}
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:54 AM.


 

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