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
  #1  
Old 01-24-2010, 10:27 PM
Ozzara
Fire Beetle
 
Join Date: May 2009
Location: I want to play EQ!
Posts: 7
Default Timer issues

Is it possible to use summonitem(); inside a sub EVENT_TIMER routine based on a sub EVENT_ITEM routine? It just wont summon the item i want after the timer has expired.

Example:

Code:
 sub EVENT_ITEM 
 {
       if(($itemcount{16905} == 1) && ($itemcount{13006} == 1) && ($itemcount{12018} == 1)  && ($platinum >= 80)) {
      
      quest::say("Text goes here");
		$theclienteid = $client->GetID();  #store client id
		$thename = $name;		   #store client name
		$theclient = $client;		   #store client
		quest::settimer("1",10);
 
     }


	else {
                 plugin::return_items(\%itemcount);
                 quest::say("text goes here ");
    }

}

sub EVENT_TIMER {

	if ($timer eq "1") {
		quest::say("text goes here $thename.");
		quest::stoptimer("1");
		$theclient->summonitem(5555,$theclienteid);
	}

}
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 12:33 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