Quote:
|
Originally Posted by Velox Cruentus
function __echo(message)
{
sendtonc(player.account @ ":" @ message);
}
This overrides the default "echo" command.
|
PHP Code:
(target).catchEvent(Object,PreviousEvent,NewEvent);
Ex:
NPC Code:
player.catchEvent(player,"onKeyPressed","onAttacki ngTheKeyboard");
function onAttackingTheKeyboard(code,key) {
// Various scripts.
}
This is used in Guis quite a bit to catch and rename the "onAction" function with buttons to a new function name. Useful for many buttons that do simmilar things.