![]() |
Login Message
1 Attachment(s)
Here's the login message that is used on Utopia. I'm releasing it to the public, since it's not getting too much use here.
The files are control/serverNews.txt, control/serverHirings.txt, control/serverStaff.txt, and control/serverInfo.txt. Change these files to change what text shows up when you log on. Script of Weapon/GUI-Script -System/LoginMessage: PHP Code:
|
how is this GUI activated?
|
When you login, it will open.
Otherwise, I suppose you could map it so a key would open it, or a specific chat. Tell me if you need help with that! EDIT: Also, I forgot to point out that you'll need to add these rights to (npcserver) r control/*.txt so that it can read the files. |
It would be awesome if you could post a onKeyPressed or onPlayerChat function for it.
|
Quote:
|
Ah.kk
|
Add either of these below the //#CLIENTSIDE.
for chat PHP Code:
PHP Code:
|
its till not working for me :(
|
For this type of code, do you just create a blank "weapon" npc, give folder rights, and also make these four text docs?
edit: I get the following error, as it refers to this -- "triggerserver( "gui", name, "getMessage" ); " ERROR: GraalScript: Function triggerserver not found at line 15 in script of -LoginMessage Any suggestions? |
Quote:
|
Quote:
Was the error in RC? |
Quote:
Don't those go into F2 upon execution? |
Yes, I still get this error in RC
GraalScript: Function triggerserver not found at line 15 in script of -System/LoginMessage =-=-=-=-=-=-=-=-=-= //#CLIENTSIDE function onCreated() { triggerserver( "gui", name, "getMessage" ); } =-=-=-=-=-=-=-=-=-= That block of code is still getting an error for some reason :( |
Quote:
|
Make sure there is not a space at the end of //#CLIENTSIDE, I believe that can mess it up.
|
Quote:
|
I'm rather curious as to how I would make any text within the text files bold, centered, italicized, etc? I've tried using things like <b></b>, and , but it simply just shows the cased in letters. Anyone mind letting me know? x_x
|
Quote:
|
Usually HTML works
<img src=""> <i></i> <b></b> <a href="destinationhere"></a> all work usually. At least I know a lot of this except the a href in text file login message |
You might need to add 'allowedtags' in each of the GuiMLTextCtrl's with the list of allowed tags.
|
I also get this error:
Weapon/GUI-script -System/LoginMessage added/updated by TheRuckus Script: Function triggerserver not found at line 17 in script of -System/LoginMessage The line is triggerserver("gui",name,"getMessage"); How do i fix this? |
Quote:
PHP Code:
|
Quote:
|
//#CLIENTSIDE
function onCreated() { triggerserver("gui",name,"getMessage"); } function onActionClientSide( cmd, n, h, s, i ) { Now its working. |
re
Ruckus you used //#SERVERSIDE in the script that's why the error pops up
use //#CLIENTSIDE cuz everything above is already serversided and dude fulg0re it's triggerserver("gui",this.name,"whatever"); |
damn ruckus ur fast O_o
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.