Guest User

MOSH project Open source

a guest
Apr 11th, 2016
2,924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.54 KB | None | 0 0
  1. {$CLEO .cs}
  2. if
  3.   8AAB:   file_exists "CLEO\MOSH_bY_m1zg4rd.cs"
  4. else_jump @SETTINGS_1
  5. while true
  6.   print "~R~DONT ~Y~S~R~TEAL MY ~Y~S~R~CRIPT" 1500 //an easy way to check if someone changed ini name to "by superleethaxoor/styler"
  7. end
  8. 004E: end_thread
  9.  
  10. //IF YOU DECRYPTED THIS, THEN FINE, YOU ARE ENOUGH SMART TO READ MY CODE
  11. //BUT IF YOU READ THIS BY DOWNLOADED PROGRAM/DECRYPTER, THEN YOU ARE JUST POOR SCRIPT KIDDIE, DIE
  12. //i was wondering if someone already cracked this encryption and saw this hidden message ;_;
  13.  
  14. //3@ - index/number of founded objects
  15. //29@, 30@, 31@ - variables used in scan
  16. //0@, 1@, 2@ - coords of searched object
  17. //4@v - key names to save coords of object
  18.  
  19. //19@ - ID of object to find
  20. //5@ - suspisious objects detection system (0 lub 1)
  21.  
  22. //7@ - markers
  23. //8@ - loop variable for deleting markers
  24. //9@ - temporary object to help detect suspicious objects
  25.  
  26. //10@ - temporary variable float
  27.  
  28. //11@ - decides if scan is canceled, if markers display is canceled (0 lub 1)
  29.  
  30. //12@ - temporary variable integer
  31. //13@ - temporary variable integer
  32. //14@ - temporary variable integer
  33.  
  34. //15@, 16@, 17@ - coords of player (get distance)
  35. //18@ - distance from object (float)
  36.  
  37. //20@ - first activation/deactivation key
  38. //21@ - second activation/deactivation key
  39.  
  40. //22@ - detect objects under textures
  41. //23@ - detect too high objects
  42. //24@ - detect objects under seabed (0 lub 1)
  43. //25@ - try to detect object in a building (still beta, even after a year)
  44.  
  45. :SETTINGS_1
  46. wait 50
  47. if
  48. 0AAB:   file_exists "CLEO\MOSH_configuration.iNi"
  49. else_jump @SETTINGS_2
  50. wait 5
  51. 3@ = 0.0
  52. 0AF0: 20@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_1"
  53. 0AF0: 21@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_2"
  54. 0AF0: 19@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "OBJECT_ID"
  55. 0AF0: 5@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "ACTIVATE_DETECTOR"
  56. 0AF0: 22@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "UNDERGROUND_TRAP"
  57. 0AF0: 23@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HEIGHT_TRAP"
  58. 0AF0: 24@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "SEABED_TRAP"
  59. 0AF0: 25@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "INTERIOR_TRAP"
  60. //0AF0: 26@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HOUSE_TRAP"
  61. jump @ACTIVATE_1
  62.  
  63. :SETTINGS_2
  64. wait 10
  65. 0AF1: write_int 57 to_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_1" //default 9
  66. 0AF1: write_int 80 to_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "ACTIVATE_2" //default P
  67. 0AF1: write_int 1210 to_ini_file "CLEO\MOSH_configuration.iNi" section "SETTINGS" key "OBJECT_ID" //default object id, why noobz cant open config file to change it ;_;
  68. 0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "ACTIVATE_DETECTOR" //default enabled
  69. 0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "UNDERGROUND_TRAP" //default enabled
  70. 0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HEIGHT_TRAP" //default enabled
  71. 0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "SEABED_TRAP" //default enabled
  72. 0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "INTERIOR_TRAP" //default enabled
  73. //0AF1: write_int 1 to_ini_file "CLEO\MOSH_configuration.iNi" section "TRAP_DETECTOR" key "HOUSE_TRAP" //default enabled
  74. 0AF1: write_int 0 to_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key "COUNT" //no exceptions
  75. jump @SETTINGS_1
  76.  
  77. :ACTIVATE_1
  78. wait 10
  79. if and
  80.   key_down 20@
  81.   key_down 21@
  82. else_jump @ACTIVATE_1
  83. wait 10
  84. jump @ACTIVATE_2
  85.  
  86. :ACTIVATE_2
  87. wait 10
  88. if and
  89.   key_up 20@
  90.   key_up 21@
  91. else_jump @ACTIVATE_2
  92. wait 10
  93. 13@ = 0
  94. 14@ = 0
  95. jump @FINDER_1
  96.  
  97. :FINDER_1
  98. wait 0
  99. 11@ = 0 //0 - scan canceled
  100. 00BE: text_clear_all
  101.  
  102. if
  103.   0039:   13@ == 1
  104. then
  105.   print "~Y~SEARCHING FOR OBJECTS" 3500
  106. else
  107.   print "~W~SEARCHING FOR OBJECTS" 3500
  108. end
  109. if
  110.   14@ > 40
  111. then
  112.   if
  113.     0039:   13@ == 1
  114.   then
  115.     13@ = 0
  116.   else
  117.     13@ = 1
  118.   end
  119.   14@ = 0
  120. else
  121.   14@ += 1
  122. end
  123.  
  124. 0A8D: 29@ = read_memory 12010652 size 4 virtual_protect 0
  125. 29@ += 4
  126. 0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
  127. 30@ = 0
  128.  
  129. :FINDER_2
  130. 0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
  131. 29@ += 1
  132. if and
  133.   31@ >= 0
  134.   128 > 31@
  135. else_jump @FINDER_3
  136. 005A: 31@ += 30@ // (int)
  137. if and
  138.   key_down 20@
  139.   key_down 21@
  140. then
  141.   jump @DRAWING_2
  142. end
  143. if
  144.    Object.Model(31@) == 19@
  145. else_jump @FINDER_3
  146.  
  147. 1@ = 0
  148. 0AF0: 2@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key "COUNT"
  149. for 12@ = 1 to 2@ step 1
  150.   0093: 0@ = integer 12@ to_float
  151.   0AED: 4@v = float 0@ to_string_format "%.15gX"
  152.   0AF2: 15@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key 4@v
  153.   0AED: 4@v = float 0@ to_string_format "%.15gY"
  154.   0AF2: 16@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key 4@v
  155.   0AED: 4@v = float 0@ to_string_format "%.15gZ"
  156.   0AF2: 17@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "BLACKLIST" key 4@v
  157.  
  158.   if
  159.     04E6:   object 31@ near_point 15@ 16@ 17@ radius 2.0 2.0 2.0 flag 0
  160.   then
  161.     1@ = 1
  162.     12@ = 2@
  163.   end
  164. end
  165.  
  166. if
  167.   0039:   1@ == 0
  168. else_jump @FINDER_3
  169.  
  170. Object.StorePos(31@, 0@, 1@, 2@)
  171. 000B: 3@ += 1.0
  172.  
  173. 0AED: 4@v = float 3@ to_string_format "%.15gX"
  174. 0AF3: write_float 0@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  175. 0AED: 4@v = float 3@ to_string_format "%.15gY"
  176. 0AF3: write_float 1@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  177. 0AED: 4@v = float 3@ to_string_format "%.15gZ"
  178. 0AF3: write_float 2@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  179.  
  180. 7@ = Marker.CreateIconAndSphere(56, 0@, 1@, 2@)
  181. 0AED: 4@v = float 3@ to_string_format "%.15gM"
  182. 0AF1: write_int 7@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  183.  
  184. 0AED: 4@v = float 3@ to_string_format "%.15gO"
  185. 0AF1: write_int 31@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  186.  
  187. :FINDER_3
  188. 30@ += 256
  189. if //original: 89344
  190.   30@ > 256000 //if scan is complete
  191. else_jump @FINDER_2
  192. //go back and start from beginning
  193. if
  194. 0021:   3@ > 0.0
  195. else_jump @FINDER_1
  196. 00BE: text_clear_all
  197. 0092: 0@ = float 3@ to_integer
  198. if
  199.   0039:   0@ == 1
  200. then
  201.   printf "~Y~%d ~G~OBJECT FOUND ~Y~:3" 2500 0@
  202. else
  203.   printf "~Y~%d ~G~OBJECTS FOUND ~Y~:3" 2500 0@
  204. end
  205. jump @DRAWING_1
  206.  
  207. :DRAWING_1
  208. wait 10
  209. if and
  210.   key_down 20@ //removing all marskers and objects from list
  211.   key_down 21@
  212. else_jump @ANTITRAP_1
  213. wait 10
  214. 11@ = 1 //1 - markers are disabled
  215. jump @DRAWING_2
  216.  
  217. :DRAWING_2
  218. wait 10
  219. if and
  220.   key_up 20@
  221.   key_up 21@
  222. else_jump @DRAWING_2
  223. 0092: 13@ = float 3@ to_integer
  224. for 8@ = 1 to 13@ step 1
  225.   008F: 10@ = integer 8@ to_float
  226.   0AED: 4@v = float 10@ to_string_format "%.15gM"
  227.   0AF0: 7@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  228.   0164: disable_marker 7@
  229. end
  230.  
  231. 00BE: text_clear_all
  232. if
  233.   0039:   11@ == 1
  234. then
  235.   print "~R~MARKERS DELETED" 1300
  236. else
  237.   print "~R~SEARCHING ABORTED" 1300
  238. end
  239. 3@ = 0.0
  240. jump @ACTIVATE_1
  241.  
  242. :ANTITRAP_1 //this system detects suspicious object locations, after detection
  243. wait 10     //it change its radar icon from 56 to 19 (red flag, avoid it like communism)
  244. if
  245.   0039:   5@ == 1  
  246. else_jump @DRAWING_1
  247. if
  248.   001B:   50 > 13@
  249. then
  250.   13@ +=1
  251.   jump @DRAWING_1
  252. end
  253.  
  254. 0092: 13@ = float 3@ to_integer
  255. for 8@ = 1 to 13@ step 1
  256.   7@ = 0
  257.   008F: 10@ = integer 8@ to_float
  258.   0AED: 4@v = float 10@ to_string_format "%.15gX"
  259.   0AF2: 0@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  260.   0AED: 4@v = float 10@ to_string_format "%.15gY"
  261.   0AF2: 1@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  262.   0AED: 4@v = float 10@ to_string_format "%.15gZ"
  263.   0AF2: 2@ = get_float_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  264.  
  265.   02CE: 14@ = ground_z_at 0@ 1@ 2@
  266.  
  267.   if and
  268.     0039:   22@ == 1 //0 - check if object is not under textures (impossible to see without cheats)
  269.     //06BD:   no_obstacles_between 0@ 1@ 2@ and 0@ 1@ 14@ solid 1 car 0 actor 0 object 0 particle 0
  270.     0043:   14@ == 0.0
  271.   then
  272.     7@ = 1
  273.   else
  274.     0087: 18@ = 2@ // (float)
  275.     0063: 18@ -= 14@  // (float)
  276.     if and
  277.       0039:   23@ == 1 //1 - check if object is not too high (impossible to see without cheats)
  278.       //06BD:   no_obstacles_between 0@ 1@ 2@ and 0@ 1@ 14@ solid 1 car 0 actor 0 object 0 particle 0
  279.       0021:   18@ > 8.0
  280.     then
  281.       7@ = 1
  282.     end  
  283.   end  
  284.  
  285.   092E: get_water_height_at 0@ 1@ ignore_waves 1 store_to 14@
  286.  
  287.   if
  288.     0021:   14@ > -1000.0
  289.   then
  290.     7@ = 0
  291.   end
  292.  
  293.   if and
  294.     0039:   24@ == 1
  295.     0021:   14@ > -1000.0
  296.     0023:   -67.0 > 2@
  297.   then
  298.     7@ = 2
  299.   else
  300.     0087: 18@ = 2@ // (float)
  301.     0063: 18@ -= 14@  // (float)    
  302.     if and
  303.       0039:   23@ == 1
  304.       0021:   14@ > -1000.0
  305.       0021:   18@ > 8.0
  306.       06BD:   no_obstacles_between 0@ 1@ 2@ and 0@ 1@ 0.0 solid 1 car 0 actor 0 object 0 particle 0
  307.     then
  308.       0092: 2@ = float 2@ to_integer
  309.       0092: 18@ = float 18@ to_integer
  310.       7@ = 2
  311.     end
  312.   end
  313.                          
  314.   0AED: 4@v = float 10@ to_string_format "%.15gM"
  315.   0AF0: 9@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  316.  
  317.   //detecting object in a building (impossible to see without cheats) (26@)
  318.  
  319.   if
  320.     0039:   7@ == 1
  321.   then
  322.     04C4: store_coords_to 15@ 16@ 17@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0
  323.     050A: 18@ = distance_between_XYZ 15@ 16@ 17@ and_XYZ 0@ 1@ 2@
  324.     if
  325.       0023:   130.0 > 18@
  326.     then
  327.       0164: disable_marker 9@
  328.       9@ = Marker.CreateIconAndSphere(19, 0@, 1@, 2@)
  329.       0AF1: write_int 9@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v      
  330.     end
  331.   else
  332.     if
  333.       0039:   7@ == 2
  334.     then
  335.       0164: disable_marker 9@
  336.       9@ = Marker.CreateIconAndSphere(19, 0@, 1@, 2@)
  337.       0AF1: write_int 9@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v      
  338.     else
  339.       if
  340.         25@ == 1
  341.       then
  342.         09E8: 14@ = actor $PLAYER_ACTOR active_interior
  343.         0AED: 4@v = float 10@ to_string_format "%.15gO"
  344.         0AF0: 9@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  345.         if
  346.           03CA:   object 9@ exists
  347.         then
  348.           0AB1: @GetObjectInterior 1 OBJECT_HANDLE 9@ STORE_TO 18@
  349.          
  350.           if
  351.             0039:   18@ == 13
  352.           then
  353.             18@ = 0
  354.           end
  355.          
  356.           if
  357.             0039:   14@ == 13
  358.           then
  359.             14@ = 0
  360.           end
  361.          
  362.           if
  363.             003B:   14@ == 18@  // (int)
  364.           then
  365.             0AED: 4@v = float 10@ to_string_format "%.15gM"
  366.             0AF0: 9@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  367.             0164: disable_marker 9@
  368.             9@ = Marker.CreateIconAndSphere(56, 0@, 1@, 2@)
  369.             0AF1: write_int 9@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  370.          else
  371.             0AED: 4@v = float 10@ to_string_format "%.15gM"
  372.             0AF0: 9@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v  
  373.             0164: disable_marker 9@
  374.             9@ = Marker.CreateIconAndSphere(19, 0@, 1@, 2@)
  375.             0AF1: write_int 9@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v    
  376.           end
  377.         else
  378.           0AED: 4@v = float 10@ to_string_format "%.15gM"
  379.           0AF0: 9@ = get_int_from_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  380.           0164: disable_marker 9@
  381.           9@ = Marker.CreateIconAndSphere(56, 0@, 1@, 2@)
  382.           0AF1: write_int 9@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v      
  383.         end
  384.       else  
  385.         0164: disable_marker 9@
  386.         9@ = Marker.CreateIconAndSphere(56, 0@, 1@, 2@)
  387.         0AF1: write_int 9@ to_ini_file "CLEO\MOSH_configuration.iNi" section "TEMP" key 4@v
  388.       end
  389.     end  
  390.   end
  391. end
  392. 13@ = 0
  393. jump @DRAWING_1
  394.  
  395. //0AB1: @GetObjectInterior 1 OBJECT_HANDLE 0@ STORE_TO 1@
  396. :GetObjectInterior
  397. 0A98: 1@ = object 0@ struct
  398. 1@ += 47
  399. 0A8D: 2@ = read_memory 1@ size 1 virtual_protect 1
  400. 0AB2: ret 1 2@
Advertisement
Add Comment
Please, Sign In to add comment