Log in

View Full Version : Signaling Clients


Akkadius
02-05-2010, 06:43 AM
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:

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

trevius
02-05-2010, 05:43 PM
In the npcname.pl file:
$entity_list->SignalAllClients(1);

Or this should also work:

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


In player.pl
sub EVENT_SIGNAL {


if ($signal == 1)
{
#Do Whatever
}
}

Akkadius
02-05-2010, 06:40 PM
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?

Akkadius
02-05-2010, 06:49 PM
Actually I was just looking into this and didn't realize there was two different options for quest windows.

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