blackinfo13
Member
- Joined
- Jul 21, 2024
- Messages
- 17
- Reaction score
- 1
This is from OP-HaX src, a really good autoscroller:Did anyone fix it?
:CODE_AutoSCroll
0000:
WHILE TRUE
WAIT 0
31@ = TRUE
IF
31@ == TRUE
THEN
IF
80DF: actor $PLAYER_ACTOR driving
THEN
IF
80E1: player 0 pressed_key 6
THEN
IF OR
00E1: player 0 pressed_key 0
00E1: player 0 pressed_key 1
THEN
if or
02D8: actor $PLAYER_ACTOR current_weapon == 22
02D8: actor $PLAYER_ACTOR current_weapon == 23
02D8: actor $PLAYER_ACTOR current_weapon == 24
02D8: actor $PLAYER_ACTOR current_weapon == 26
02D8: actor $PLAYER_ACTOR current_weapon == 27
02D8: actor $PLAYER_ACTOR current_weapon == 28
02D8: actor $PLAYER_ACTOR current_weapon == 29
02D8: actor $PLAYER_ACTOR current_weapon == 31
THEN
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x718 // Current Weapon Slot
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x5A0 // Start of weapon data (28 bytes)
1@ *= 0x1C
005A: 0@ += 1@ // Get weapon structure
0@ += 0x8 // Pointer to "Ammo in clip"
0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0 // Ammo in clip
IF
3@ <= 2
THEN
0470: 7@ = actor $PLAYER_ACTOR current_weapon
wait 50
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
wait 50
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 7@
END
END
END
END
END
END
END
{$CLEO .cs}
{$USE ini}
{$USE file}
{$USE bitwise}
{$USE clipboard}
{$USE CLEO+}
{$USE newOpcodes}
0000:
REPEAT
WAIT 0
UNTIL 0256: player $PLAYER_CHAR defined
CONST
KEY_ON = 88
END
31@ = FALSE
WHILE TRUE
WAIT 0
IF
0AB0: KEY_ON
THEN
REPEAT
WAIT 0
UNTIL 8AB0: KEY_ON
0B12: 31@ = 31@ XOR TRUE
0AD1: "asc %d" 300 31@
END
IF
31@ == TRUE
THEN
IF
80DF: actor $PLAYER_ACTOR driving
THEN
IF
80E1: player 0 pressed_key 6
THEN
IF OR
00E1: player 0 pressed_key 0
00E1: player 0 pressed_key 1
THEN
if or
02D8: actor $PLAYER_ACTOR current_weapon == 22
02D8: actor $PLAYER_ACTOR current_weapon == 23
02D8: actor $PLAYER_ACTOR current_weapon == 24
02D8: actor $PLAYER_ACTOR current_weapon == 26
02D8: actor $PLAYER_ACTOR current_weapon == 27
02D8: actor $PLAYER_ACTOR current_weapon == 28
02D8: actor $PLAYER_ACTOR current_weapon == 29
02D8: actor $PLAYER_ACTOR current_weapon == 31
THEN
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x718 // Current Weapon Slot
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x5A0 // Start of weapon data (28 bytes)
1@ *= 0x1C
005A: 0@ += 1@ // Get weapon structure
0@ += 0x8 // Pointer to "Ammo in clip"
0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0 // Ammo in clip
IF
3@ <= 2
THEN
0470: 7@ = actor $PLAYER_ACTOR current_weapon
wait 50
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
wait 50
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 7@
END
END
END
END
END
END
END
0A93: terminate_this_custom_script
Here is the script from OP-HaX, press X to turn off and on:
Code:{$CLEO .cs} {$USE ini} {$USE file} {$USE bitwise} {$USE clipboard} {$USE CLEO+} {$USE newOpcodes} 0000: REPEAT WAIT 0 UNTIL 0256: player $PLAYER_CHAR defined CONST KEY_ON = 88 END 31@ = FALSE WHILE TRUE WAIT 0 IF 0AB0: KEY_ON THEN REPEAT WAIT 0 UNTIL 8AB0: KEY_ON 0B12: 31@ = 31@ XOR TRUE 0AD1: "asc %d" 300 31@ END IF 31@ == TRUE THEN IF 80DF: actor $PLAYER_ACTOR driving THEN IF 80E1: player 0 pressed_key 6 THEN IF OR 00E1: player 0 pressed_key 0 00E1: player 0 pressed_key 1 THEN if or 02D8: actor $PLAYER_ACTOR current_weapon == 22 02D8: actor $PLAYER_ACTOR current_weapon == 23 02D8: actor $PLAYER_ACTOR current_weapon == 24 02D8: actor $PLAYER_ACTOR current_weapon == 26 02D8: actor $PLAYER_ACTOR current_weapon == 27 02D8: actor $PLAYER_ACTOR current_weapon == 28 02D8: actor $PLAYER_ACTOR current_weapon == 29 02D8: actor $PLAYER_ACTOR current_weapon == 31 THEN 0A96: 0@ = actor $PLAYER_ACTOR struct 0@ += 0x718 // Current Weapon Slot 0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0 0A96: 0@ = actor $PLAYER_ACTOR struct 0@ += 0x5A0 // Start of weapon data (28 bytes) 1@ *= 0x1C 005A: 0@ += 1@ // Get weapon structure 0@ += 0x8 // Pointer to "Ammo in clip" 0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0 // Ammo in clip IF 3@ <= 2 THEN 0470: 7@ = actor $PLAYER_ACTOR current_weapon wait 50 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0 wait 50 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 7@ END END END END END END END 0A93: terminate_this_custom_script
Will it not be exposed in the service wtls 2 ?Here is the script from OP-HaX, press X to turn off and on:
Code:{$CLEO .cs} {$USE ini} {$USE file} {$USE bitwise} {$USE clipboard} {$USE CLEO+} {$USE newOpcodes} 0000: REPEAT WAIT 0 UNTIL 0256: player $PLAYER_CHAR defined CONST KEY_ON = 88 END 31@ = FALSE WHILE TRUE WAIT 0 IF 0AB0: KEY_ON THEN REPEAT WAIT 0 UNTIL 8AB0: KEY_ON 0B12: 31@ = 31@ XOR TRUE 0AD1: "asc %d" 300 31@ END IF 31@ == TRUE THEN IF 80DF: actor $PLAYER_ACTOR driving THEN IF 80E1: player 0 pressed_key 6 THEN IF OR 00E1: player 0 pressed_key 0 00E1: player 0 pressed_key 1 THEN if or 02D8: actor $PLAYER_ACTOR current_weapon == 22 02D8: actor $PLAYER_ACTOR current_weapon == 23 02D8: actor $PLAYER_ACTOR current_weapon == 24 02D8: actor $PLAYER_ACTOR current_weapon == 26 02D8: actor $PLAYER_ACTOR current_weapon == 27 02D8: actor $PLAYER_ACTOR current_weapon == 28 02D8: actor $PLAYER_ACTOR current_weapon == 29 02D8: actor $PLAYER_ACTOR current_weapon == 31 THEN 0A96: 0@ = actor $PLAYER_ACTOR struct 0@ += 0x718 // Current Weapon Slot 0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0 0A96: 0@ = actor $PLAYER_ACTOR struct 0@ += 0x5A0 // Start of weapon data (28 bytes) 1@ *= 0x1C 005A: 0@ += 1@ // Get weapon structure 0@ += 0x8 // Pointer to "Ammo in clip" 0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0 // Ammo in clip IF 3@ <= 2 THEN 0470: 7@ = actor $PLAYER_ACTOR current_weapon wait 50 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0 wait 50 01B9: set_actor $PLAYER_ACTOR armed_weapon_to 7@ END END END END END END END 0A93: terminate_this_custom_script