Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   RC Commands (https://forums.graalonline.com/forums/showthread.php?t=134263239)

Astram 05-15-2011 09:56 PM

RC Commands
 
How would you make an RC Command? It doesnt work!!!
I put this in the Control-NPC.
PHP Code:

function onRCChat(cmd)
  {
  if (
cmd == ":code")
    {
    echo(
"Code Accepted");
    }
  } 

But it doesnt work!!! HELP! x_x

cbk1994 05-15-2011 10:10 PM

onRCChat is for NC commands. Are you trying to make a player chat command or something staff use from RC?

For RC chat, put this in Control-NPC

PHP Code:

function onRCChat() {
  echo(
params);


Then try saying "/npc test" in RC.


All times are GMT +2. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.