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 02-05-2010, 06:43 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default Signaling Clients

I've been looking and trying all kinds of different objects, trying to send a signal to a client.

These are examples of what I've used:
Code:
        my $users = GetClientList();
	quest::signalwith($users, 1, 1);

	$mob->SignalAllClients(1);
	$mob->SignalClient($client, 1);
Those are three different way's I've tried to ping the Player.pl, if anyone can help with this I'd appreciate it.

Thanks in advance,
Akkadius
Reply With Quote
  #2  
Old 02-05-2010, 05:43 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

In the npcname.pl file:
Code:
$entity_list->SignalAllClients(1);
Or this should also work:

Code:
$npc->SignalClient($client, 1);

In player.pl
Code:
sub EVENT_SIGNAL {


	if ($signal == 1)
	{
		#Do Whatever
	}
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 02-05-2010, 06:40 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Thank you so much Trevius, was trying to make quest window waiting for departure, works perfect now. Do you know if instead of just a single "OK" button we can have a yes or no box for scripts, is it something we already have linked?
Reply With Quote
  #4  
Old 02-05-2010, 06:49 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Actually I was just looking into this and didn't realize there was two different options for quest windows.

Code:
quest::popup(<Window Title>, <Window Text>)

quest::popup(<Window Title>, <Window Text>, <PopupID>)

quest::popup(<Window Title>, <Window Text>, <PopupID>, <Buttons>)
0 for OK, 1 for Yes/No

Phenominal, this makes my day, thanks again
Reply With Quote
Reply


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 04:47 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3