Author Topic: Fred's Basic Questions  (Read 629 times)

I've recently tried to start scripting stuff again, and I've got some very basic questions. All the questions I've tried to answer myself by searching forums/looking at scripts etc. but I just want to make sure I'm doing it right, or I still have no idea.

1. What's the "generic" form of messageclient? and messageall?
2. What's the findclientbyname and findclientbyID stuff, exactly? I know what it's used for, just maybe not exactly how to use/type it etc

Will edit this post as I figure stuff out/get more questions c:
« Last Edit: February 02, 2011, 05:15:23 PM by Fredulus »

I've recently tried to start scripting stuff again, and I've got some very basic questions. All the questions I've tried to answer myself by searching forums/looking at scripts etc. but I just want to make sure I'm doing it right, or I still have no idea.

1. What's the "generic" form of messageclient? and messageall?
2. What's the findclientbyname and findclientbyID stuff, exactly? I know what it's used for, just maybe not exactly how to use it etc

Will edit this post as I figure stuff out/get more questions c:

1.MessageClient, is where in a script, lets say if you do /Self Delete, it'd say to you "You have Self Deleted" in almost like a private chat, not in world chat, and messageall is basically messaging everyone on the server.

yes but what are the lines of code for messageclient and messageall

I've recently tried to start scripting stuff again, and I've got some very basic questions. All the questions I've tried to answer myself by searching forums/looking at scripts etc. but I just want to make sure I'm doing it right, or I still have no idea.

1. What's the "generic" form of messageclient? and messageall?
2. What's the findclientbyname and findclientbyID stuff, exactly? I know what it's used for, just maybe not exactly how to use it etc

Will edit this post as I figure stuff out/get more questions c:

Well the way to message the client would be to first have the client as a variable. Then...

Code: [Select]
messageClient(%client,'',""Message here.");
The way to message everyone in the server would be...

Code: [Select]
messageAll('',""Message Here.");





messageAll(callback, message, arg0, arg1, ...)
Loops through clientGroup, and calls messageClient on every member.

messageAllExcept(client, callback, message, arg0, arg1, ...)
Loops through clientGroup, and calls messageClient on every member except client.

messageClient(client, callback, message, arg0, arg1, ...)
Literally just commandToClient(client, 'serverMessage', callback, message, arg0, arg1, ...)
« Last Edit: February 03, 2011, 03:37:58 AM by Bauklotz »