TheJeweleR Posted April 1, 2010 Share Posted April 1, 2010 // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 10DEFINE OBJECT SANNY BUILDER 3.04 DEFINE OBJECT BODYARMOUR // Object number -1DEFINE OBJECT BRIBE // Object number -2DEFINE OBJECT HEALTH // Object number -3DEFINE OBJECT ADRENALINE // Object number -4DEFINE OBJECT NTO_B_S // Object number -5DEFINE OBJECT WHEEL_OR1 // Object number -6DEFINE OBJECT PICKUPSAVE // Object number -7DEFINE OBJECT NEWRAMP // Object number -8DEFINE OBJECT INFO // Object number -9DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 1 // Use -1 in order not to compile AAA scriptDEFINE SCRIPT pot AT @MAIN_706 // 0DEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 574{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' fade 0 0 042C: set_total_missions_to 0 030D: set_max_progress 0 0997: set_total_respect_points_to 1339 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 13 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.562 -1666.864 Camera.SetAtPos(850.0, -2450.0, 44.0)062A: change_float_stat 165 to 1000.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 22 to 1000.0 062A: change_float_stat 23 to 1000.0 0998: add_respect 3500 062A: change_float_stat 80 to 2000.0 062A: change_float_stat 225 to 1000.0 062A: change_float_stat 160 to 1000.0 062A: change_float_stat 223 to 1000.0 062A: change_float_stat 229 to 1000.0 062A: change_float_stat 230 to 1000.0 062A: change_float_stat 69 to 1000.0 062A: change_float_stat 70 to 1000.0 062A: change_float_stat 71 to 1000.0 062A: change_float_stat 72 to 1000.0 062A: change_float_stat 73 to 1000.0 062A: change_float_stat 74 to 1000.0 062A: change_float_stat 75 to 1000.0 062A: change_float_stat 76 to 1000.0 062A: change_float_stat 77 to 1000.0 062A: change_float_stat 78 to 1000.0 0629: change_integer_stat 181 to 4 062A: change_float_stat 24 to 573.0 062A: change_float_stat 165 to 200.0 $PLAYER_CHAR = Player.Create(#NULL, 1048.162, -2307.793, 15.0)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)select_interior 0 0860: link_actor $PLAYER_ACTOR to_interior 0 Actor.Angle($PLAYER_ACTOR) = 27.221wait 50 Player.SetClothes($PLAYER_CHAR, "PLAYER_TORSO", "TORSO", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "CONVPROBLU", "CONV", Shoes)Player.SetClothes($PLAYER_CHAR, "CORNROWSB", "CORNROWS", Head)Player.SetClothes($PLAYER_CHAR, "BBSHORTWHT", "BOXINGSHORT", Legs)Player.SetClothes($PLAYER_CHAR, "WATCHCRO2", "WATCH", 14)Player.SetClothes($PLAYER_CHAR, "GLASSES05", "GLASSES03", 15)Player.Build($PLAYER_CHAR)0793: save_player_clothes 07FE: set_actor $PLAYER_ACTOR fighting_style_to 7 6 01F0: set_max_wanted_level_to 4 set_weather 17 Player.CanMove($PLAYER_CHAR) = False01B7: release_weather wait 10 wait 10 fade 1 0 wait 10 Player.CanMove($PLAYER_CHAR) = True03E6: remove_text_box 00BE: text_clear_all wait 10 Camera.SetBehindPlayerCamera.Restore_WithJumpCutcreate_thread @MAIN_624 :MAIN_624if 0AB0: key_pressed 9 else_jump @MAIN_695 0926: $SCRIPT_STATUS = external_script_status 0 (pot) if $SCRIPT_STATUS = 1 else_jump @MAIN_688 08A9: load_external_script 0 (pot) if 08AB: external_script 0 (pot) loaded else_jump @MAIN_688 0913: run_external_script 0 (pot) :MAIN_688jump @MAIN_688 :MAIN_695090F: end_external_script 0 (pot) wait 5E14 //-------------External script 0 (pot)---------------:MAIN_7060000: NOP jump @MAIN_715 :MAIN_715wait 0 Actor.Health($PLAYER_ACTOR) = 5000end_thread My main.scm. But it isnt work no crash no error :S Pls help me! Link to comment Share on other sites More sharing options...
ZAZ Posted April 2, 2010 Share Posted April 2, 2010 (edited) My main.scm. But it isnt work no crash no error :S Pls help me! You're missing basic knowledge A thread must be closed, either it must end with end_thread or it should jump to a previous adress to repeate the script. We usually let it jump to an adress in the beginning or let it run in a tiny unending loop :MAIN_103A4: name_thread 'MAIN'016A: fade 0 () 0 ms042C: set_total_missions_to 0030D: set_total_mission_points_to 001F0: set_max_wanted_level_to 60111: set_wasted_busted_check_to 0 (disabled)00C0: set_current_time 10 004E4: unknown_refresh_game_renderer_at 2494.5 -1668.503CB: set_camera 2494.5 -1668.5 13.40053: $PLAYER_CHAR = create_player #NULL at 2494.5 -1668.5 13.407AF: $PLAYER_GROUP = player $PLAYER_CHAR group01F5: $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR0173: set_actor $PLAYER_ACTOR z_angle_to 180.00373: set_camera_directly_behind_player070D: $PLAYER_CHAR0629: change_stat 181 (islands unlocked) to 4 // integer see statdisp.dat01B6: set_weather 104BB: select_interior 0 // select render area01B4: set_player $PLAYER_CHAR frozen_state 1 (unfrozen)01B7: release_weather016C: restart_if_wasted at 2494.5 -1668.5 13.4 angle 180.0 unknown 0016D: restart_if_busted at 2494.5 -1668.5 13.4 angle 180.0 unknown 0016A: fade 1 () 1000 ms0001: wait 100 ms03E6: remove_text_box0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here:MAIN_30001: wait 2500 ms//end_thread0002: jump @MAIN_3 You can create a new thread which must the be enclosed to the main thread and the other threads I recomand to give it a name with thread 'EXSS' create_thread @EXSS :EXSSthread 'EXSS' :EXSS_1wait 0 if Player.Defined($PLAYER_CHAR)jf @EXSS_1if 0AB0: key_pressed 9 jf @EXSS_3 0926: $SCRIPT_STATUS = external_script_status 0 (pot) if $SCRIPT_STATUS == 0 jf @EXSS_1 08A9: load_external_script 0 (pot) if 08AB: external_script 0 (pot) loaded jf @EXSS_1 0913: run_external_script 0 (pot) jump @EXSS_1 :EXSS_3090F: end_external_script 0 (pot) jump @EXSS_1 or integrate the starter thread in the main thread and remove create_thread @MAIN_624 // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 10DEFINE OBJECT SANNY BUILDER 3.04 DEFINE OBJECT BODYARMOUR // Object number -1DEFINE OBJECT BRIBE // Object number -2DEFINE OBJECT HEALTH // Object number -3DEFINE OBJECT ADRENALINE // Object number -4DEFINE OBJECT NTO_B_S // Object number -5DEFINE OBJECT WHEEL_OR1 // Object number -6DEFINE OBJECT PICKUPSAVE // Object number -7DEFINE OBJECT NEWRAMP // Object number -8DEFINE OBJECT INFO // Object number -9DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 1 // Use -1 in order not to compile AAA scriptDEFINE SCRIPT pot AT @POTEX // 0DEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 574{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' fade 0 0 042C: set_total_missions_to 0 030D: set_max_progress 0 0997: set_total_respect_points_to 1339 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 13 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.562 -1666.864 Camera.SetAtPos(850.0, -2450.0, 44.0)062A: change_float_stat 165 to 1000.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 22 to 1000.0 062A: change_float_stat 23 to 1000.0 0998: add_respect 3500 062A: change_float_stat 80 to 2000.0 062A: change_float_stat 225 to 1000.0 062A: change_float_stat 160 to 1000.0 062A: change_float_stat 223 to 1000.0 062A: change_float_stat 229 to 1000.0 062A: change_float_stat 230 to 1000.0 062A: change_float_stat 69 to 1000.0 062A: change_float_stat 70 to 1000.0 062A: change_float_stat 71 to 1000.0 062A: change_float_stat 72 to 1000.0 062A: change_float_stat 73 to 1000.0 062A: change_float_stat 74 to 1000.0 062A: change_float_stat 75 to 1000.0 062A: change_float_stat 76 to 1000.0 062A: change_float_stat 77 to 1000.0 062A: change_float_stat 78 to 1000.0 0629: change_integer_stat 181 to 4 062A: change_float_stat 24 to 573.0 062A: change_float_stat 165 to 200.0 $PLAYER_CHAR = Player.Create(#NULL, 1048.162, -2307.793, 15.0)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)Camera.SetBehindPlayerselect_interior 0 Actor.Angle($PLAYER_ACTOR) = 27.221wait 50 Player.SetClothes($PLAYER_CHAR, "PLAYER_TORSO", "TORSO", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "CONVPROBLU", "CONV", Shoes)Player.SetClothes($PLAYER_CHAR, "CORNROWSB", "CORNROWS", Head)Player.SetClothes($PLAYER_CHAR, "BBSHORTWHT", "BOXINGSHORT", Legs)Player.SetClothes($PLAYER_CHAR, "WATCHCRO2", "WATCH", 14)Player.SetClothes($PLAYER_CHAR, "GLASSES05", "GLASSES03", 15)Player.Build($PLAYER_CHAR)0793: save_player_clothes 07FE: set_actor $PLAYER_ACTOR fighting_style_to 7 6 01F0: set_max_wanted_level_to 4 set_weather 17 01B7: release_weather fade 1 1000 wait 100 Player.CanMove($PLAYER_CHAR) = True03E6: remove_text_box 00BE: text_clear_all :MAIN_3wait 0 if Player.Defined($PLAYER_CHAR)jf @MAIN_3 if 0AB0: key_pressed 9 jf @MAIN_7 0926: $SCRIPT_STATUS = external_script_status 0 (pot) if $SCRIPT_STATUS == 0 jf @MAIN_3 08A9: load_external_script 0 (pot) if 08AB: external_script 0 (pot) loaded jf @MAIN_3 0913: run_external_script 0 (pot) jump @MAIN_3 :MAIN_7090F: end_external_script 0 (pot) jump @MAIN_3 //-------------External script 0 (pot)---------------:POTEXthread "POTEX"09BD: Extern_Script_Status_flag 1 00BA: show_text_styled GXT 'FEM_ON' time 1000 style 4 // ON062A: change_float_stat 24 to 1440.0 wait 0 Actor.Health($PLAYER_ACTOR) = 250wait 3000 00BA: show_text_styled GXT 'FEM_OFF' time 1000 style 4 // OFFwait 1000 09BD: Extern_Script_Status_flag 0 end_thread opcode 09BD: gives the extern script state, either on/1 or off/0 to check with 0926: $SCRIPT_STATUS = external_script_status 0 (pot) if $SCRIPT_STATUS == 0 jf @MAIN_3 Edited April 2, 2010 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
TheJeweleR Posted April 2, 2010 Author Share Posted April 2, 2010 hmm very nice Very good thanks man thanks a lot. But i have got a problem. I put his codes in my .scm (in script folder) it runs very well but i put this scm in my mpack1 folder (scr.scm) my .scm runs but my external script doesnt run :S I didnt understand it :S Please help me and i am not american pls speak a basic eng. Link to comment Share on other sites More sharing options...
Dutchy3010 Posted April 2, 2010 Share Posted April 2, 2010 You can't use external scripts with MPACK. However, there is a fix made by the SannyBuilder team [more information]. DYOM - Create, play, share! Link to comment Share on other sites More sharing options...
TheJeweleR Posted April 2, 2010 Author Share Posted April 2, 2010 You can't use external scripts with MPACK. However, there is a fix made by the SannyBuilder team [more information]. I made it.But it doesn'T run :S So i have to normal .scm for my mod Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now