Author Topic: Help with Chat Commands  (Read 804 times)

So, i'm trying to make chat command events. But for some reason, this code won't work.
Code: [Select]
function serverCmdMessageSent(%client,%msg)
{
if(!%client.refObj)
{
Parent::serverCmdMessageSent(%client,%msg);
}
else
{
if(%msg $= %client.refObjMsg)
{
Parent::serverCmdMessageSent(%client,%msg);
%client.refObj.onEventCommand(%client);
%msg="none";
}
else
{
Parent::serverCmdMessageSent(%client,%msg);
}
}
}

And yes, I got 1 output event and 1 input event.
Code: [Select]
function fxDTSBrick::onEventCmd(%this,%client)
{
$InputTarget_Self=%this;
$InputTarget_Client=%client;
$InputTarget_Player=%client.player;
$InputTarget_MiniGame=getMinigameFromObject(%this);
%this.processInputEvent("onEventCommand",%client);
}

function fxDTSBrick::setPlayerEventCmd(%this,%msg,%client)
{
%client.refObj=%this;
%client.refObjMsg=%msg;
}

Why doesn't this work?

THERE'S A BUTTON CALLED "POST REPLY" YOU KNOW


NO THERE'S NOT!

lol.
Get out of this section of the forums, you obviously are handicapped and have no clue how to script let alone what a script is. You are not laughing out loud and if you are, that is sad.

Anyway, check the console.

THERE'S A BUTTON CALLED "POST REPLY" YOU KNOW
Actually, there isn't. There is a 'REPLY' button, but no 'POST REPLY' button.

THERE'S A BUTTON CALLED "POST REPLY" YOU KNOW
Do you need to have a loving seizure?
« Last Edit: May 07, 2009, 02:09:32 AM by Big Brother »

Do you have a package on it? It needs a package or else it will break.

Do you have a package on it? It needs a package or else it will break.

I remember when I broke my chat... *sigh* good times.

shouldnt there be a registerInputEvent() or registerOutputEvent() somewhere in there?