<?php
Event OnMSO( $userName, $text ) # Player event
openPrivButton( "Test_1",10,118,20,7,6,-1,32,"^3TEST 1234");
EndEvent
?>
<?php
Event OnOBH( $userName, $text ) # Player event
openPrivButton( "Test_1",10,118,20,7,6,-1,32,"^3TEST 1234");
EndEvent
?>
<?php
CatchEvent OnLapperStart()
RegisterZoneAction( "AU1" , -91,-975, 1 , SR_AwardPoints1,"" );
EndCatchEvent
$PointsAwardedOnClipHit = 200; # Point's to be awarded on cliphit
Sub SR_AwardPoints1($userName)
openPrivButton( "award_points",5,125,20,12,6,-1,32,"",GetPlayerVar(PointsAwardedOnClipHit));
openPrivButton( "award_points2",5,125,20,5,6,-1,0,"ClipBonus");
EndSub
?>
<?php
CatchEvent OnLapperStart()
RegisterZoneAction( "AU1" , 23,-614, 2 , SR_LoadClips );
EndCatchEvent
Sub SR_LoadClips($userName)
openPrivButton( "stop_light",53,38,60,15,6,-1,0,"^2test");
EndSub
?>
<?php
CatchEvent OnLapperStart()
RegisterZoneAction( "AU1" , -32,-615, 2 , SR_LoadClips );
EndCatchEvent
Sub SR_LoadClips
openPrivButton( "stop_light",53,38,60,15,6,-1,0,"^2test");
EndSub
?>
<?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
?>
<?php
Sub DisplaySpeed( $userName )
PrivMsg( langEngine( "%{main_clip}%" , ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") ) );
EndSub
Sub DisplayLight( $userName )
PrivMsg( langEngine( "%{main_light}%" , ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") ) );
EndSub ##THE LIGHT"S SUB?###
RegisterZoneAction( "AU1" , 43,-774, 2 , DisplaySpeed,ExitDisplaySpeed);
RegisterZoneAction( "AU1" , 28,-862, 2 , DisplaySpeed,ExitDisplaySpeed);
RegisterZoneAction( "AU1" , 28,-871, 2 , DisplayLight); ##LIGHT calling SUB?##
?>
<?php
main_light2 = "^1test= {0}
?>
<?php
Sub Close_all()
?>
<?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 )
##DAscoring Box##
CASE "!da":
openPrivButton( "top",3,49,100,75,6,-1,16,"" );
openPrivButton( "leftbx",3,49,25,75,6,-1,32,"");
openPrivButton( "Header",28,50,74,5,6,-1,32,"");
openPrivButton( "da",15,50,74,5,6,-1,0,"^2DRIFT^3AUSTRALIA");
openPrivButton( "Score",32,50,74,5,6,-1,0,"^7Scoring");
openPrivButton( "light",42,50,74,5,6,-1,12,"^2•");
openPrivButton( "lappa",3,59,25,5,5,-1,16,"^7Lapper");
openPrivButton( "box",28,59,74,5,6,-1,16,"");
openPrivButton( "infos",3,59,125,5,5,-1,0,"^7Lapper ^7Will ^7Give ^7You ^7Point's ^7For ^7Drifting ^7According ^7To ^7Angle:");
openPrivButton( "Angle",31,71,15,5,5,-1,0,"^7Min ^7Angle:");
openPrivButton( "Anglenum",41,71,15,5,5,-1,0,"^715°");
openPrivButton( "speed",31,79,15,5,5,-1,0,"^7Min ^7Speed:");
openPrivButton( "speednum",43,79,15,5,5,-1,0,"^710KMP");
openPrivButton( "Clips",3,89,25,5,5,-1,16,"^7Clip ^7Point's");
openPrivButton( "infos2",28,89,74,5,5,-1,16,"^7LFS ^7Gives ^7Points ^7According ^7To ^7The ^7Amount ^7Of ^7Clip's ^7Hit.:");
openPrivButton( "clipp",32,98,20,5,5,-1,0,"^7One ^7Pole/Cone ^7=");
openPrivButton( "clippn",48,98,15,5,5,-1,0,"^750pts");
openPrivButton( "daptscls",51,117,15,5,5,-1,32,"^7CLOSE",Close_all);
openPrivButton( "next",31,117,15,5,5,-1,32,"^7NEXT",Sub_Next);
BREAK; ##DAinfo Box##
CASE "!info":
openPrivButton( "topinfo",3,49,100,75,6,-1,16,"" );
openPrivButton( "leftbxinfo",3,49,25,75,6,-1,32,"");
openPrivButton( "Headerinfo",28,50,74,5,6,-1,32,"");
BREAK;
ENDSWITCH
EndCatchEvent###If I move this to the bottom nothing works
######CLOSE-ALL Button won't close anything?########
Sub Close_all()
("top&leftbx");
EndSub
?>
<?php
SWITCH
CASE "!da":
openPrivButton( "top",3,49,100,75,6,-1,16,"" );
ENDSWITCH
?>
<?php
CASE "!da":
openPrivButton( "top",3,49,100,75,6,-1,16,"" );
openPrivButton( "leftbx",3,49,25,75,6,-1,32,"");
openPrivButton( "Header",28,50,74,5,6,-1,32,"");
openPrivButton( "da",15,50,74,5,6,-1,0,"^2DRIFT^3AUSTRALIA");
openPrivButton( "Score",32,50,74,5,6,-1,0,"^7Scoring");
openPrivButton( "light",42,50,74,5,6,-1,12,"^2•");
openPrivButton( "lappa",3,59,25,5,5,-1,16,"^7Lapper");
openPrivButton( "box",28,59,74,5,6,-1,16,"");
openPrivButton( "infos",3,59,125,5,5,-1,0,"^7Lapper ^7Will ^7Give ^7You ^7Point's ^7For ^7Drifting ^7According ^7To ^7Angle:");
openPrivButton( "Angle",31,71,15,5,5,-1,0,"^7Min ^7Angle:");
openPrivButton( "Anglenum",41,71,15,5,5,-1,0,"^715°");
openPrivButton( "speed",31,79,15,5,5,-1,0,"^7Min ^7Speed:");
openPrivButton( "speednum",43,79,15,5,5,-1,0,"^710KMP");
openPrivButton( "Clips",3,89,25,5,5,-1,16,"^7Clip ^7Point's");
openPrivButton( "infos2",28,89,74,5,5,-1,16,"^7LFS ^7Gives ^7Points ^7According ^7To ^7The ^7Amount ^7Of ^7Clip's ^7Hit.:");
openPrivButton( "clipp",32,98,20,5,5,-1,0,"^7One ^7Pole/Cone ^7=");
openPrivButton( "clippn",48,98,15,5,5,-1,0,"^750pts");
openPrivButton( "next",31,117,15,5,5,-1,32,"^7NEXT");
openPrivButton( "pstclose",60,110,20,10,5,-1,32, langEngine("%{main2_close}%"),ClosePstInfo );
BREAK;
ENDIF
CASE"!info":
openPrivButton( "top",3,49,100,75,6,-1,16,"" );
openPrivButton( "infos",3,51,25,5,5,-1,0,"^7HELP");
openPrivButton( "lappa",3,59,25,5,5,-1,16,"");
openPrivButton( "leftbx",3,49,25,75,6,-1,32,"");
openPrivButton( "Clips",3,89,25,5,5,-1,0,"");
openPrivButton( "Anglenum",3,59,25,5,5,-1,0,"^7Custom ^7Commands ^7(!da)");
openPrivButton( "Header",28,50,74,5,6,-1,32,"");
openPrivButton( "Score",32,50,74,5,6,-1,0,"^7Info/Help");
openPrivButton( "light",45,50,74,5,6,-1,12,"^2•");
openPrivButton( "da",15,50,74,5,6,-1,0,"^2DRIFT^3AUSTRALIA");
openPrivButton( "pstclose",60,110,20,10,5,-1,32, langEngine("%{main2_close}%"),ClosePstInfo );
BREAK
ENDIF
?>
<?php
Sub ClosePstInfo( $KeyFlags,$id )
closePrivButton(
"pstclose&Back&Angle&top&top2&leftbx2&Header2&leftbx&Header&da&Score&lappa&light&light2&box&infos&Angle&Anglenum&speed&speednum&Clips&infos2&clipp&clippn&PSNickNa
me&PSDistance&PSFuel&PSLaps&PSWins&PSSecond&PSThird&PSFinished&PSQuals&PSPole&next&prev");
Closeclosescore( $KeyFlags,$id )
closePrivButton("closescore");
EndSub
?>