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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 08-29-2006, 07:50 PM
ylosh
Sarnak
 
Join Date: Jan 2006
Posts: 39
Default

no, you can only have one event_say in the file.

you can set a temporary variable to have the npc summon the item when whatever key item is handed in..

Code:
sub EVENT_SPAWN {
  $variable = 0;
}

sub EVENT_SAY {
  if ($variable == 1) {
	if ($text=~/.*/i) {
	  quest::summonitem($text);
	  $variable = 0;
	}
  }
  elsif ($text=~/hail/i) { #all other dialogue
	quest::say("hello");
  }
  elsif ($text=~/something else/i) {
	quest::say("more dialogue");
  }
}

sub EVENT_ITEM {
  if (plugin::check_handin(\%itemcount, 1001 => 1)) {
	quest::say("blah blah give me an item id number");
	$variable = 1;
  }
  plugin::return_items(\%itemcount);
}
Reply With Quote
 


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 11:13 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