Author Topic: Solution to welcome messages?  (Read 2668 times)

Is there anybody who can make a script that when you type /h or whatever, it would show a message that I set from in-game? Cuz ppl never read welcome messages anymore...


So easy to script...
Just a pain to type, I MAY do something later...

@Spation: Can I have it then?

@Kirby: I remember going into your server and it said for the welcome message: Welcome messages suck, type /h for rulez. So do you still have that?

Thats so easy to do it's not funny....

I hope to be making a nice rule mod (it's easy....heck I'll start now and it may be done by the end of the night....)

Wasn't there already a rules mod?

Yes, but I'll make a better one...

@Spation: Can I have it then?

@Kirby: I remember going into your server and it said for the welcome message: Welcome messages suck, type /h for rulez. So do you still have that?
*/serverinfo. Derrrrrrrrrrrrrrrrrrrrrrrrrrr rrr.

I do, but I'm not on my house computer so no BL filez.
I go edit and post when I'm back home.

RTB has the Server Info (F5) and The Guide (same thing) which no-one used. You set it by editing a certain file.

The trouble with client mods is that not everyone has them, so your code may not work all the time. The only times 'X downloaders' and GUIs work is when everyone has them - RTB or an official Blockland release.

If Badspot included several generic GUIs accessable by client commands, like clientcmdmessageboxok, it would be nice. messageboxokcancel (only sends return commands, can't execute code clientside), messageboxyesno (same), list dialog (select one of a list sent and it sends to server or -1 for 'cancel' button?)

There is a need for more universal guis......


Also, RTBs rules was flawed.  Clients can only receive a string of a certain length, so unless your list of rules was shorter then this paragraph, only the first part would show up.

The one I'm working on will be nice, but it will be through the chat...


Also, Mr.Wallet got around this by cutting up the text into parts, so thats how you can read long things in RoB...

Also, Mr.Wallet got around this by cutting up the text into parts, so thats how you can read long things in RoB...
Don't forget that for RoB, you had to download his GUI's which contained all the information you needed in them.
But you are right with the 'cutting text up' thing, for Wallet's freebuild rules that were transmitted to the console.

No, RoB's gui doesn't have all the info in it, when you go on the server and go under help, it asks the server for the text for that topic, and the server sends it to the gui in pieces.

No, RoB's gui doesn't have all the info in it, when you go on the server and go under help, it asks the server for the text for that topic, and the server sends it to the gui in pieces.
Orly?
Didn't know that.

Codez for j00.

Code: [Select]
function serverCmdServerInfo(%client)
{
%info1 = "\c1This is my server :)";
%info2 = "\c2Make sure you followe these rules: [put them in lul]";
%admininfo = "\c3Also, admins, please try not to abuse power like I do.";

messageClient(%client,'', %info1);
messageClient(%client,'', %info2);
if (%client.isAdmin || %client.isSuperAdmin)
{
messageClient(%client, %admininfo);
}
}
Follow the pattern for more lines, make sure you keep the quotes and all the other symbols.

I believe the max length string/message you can send to a client is 1024 characters. It'd be better to stay below this limit since the limit includes things like the message type and added stuff. (messageall('type','Message %1',%var))