Well I have been using these because I know of them from people on the "inside" however I thought it was quite unfair of me to keep them all for myself, so here they are. These commands all seem to work on upgraded servers on the serverside section of the npc, since it requires to be serverside, it cannot be used on servers that are not upgraded, sorry.
NPC Code:
sendtorc text;
- This will send the specified text to the rc chat sent by npc server, commands like: sendtorc /open accountname; work and open the account, however its probably not a good idea to open multifarious accounts, because they stay open so if you open the rights, account, attributes and other stuff, etc then it could possibly lag your npc server. I had a thought that this could be used to make something that many npc scripters have worked on, a level updater npc for non staff accounts, sendtorc /updatelevels #L; so that could be useful. Hope so.
NPC Code:
sendtonc text;
- This will send the specified text to the nc chat and anyone on nc can see it, I believe it can also be used with /clearnpcs levelname; so who knows, fun experimenting with.
NPC Code:
sendpm text;
- This is used in a with, for example:
NPC Code:
with (getplayer(Saga2001)) sendpm Hello PastAustin!;
Also if you wish to send mass messages with it, you can used it in an allplayers[i] with like so:
NPC Code:
for (i=0; i<allplayerscount; i++) {
with (allplayers[i]) sendpm Hello #a;
}
I have found this command to be useful for announcing events, etc. The pm comes from npc server, so it looks like NPC-Server is sending a private message to you. I have failed to remember how, but you need to make sure that you have no commas unless you use a replacement type loop to replace commas with their correct #K() or ascii(). Also mass messages can lag the npc server quite badly (obviously), so watch out, and have fun.