Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   RC online/offline events (https://forums.graalonline.com/forums/showthread.php?t=78959)

xXziroXx 03-08-2008 08:09 AM

RC online/offline events
 
More of a question then a certain "bug".

Why is onPlayerLogout triggered for RC's, while onPlayerLogin (or even onActionPlayerOnline) isn't? Sounds stupid having only logout trigger, and could be useful to have it trigger for login (automated staff messages ftw).

I can do it by doing a loop checking all online players and blah blah, but it defeats the purpose of a built-in function for it.

xXziroXx 03-20-2008 01:29 AM

*bump*

xXziroXx 03-31-2008 12:43 PM

*bump x2*


Come ooooooon.... :whatever:

Admins 03-31-2008 05:56 PM

It's not invoking the onPlayerLogin and onActionPlayerOnline events because the RC is not a regular player and might mess up stuff if it's not checking the case that it's an RC connecting and not a normal player. It could be possible to add a new event when an RC is connecting.

xXziroXx 03-31-2008 08:56 PM

Quote:

Originally Posted by Stefan (Post 1383377)
It could be possible to add a new event when an RC is connecting.

Yes! Please do! It could be useful for so many things!

Inverness 03-31-2008 10:09 PM

I've wanted an RC login event for the longest time, I'd also really love some way to send echos to only a single RC and not all of them. I want to be able to have debug messages for my scripts on RC without flooding the other people who have the NC. With that, messages could be left for specific people when they login to RC and not everyone will see them every time someone logs in.

Maybe add an echo2(text, account) that sends an echo to that RC account, or if the account is left out then it sends it to the calling player's account. I've noticed that static functions (like substring()) can be overloaded with different parameter counts.

I would also want that feature so I could display messages for newer staff when they login to RC so they would see notices and any rules they need to remember or their assignments.

DustyPorViva 03-31-2008 10:12 PM

I echo the need of local echos.
This way we could have message systems and such for staff on RC and they won't be able to miss them.

Skyld 04-03-2008 10:57 AM

Quote:

Originally Posted by Inverness (Post 1383406)
I would also want that feature so I could display messages for newer staff when they login to RC so they would see notices and any rules they need to remember or their assignments.

You could script this yourself by sending PMs to the new RC, using some database script with a loop running, say, every 30-60 seconds, and a bit of creative use of timevar2.

xXziroXx 04-03-2009 11:31 PM

Bumping in hopes of Stefan not forgetting it.

Tigairius 04-04-2009 12:03 AM

Oh I definitely agree with this suggestion.

Admins 04-04-2009 10:45 PM

It should be possible to add a new echo command to send messages to individual players, will check it.

Inverness 04-05-2009 12:40 AM

Quote:

Originally Posted by Skyld (Post 1383912)
You could script this yourself by sending PMs to the new RC, using some database script with a loop running, say, every 30-60 seconds, and a bit of creative use of timevar2.

I should not have to bend over backwards to do simple things.

Chompy 04-05-2009 12:40 AM

Quote:

Originally Posted by Stefan (Post 1481005)
It should be possible to add a new echo command to send messages to individual players, will check it.

Nice! :]


All times are GMT +2. The time now is 08:01 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.