| Blockland Forums > Modification Help |
| Fred's Basic Questions |
| (1/1) |
| 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/type it etc Will edit this post as I figure stuff out/get more questions c: |
| Bloxxed:
--- Quote from: Fredulus on February 02, 2011, 04:24:50 PM ---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: --- End quote --- 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. |
| Fredulus:
yes but what are the lines of code for messageclient and messageall |
| ::Matt:::
--- Quote from: Fredulus on February 02, 2011, 04:24:50 PM ---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: --- End quote --- Well the way to message the client would be to first have the client as a variable. Then... --- Code: ---messageClient(%client,'',""Message here."); --- End code --- The way to message everyone in the server would be... --- Code: ---messageAll('',""Message Here."); --- End code --- |
| Bauklotz:
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, ...) |
| Navigation |
| Message Index |