View Single Post
  #19  
Old 11-12-2014, 07:38 PM
Stowen Stowen is offline
Graalian since '01
Join Date: Sep 2005
Location: Massachusets, USA
Posts: 156
Stowen will become famous soon enough
Send a message via AIM to Stowen Send a message via MSN to Stowen
Excellent work! It looks and works great so far.

Just a side note, if you have the ability to edit your OP, you have player.sendtorc() listed as the command to use #ALERT messages. After several minutes of scratching my head, I realized it's sendToNC().

Quote:
Originally Posted by callimuc View Post
EDIT: Will it be possible for you to add small checks like if the user is using your custom RC and what version?
This is already implemented. When FP4's RC logs it, it sends a command to Control-NPC with the command "newrc".

NPC Code:
function onRCChat(cmd) {
if (cmd == "newrc") {
echo(params[1]);
}
}



Second parameter is the version of RC that staff logged in with. Essentially, that command won't be called if it's not the new RC, and you can add your own version checks via params[1]. Hope I helped!
__________________
Quote:
Originally Posted by Felix_Xenophobe View Post
He is no carpenter's son but Stowen will breathe life into pc graal.
Unholy Nation is my home.
Reply With Quote