EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Signaling Clients (https://www.eqemulator.org/forums/showthread.php?t=30505)

Akkadius 02-05-2010 06:43 AM

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

trevius 02-05-2010 05:43 PM

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
        }
}


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.

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


All times are GMT -4. The time now is 04:19 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.