CLEO Help How can I make this happen?

CLEO related
Status
Not open for further replies.

Shayel

New member
Joined
Jul 17, 2019
Messages
3
Reaction score
0
Hello, I was wondering if anyone could help me with this thing.

This is the .CS file opened in Sanny, this isn't the whole code but that's the part related to the INI config:

Code:
:SETTINGS_1
wait 50
if
0AAB:   file_exists "CLEO\MOSH_configuration.iNi"
else_jump @SETTINGS_2
wait 5
3@ = 0.0
0AF0: 20@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_1"
0AF0: 21@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_2"
0AF0: 19@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "OBJECT_ID"
0AF0: 5@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "ACTIVATE_DETECTOR"
0AF0: 22@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "UNDERGROUND_TRAP"
0AF0: 23@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HEIGHT_TRAP"
0AF0: 24@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "SEABED_TRAP"
0AF0: 25@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "INTERIOR_TRAP"
//0AF0: 26@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HOUSE_TRAP"
jump @ACTIVATE_1

:SETTINGS_2
wait 10
0AF1: write_int 57 to_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_1" //domylnie 9
0AF1: write_int 80 to_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_2" //domylnie P
0AF1: write_int 1210 to_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "OBJECT_ID" //domylnie obiekt walizki
0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "ACTIVATE_DETECTOR" //domylnie w³aczony
0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "UNDERGROUND_TRAP" //domylnie w³aczony
0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HEIGHT_TRAP" //domylnie w³aczony
0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "SEABED_TRAP" //domylnie w³aczony
0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "INTERIOR_TRAP" //domylnie w³aczony
//0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HOUSE_TRAP" //domylnie w³aczony
0AF1: write_int 0 to_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key "COUNT" //brak obiektףw do wykluczenia
jump @SETTINGS_1

:ACTIVATE_1
wait 10
if and
  key_down 20@
  key_down 21@
else_jump @ACTIVATE_1
wait 10
jump @ACTIVATE_2

:ACTIVATE_2
wait 10
if and
  key_up 20@
  key_up 21@
else_jump @ACTIVATE_2
wait 10
13@ = 0
14@ = 0
jump @FINDER_1

:FINDER_1
wait 0
11@ = 0 //0 - wyszukiwanie przerwano
00BE: text_clear_all

if
  0039:   13@ == 1
then
  print "~Y~SEARCHING FOR OBJECTS" 3500
else
  print "~W~SEARCHING FOR OBJECTS" 3500
end
if
  14@ > 40
then
  if
    0039:   13@ == 1
  then
    13@ = 0
  else
    13@ = 1
  end
  14@ = 0
else
  14@ += 1
end

0A8D: 29@ = read_memory 12010652 size 4 virtual_protect 0
29@ += 4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
30@ = 0

:FINDER_2
0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
29@ += 1
if and
  31@ >= 0
  128 > 31@
else_jump @FINDER_3
005A: 31@ += 30@ // (int)
if and
  key_down 20@
  key_down 21@
then
  jump @DRAWING_2
end
if
   Object.Model(31@) == 19@
else_jump @FINDER_3

1@ = 0
0AF0: 2@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key "COUNT"
for 12@ = 1 to 2@ step 1
  0093: 0@ = integer 12@ to_float
  0AED: 4@v = float 0@ to_string_format "%.15gX"
  0AF2: 15@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key 4@v
  0AED: 4@v = float 0@ to_string_format "%.15gY"
  0AF2: 16@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key 4@v
  0AED: 4@v = float 0@ to_string_format "%.15gZ"
  0AF2: 17@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key 4@v

  if
    04E6:   object 31@ near_point 15@ 16@ 17@ radius 2.0 2.0 2.0 flag 0
  then
    1@ = 1
    12@ = 2@
  end
end

And this is the complete INI file:
Code:
[SETTINGS]
ACTIVATE_1=57
;first key to activate scanner (keycodes are listed on forum)
ACTIVATE_2=80
;second key to activate scan (press two keys to start scan)
OBJECT_ID=348
;specify object ID
;by default is set to 1210 (standard briefcase)
[TRAP_DETECTOR]
ACTIVATE_DETECTOR=1
;0 - off (even when key is pressed, detector will not be activated)
;1 - on
UNDERGROUND_TRAP=1
;0 - ignore checking that condition
;1 - check only if object is under textures
HEIGHT_TRAP=1
;0 - ignore checking that condition
;1 - check if object is too high from ground
SEABED_TRAP=1
;0 - don't check this condition
;1 - check if object is under seabed
INTERIOR_TRAP=1
;0 - don't check this condition
;1 - check if object is in different interior
[BLACKLIST]
;here you can add static server objects to ignore it in scan
;
;How to add object here?
;1. You must have X,Y and Z coordinates of that object
;2. Then increase value in key "COUNT" by 1
;3. Add key <count_value>X <count_value>Y and <count_value>Z
;4. Paste XYZ values to that keys without any spaces
;
;Here you have complete example:
COUNT=1
1X=0.6
1Y=0.1
1Z=10.7
[TEMP]
1X=1961.65
1Y=2323.02
1Z=16.4688
1M=46792709
1O=20483
2X=2098.13
2Y=2191.18
2Z=16.3711
2M=55050242
2O=20739

All I want to do is - instead of having only 1 option of modelID to scan for (At this time, this is model ID 348), I want it to scan other model ID's at the same time, whenever I activate the cheat.
The models I want are those:

[TOP PRIORITY]
348, 349, 355, 356, 357

[Bottom PRIORITY]
353, 352, 348, 372, 335, 358

I arranged the objects into priorities in case that you won't be able to insert all of the objects, but if you would be able to insert all of the above that will be awesome!

If you can't be arsed to code it yourself, I'd be okay with an explanation on how to do it and I'll do it myself. Thank you all for your time!
 
Status
Not open for further replies.
Top