Created
September 14, 2018 16:14
-
-
Save nadalao/21c32d719fbf1576d9e35963a68d9e41 to your computer and use it in GitHub Desktop.
nadalao files v1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_START | |
{ | |
LVAR_INT scplayer onMission inter horas minutos dia | |
LVAR_FLOAT x y z | |
LVAR_TEXT_LABEL local0 | |
GET_PLAYER_CHAR 0 scplayer | |
main_loop: | |
WAIT 0 | |
READ_MEMORY 0x96ABA0 1 0 onMission | |
GET_AREA_VISIBLE inter | |
GET_TIME_OF_DAY horas minutos | |
GET_CURRENT_DAY_OF_WEEK dia | |
IF NOT dia = 6 | |
IF horas >= 0 | |
AND horas <= 5 | |
AND onMission = FALSE | |
AND NOT IS_CHAR_IN_ANY_CAR scplayer | |
AND inter = 0 | |
IF LOCATE_CHAR_ANY_MEANS_3D scplayer -1636.2 -2239.1 31.4 4.0 4.0 4.0 FALSE | |
IF GOSUB derrota | |
CLEO_CALL WriteGlobalVar 0 (409, 1)() //ativa | |
DISABLE_ALL_ENTRY_EXITS TRUE | |
TERMINATE_THIS_CUSTOM_SCRIPT | |
ELSE | |
PRINT_STRING_NOW "incorrect installation" 5000 | |
ENDIF | |
ENDIF | |
ENDIF | |
ENDIF | |
GOTO main_loop | |
derrota: | |
LOAD_AND_LAUNCH_CUSTOM_MISSION "slenderman" | |
DUMP | |
00 | |
ENDDUMP | |
RETURN | |
} | |
{ | |
LVAR_INT var value // In | |
LVAR_INT p i | |
WriteGlobalVar: | |
READ_MEMORY 0x00468D5E 4 0 (p) | |
i = var * 4 | |
p += i | |
WRITE_MEMORY p 4 (value) 0 | |
CLEO_RETURN 0 | |
} | |
SCRIPT_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment