Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   PlayerWorlds Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=15)
-   -   Is there a way for an RC automessage? (https://forums.graalonline.com/forums/showthread.php?t=65688)

Link3001 04-27-2006 10:12 PM

Is there a way for an RC automessage?
 
I was wondering if it was possible to let an automessage appear on RC, so that when people log into it, it will show it in the RC chat.

Sulukra 04-27-2006 10:42 PM

Just script it. Thats what I did. Make it so that if the player logs on, a message is sent to RC.

Its easy!

Link3001 04-27-2006 11:12 PM

Ah. Now the only problem remains is the script. I can only script some basic GS1 scripts and that is about it.

Bad, I know..

But now that I know it can be done, I will find it somewhere. Thanks!

xXziroXx 04-28-2006 04:29 AM

Put this in the Control-NPC:

NPC Code:

function onActionPlayerOnline()
{
sendtorc("text");
}


Andy0687 04-28-2006 05:30 AM

Quote:

Originally Posted by xXziroXx
Put this in the Control-NPC:

If im best guessing here, dosent that code only catch players logging online as in like client? Tested it and it will not be catching my RC logging on.

Your best bet I would say is to use two strings, currently logged on RCs and new RCs, check them against one another every once in awhile, if you find a new one, add it to the list of already online RCs, display a message, and dont check for them anymore.

xXziroXx 04-28-2006 08:22 AM

Quote:

Originally Posted by Andy0687
If im best guessing here, dosent that code only catch players logging online as in like client? Tested it and it will not be catching my RC logging on.

Your best bet I would say is to use two strings, currently logged on RCs and new RCs, check them against one another every once in awhile, if you find a new one, add it to the list of already online RCs, display a message, and dont check for them anymore.

Yeah, true, but I cant remmember if theres a function like onActionRCOnline.. if there isnt, you would have to make a constant loop that checks all online RCs.


All times are GMT +2. The time now is 01:28 AM.

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