View Single Post
  #1  
Old 04-30-2002, 10:58 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Unknown Commands! :)

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.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote