View Single Post
  #1  
Old 02-22-2011, 01:18 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Smile New npcserver version

TServerPlayer.sendtoirc(str, str) - sends an irc message to the RC, parameters are command and parameters, possible commands are join (channel), part (channel), topic (channel,topic), privmsg (source,channel,message), notice (source,channel,message)

Example:
temp.pl.sendtoirc("join","Reports");
temp.pl.sendtoirc("privmsg","NPCServer","Reports", "Wowow");

This can be used to send messages to RC similiar to the irc channels. It is a little bit limited right now, you cannot type messages into the 'channel' with RC and it doesn't work with scripted RC, but ideas and feedback for this new command are welcome.
Reply With Quote