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 03-13-2015, 03:07 PM
Lord of Steel
Fire Beetle
 
Join Date: Feb 2014
Posts: 17
Default Make an NPC use OOC or Auction

I wanted my buffing NPC's in East Commons to use ooc and advertise like a real player. I couldn't figure out how to do that so i make the player think they are seeing OOC text. It's basically messages sent to the client in the format of a PC OOC. This is from my global.pl file

Code:
sub EVENT_ENTERZONE { 
	if($zoneid == 22 ) 
	{
		quest::settimer("syal",390);
		quest::settimer("garren",400);
		quest::settimer("sweet",410);
		quest::settimer("mezzum",420);
		#quest::settimer("avienda",270);
		
	}
}
sub EVENT_TIMER {
	if ($timer eq "syal") 
	{
		$client->Message(2, "Syal says out of character, 'Casting Shammy buffs for donation near the magus'");
	}
	if ($timer eq "garren") 
	{
		$client->Message(2, "Garren says out of character, 'Cleric for hire!  Castin Aego line buffs for donations near shady.");
	}
	if ($timer eq "sweet") 
	{
		$client->Message(2, "Sweet Leaf says out of character, 'Do you need Damage Shields?  Come by Commander Farang because I need donations.'");
	}
	if ($timer eq "mezzum") 
	{
		$client->Message(2, "Mezzum says out of character, 'Casting crack and haste in the tunnel'");
	}
	if ($timer eq "avienda") 
	{
		$client->Message(2, "Avienda says out of character, 'Selling everything on me!  I'm on the crate near banker Cogswell.  Come inspect and make an offer!'");
	}
 
 }
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 07:31 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