Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Admin Message via script (https://forums.graalonline.com/forums/showthread.php?t=134263054)

Emera 04-30-2011 02:06 PM

Admin Message via script
 
Is there a way to send an admin message via script. I want send it with saying something. I got this so far.
PHP Code:

function onPlayerChats() 
{
if (
player.chat.starts("/mass ")) 


I dont know what to do next. Can somebody help out?
Many thanks in advance.:p

Admins 04-30-2011 02:43 PM

Scripted RC can send admin messages, the NPC-Server can send PMs.

Emera 04-30-2011 02:48 PM

Yes but i want to be able to do it via chat. Can you help?

fowlplay4 04-30-2011 03:08 PM

Since the Admin Message is just a scripted GUI now, you might as well just make your own messaging system.

Emera 04-30-2011 03:18 PM

Im new to scripting, so how would i do that? Would it be more simple if i made a gui window pop up on everyones screen with the text after /mass inside? But i dont know where to start

fowlplay4 04-30-2011 03:24 PM

Quote:

Originally Posted by Emera (Post 1646659)
Im new to scripting, so how would i do that? Would it be more simple if i made a gui window pop up on everyones screen with the text after /mass inside? But i dont know where to start

1. Use a chat command and triggerserver to send the message to the server-side.
2. Send the message on the server-side to everyone locally with triggerclient.
3. Display the message received on the client-side.

Emera 04-30-2011 03:25 PM

Right. I am still trying to get my had around triggering serverside/clientside.


All times are GMT +2. The time now is 11:47 PM.

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