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
  #17  
Old 06-20-2009, 09:34 AM
Capheus
Hill Giant
 
Join Date: Apr 2008
Location: Milwaukee
Posts: 141
Default

Ok, trying to figure out what you are looking for. Here is another script that will allow you to use the client in sub EVENT_TIMER.

Code:
sub EVENT_SAY {

	if($text=~/hail/i) {
		
		quest::say("Would you like a [buff] or would you like to [goto] Crushbone?");
	}

	if($text=~/buff/i) {
		quest::say("Ok hold on while I get you the spell in my book.....");
		$theclienteid = $client->GetID();  #store client id
		$thename = $name;		   #store client name
		$theclient = $client;		   #store client
		quest::settimer("heal",10);
	}

	if($text=~/goto/i) {
		quest::say("Ok hold on while I find the right coordinates.....");
		quest::settimer("goto",10);
		$thename = $name;		   #store client name
		$theclient = $client;		   #store client
	}

}





sub EVENT_TIMER {

	if ($timer eq "heal") {
		quest::say("Found it! This should help $thename.");
		quest::stoptimer("heal");
		$theclient->CastSpell(26,$theclienteid); 	#casts skin like wood on self
	}
	
	if ($timer eq "goto") {
		quest::say("Off you go $thename!");
		quest::stoptimer("goto");
		$theclient->MovePC(58,143.4,-595.8,3.1,62.4);   #MovePC(zoneID, x, y, z, h)
	}
		
}
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:04 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