# As used in LFSLapper version 5.925 # by Gai-luron #################################### # This 'rubbish' by Sinanju # January 2010 # Big traffic lights # Little traffic lights # cop person # warden person # patrol person # marshall person #################################### # If going to use more than one 'person' at time, # then you will need to change button names, # as almost same button names used in each person #################################### # If you're confident in being able to use and configure lapper # then you should be able to change the 'CASE' to 'SUB' type events # CASE used to test #################################### # Coding assumes you have 'admin' rights #################################### CASE "!bigtraffic": # large traffic lights openGlobalButton( "tl_bg",181,40,17,84,1,20,32," "); openGlobalButton( "tl_red",150,12,80,80,1,20,0,"^1•"); openGlobalButton( "tl_yellow",150,38,80,80,1,20,0,"^3•"); openGlobalButton( "tl_green",150,64,80,80,1,20,0,"^2•"); BREAK; CASE "!smalltraffic": # small traffic lights openGlobalButton( "tl_bg",183,40,14,68,1,20,32," "); openGlobalButton( "tl_red",160,20,60,60,1,20,0,"^1•"); openGlobalButton( "tl_yellow",160,41,60,60,1,20,0,"^3•"); openGlobalButton( "tl_green",165,62,50,60,1,20,0,"^2•"); BREAK; CASE "!cop": IF ( UserIsAdmin( $userName ) == 1 ) THEN openPrivButton( "manhand1",164,70,3,15,1,12,32," "); openPrivButton( "manhand1a",164,70,3,15,1,12,32," "); openPrivButton( "manarm1",164,85,3,19,1,12,32," "); openPrivButton( "manarm1a",164,85,3,19,1,12,32," "); openPrivButton( "head1",171,84,10,16,1,12,32," "); openPrivButton( "head1a",171,90,10,10,1,12,32," "); openPrivButton( "white_band",171,85,10,4,1,12,16," "); openPrivButton( "marshall_hat",171,85,10,4,1,12,0,"^4POLICE"); openPrivButton( "yellow_trim",171,87,10,4,1,12,0,"^1--------"); openPrivButton( "earA",170,92,1,5,1,12,32," "); openPrivButton( "earB",181,92,1,5,1,12,32," "); openPrivButton( "earA1",170,92,1,5,1,12,32," "); openPrivButton( "earB1",181,92,1,5,1,12,32," "); openPrivButton( "eyeA",173,93,3,3,1,12,32,"^80"); openPrivButton( "eyeB",177,93,3,3,1,12,32,"^80"); openPrivButton( "mouth",175,97,3,3,1,12,32,"^1< === >"); openPrivButton( "yellow_vest1",159,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest2",160,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest3",162,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest4",164,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest5",166,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest6",168,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest7",170,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest8",172,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest9",173,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "manarm",185,103,10,5,1,12,32," "); openPrivButton( "manarma",185,103,10,5,1,12,32," "); openPrivButton( "manarm7",192,88,3,15,1,12,32," "); openPrivButton( "manarm7a",192,88,3,15,1,12,32," "); openPrivButton( "man8",167,107,18,6,1,12,0,"^4P O L I C E"); openPrivButton( "manlines1",167,112,18,6,1,12,0,"^4O F F I C E R"); openPrivButton( "clogo",169,117,14,4,1,12,0,"^2[c]"); openPrivButton( "manlogo",167,122,18,5,1,12,0,"^0S i n ' r s"); openPrivButton( "manll1",169,140,5,30,1,12,32," "); openPrivButton( "manll2",169,140,5,30,1,12,32," "); openPrivButton( "manrl1",178,140,5,30,1,12,32," "); openPrivButton( "manrl2",178,140,5,30,1,12,32," "); openPrivButton( "manlf",169,165,5,5,1,12,16," "); openPrivButton( "manrf",178,165,5,5,1,12,16," "); openPrivButton( "shorts1",168,130,16,10,1,12,32," "); openPrivButton( "shorts2",168,130,16,10,1,12,32," "); ELSE privMsg( langEngine( "%{main_notadmin}%" ) ); ENDIF BREAK; CASE "!warden": IF ( UserIsAdmin( $userName ) == 1 ) THEN openPrivButton( "manhand1",164,70,3,15,1,8,32," "); openPrivButton( "manhand1a",164,70,3,15,1,8,32," "); openPrivButton( "manarm1",164,85,3,19,1,8,32," "); openPrivButton( "manarm1a",164,85,3,19,1,8,32," "); openPrivButton( "head1",171,84,10,16,1,8,32," "); openPrivButton( "head1a",171,90,10,10,1,8,32," "); openPrivButton( "white_band",171,85,10,4,1,8,16," "); openPrivButton( "marshall_hat",171,85,10,4,1,8,0,"^2= WARDEN ="); openPrivButton( "yellow_trim",171,87,10,4,1,8,0,"^1--------"); openPrivButton( "earA",170,92,1,5,1,8,32," "); openPrivButton( "earB",181,92,1,5,1,8,32," "); openPrivButton( "earA1",170,92,1,5,1,8,32," "); openPrivButton( "earB1",181,92,1,5,1,8,32," "); openPrivButton( "eyeA",173,93,3,3,1,8,32,"^00"); openPrivButton( "eyeB",177,93,3,3,1,8,32,"^00"); openPrivButton( "mouth",175,97,3,3,1,8,32,"^1< === >"); openPrivButton( "green_vest1",159,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest2",160,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest3",162,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest4",164,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest5",166,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest6",168,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest7",170,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest8",172,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "green_vest9",173,88,20,50,1,8,0,langEngine( "%{main_greenvest}%") ); openPrivButton( "manarm",185,103,10,5,1,8,32," "); openPrivButton( "manarma",185,103,10,5,1,8,32," "); openPrivButton( "manarm7",192,88,3,15,1,8,32," "); openPrivButton( "manarm7a",192,88,3,15,1,8,32," "); openPrivButton( "man8",167,107,18,6,1,8,0,"^1T R A F F I C"); openPrivButton( "manlines1",167,112,18,6,1,8,0,"^1W A R D E N"); openPrivButton( "clogo",169,117,14,4,1,8,0,"^3[c]"); openPrivButton( "manlogo",167,122,18,5,1,8,0,"^0S i n ' r s"); openPrivButton( "manll1",169,140,5,30,1,8,32," "); openPrivButton( "manll2",169,140,5,30,1,8,32," "); openPrivButton( "manrl1",178,140,5,30,1,8,32," "); openPrivButton( "manrl2",178,140,5,30,1,8,32," "); openPrivButton( "manlf",169,165,5,5,1,8,16," "); openPrivButton( "manrf",178,165,5,5,1,8,16," "); openPrivButton( "shorts1",168,130,16,10,1,8,32," "); openPrivButton( "shorts2",168,130,16,10,1,8,32," "); ELSE privMsg( langEngine( "%{main_notadmin}%" ) ); ENDIF BREAK; CASE "!patrol": IF ( UserIsAdmin( $userName ) == 1 ) THEN openPrivButton( "manhand1",164,70,3,15,1,8,16," "); openPrivButton( "manhand1a",164,70,3,15,1,8,16," "); openPrivButton( "manarm1",164,85,3,19,1,8,16," "); openPrivButton( "manarm1a",164,85,3,19,1,8,16," "); openPrivButton( "head1",171,84,10,16,1,8,16," "); openPrivButton( "head1a",171,90,10,10,1,8,16," "); openPrivButton( "white_band",171,85,10,4,1,8,16," "); openPrivButton( "marshall_hat",171,85,10,4,1,8,0,"^3= PATROL ="); openPrivButton( "yellow_trim",171,87,10,4,1,8,0,"^1--------"); openPrivButton( "earA",170,92,1,5,1,8,16," "); openPrivButton( "earB",181,92,1,5,1,8,16," "); openPrivButton( "earA1",170,92,1,5,1,8,16," "); openPrivButton( "earB1",181,92,1,5,1,8,16," "); openPrivButton( "eyeA",173,93,3,3,1,8,16,"^00"); openPrivButton( "eyeB",177,93,3,3,1,8,16,"^00"); openPrivButton( "mouth",175,97,3,3,1,8,16,"^1< === >"); openPrivButton( "blue_vest1",159,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest2",160,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest3",162,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest4",164,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest5",166,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest6",168,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest7",170,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest8",172,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "blue_vest9",173,88,20,50,1,8,0,langEngine( "%{main_bluevest}%") ); openPrivButton( "stopsign_bg",116,14,100,100,1,8,0,"^1•"); openPrivButton( "stopsign",156,58,19,20,1,8,0,"^7S T O P"); openPrivButton( "manarm",185,103,10,5,1,8,16," "); openPrivButton( "manarma",185,103,10,5,1,8,16," "); openPrivButton( "manarm7",192,88,3,15,1,8,16," "); openPrivButton( "manarm7a",192,88,3,15,1,8,16," "); openPrivButton( "man8",167,107,18,6,1,8,0,"^3S C H O O L"); openPrivButton( "manlines1",167,112,18,6,1,8,0,"^3P A T R O L"); openPrivButton( "clogo",169,117,14,4,1,8,0,"^2[c]"); openPrivButton( "manlogo",167,122,18,5,1,8,0,"^7S i n ' r s"); openPrivButton( "manll1",169,140,5,30,1,8,16," "); openPrivButton( "manll2",169,140,5,30,1,8,16," "); openPrivButton( "manrl1",178,140,5,30,1,8,16," "); openPrivButton( "manrl2",178,140,5,30,1,8,16," "); openPrivButton( "manlf",169,165,5,5,1,8,32," "); openPrivButton( "manrf",178,165,5,5,1,8,32," "); openPrivButton( "shorts1",168,130,16,10,1,8,32," "); openPrivButton( "shorts2",168,130,16,10,1,8,32," "); ELSE privMsg( langEngine( "%{main_notadmin}%" ) ); ENDIF BREAK; CASE "!marshall": IF ( UserIsAdmin( $userName ) == 1 ) THEN openPrivButton( "manhand1",164,70,3,15,1,8,32," "); openPrivButton( "manhand1a",164,70,3,15,1,8,32," "); openPrivButton( "manarm1",164,85,3,19,1,8,32," "); openPrivButton( "manarm1a",164,85,3,19,1,8,32," "); openPrivButton( "head1",171,84,10,16,1,8,32," "); openPrivButton( "head1a",171,90,10,10,1,8,32," "); openPrivButton( "white_band",171,85,10,4,1,8,16," "); openPrivButton( "marshall_hat",171,85,10,4,1,8,0,"^3= MARSHALL ="); openPrivButton( "yellow_trim",171,87,10,4,1,8,0,"^1--------"); openPrivButton( "earA",170,92,1,5,1,8,32," "); openPrivButton( "earB",181,92,1,5,1,8,32," "); openPrivButton( "earA1",170,92,1,5,1,8,32," "); openPrivButton( "earB1",181,92,1,5,1,8,32," "); openPrivButton( "eyeA",173,93,3,3,1,8,32,"^80"); openPrivButton( "eyeB",177,93,3,3,1,8,32,"^80"); openPrivButton( "mouth",175,97,3,3,1,8,32,"^1< === >"); openPrivButton( "yellow_vest1",159,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest2",160,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest3",162,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest4",164,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest5",166,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest6",168,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest7",170,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest8",172,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "yellow_vest9",173,88,20,50,1,12,0,langEngine( "%{main_yellowvest}%") ); openPrivButton( "manarm",185,103,10,5,1,8,32," "); openPrivButton( "manarma",185,103,10,5,1,8,32," "); openPrivButton( "manarm7",192,88,3,15,1,8,32," "); openPrivButton( "manarm7a",192,88,3,15,1,8,32," "); openPrivButton( "manlines",167,102,18,6,1,8,0,"^1==========="); openPrivButton( "man8",167,107,18,6,1,8,0,"^1= MARSHALL ="); openPrivButton( "manlines1",167,112,18,6,1,8,0,"^1==========="); openPrivButton( "clogo",169,117,14,6,1,8,0,"^2[c]"); openPrivButton( "manlogo",167,122,18,6,1,8,0,"^0S i n ' r s"); openPrivButton( "manll1",169,140,5,30,1,8,32," "); openPrivButton( "manll2",169,140,5,30,1,8,32," "); openPrivButton( "manrl1",178,140,5,30,1,8,32," "); openPrivButton( "manrl2",178,140,5,30,1,8,32," "); openPrivButton( "manlf",169,165,5,5,1,8,16," "); openPrivButton( "manrf",178,165,5,5,1,8,16," "); openPrivButton( "shorts1",168,130,16,10,1,8,32," "); openPrivButton( "shorts2",168,130,16,10,1,8,32," "); ELSE privMsg( langEngine( "%{main_notadmin}%" ) ); ENDIF BREAK; main_yellowvest = "^3|"; main_greenvest = "^2|"; main_bluevest = "^4|";