Thread: logs
View Single Post
  #4  
Old 11-20-2003, 02:08 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Talking

Quote:
Originally posted by MrGannondorf
Can anyone make use of the rpg window?
Sure I can, easily. Here is a chat system, allthough basic. I submit it to the forums, anyone can use it.

NPC Code:

// NPC made by TGC
// NPC Weapon, weaponname: TGC Chat System.
if (actionserverside) {
for (a=0;a<allplayerscount;a++) {
with (allplayers[a]) {
if (strequals(#s(client.chatsystem),on)) sendrpgmessage #p(0);
}
}
}
//#CLIENTSIDE
if (weaponfired) {
if (strlen(#s(client.chatsystem))==0) setstring client.chatsystem,off;
if (strequals(#s(client.chatsystem),off)) {
setstring client.chatsystem,on;
setplayerprop #c,Chat Enabled, say /chat <message> to send a message;
} else {
setstring client.chatsystem,off;
setplayerprop #c,Chat disabled;
}
}
if (playerchats) {
tokenize #c;
if (strequals(#s(client.chatsystem),on)) {
if (strequals(#t(0),/chat)) {
triggeraction 0,0,serverside,TGC Chat System,"#n: #e(6,-1,#c)";
setplayerprop #c,Message Sent;
}
}
}


Fire the weapon to enable/disable it. Say "/chat <message>" to send a message. Press F2 to view the RPG Window. :-)
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote