Hi, I have started a new .lpr file to go into the addonsused.lpr.
I am having trouble getting it started.
I can do it fine if I edit the "registerzone" in the main .lpr file, but I don't always want this add-on turned on, hence needing a fresh .lpr file.
I tried my best to do it but it's fair tricky to understand the first part of a script.
I have this sofar.
Thanks.
I am having trouble getting it started.
I can do it fine if I edit the "registerzone" in the main .lpr file, but I don't always want this add-on turned on, hence needing a fresh .lpr file.
I tried my best to do it but it's fair tricky to understand the first part of a script.
I have this sofar.
<?php
CatchEvent OnMSO( $userName, $text ) # Player event
$idxOfFirstSpace = indexOf( $text, " ");
IF( $idxOfFirstSpace == -1 )
THEN
$command = $text;
$argv = "";
ELSE
$command = subStr( $text,0,$idxOfFirstSpace );
$argv = trim( subStr( $text,$idxOfFirstSpace ) );
ENDIF
SWITCH ( $command)
CASE "!clips":
LoadClips(0,0);
BREAK;
ENDSWITCH
EndCatchEvent
Sub LoadClips( $KeyFlags,$id )
RegisterZoneAction( "AU1" , 41,-823, 2 , LoadClips );
EndSub
?>