Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IF(@#allaunchmode=0);
- DO;
- IF(@#alblock=0);
- MATCH(%DAYTIME%,"^(.+?)\:",{#hours});
- IF((#hours>17)||(#hours<6));
- GAMMA(200,0.5);
- ELSE;
- #g=%LIGHT%*40;
- #g=#g/3;
- #g=200-#g;
- GAMMA(%#g%,0.5);
- ENDIF;
- ENDIF;
- IFMATCHES(%@¤tcmd%,"^/al$");
- @#filtermes=1;
- @#allaunchmode=1;
- EXEC(AutoLight.txt,"Processing...");
- ENDIF;
- UNTIL;
- ENDIF;
- IF(@#allaunchmode=1);
- @#allaunchmode=0;
- UNSET(@¤tcmd);
- MATCH(%@&chatcontent%,"^/al (.+?)\b",{&case});
- IFMATCHES(%&case%,"^s$|^set$",&ccase);
- MATCH(%@&chatcontent%,"^/al %&ccase% (.+)$",{#g});
- IF(#g>200);#g=200;ENDIF;
- @#alblock=1;
- GAMMA(%#g%,0.5);
- LOG(&7[&eAL&7] &cGAMMA set to &a%#g%);
- ENDIF;
- IFMATCHES(%&case%,"^rs$|^reset$|^r$",&ccase);
- LOG(&7[&eAL&7] &cGAMMA resetted);
- @#alblock=0;
- ENDIF;
- IF(%&ccase%=);
- ECHO(%@&chatcontent%);
- ENDIF;
- ENDIF;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement