TheLuffyPlayer Posted August 25, 2018 Share Posted August 25, 2018 (edited) So, i'm making a mod (Which is still in a alpha test version), BUT i want this mod to GTA III and i only know how to script for GTA San Andreas. So, could someone please edit the opcodes (Or anything necessary) to convert this script from SA to III?  Here's the script:  :MULTIP thread 'MULTIP'  :MULTIP_11 wait 0 [email protected] = Car.Create(101, [email protected], [email protected], [email protected]) Car.Health([email protected]) = 5000 [email protected] = Actor.CreateAsDriver(CivMale, 0, [email protected]) Actor.Health([email protected]) = 225  :MULTIP_71 wait 0 if 0AB0:  key_pressed 87 else_jump @MULTIP_71 Car.PutAt([email protected], [email protected], [email protected], [email protected])  :MULTIP_399 wait 0 if 0AB0:  key_pressed 65 else_jump @MULTIP_399 Car.PutAt([email protected], [email protected], [email protected], [email protected])  :MULTIP_521 wait 0 if 0AB0:  key_pressed 68 else_jump @MULTIP_521 Car.PutAt([email protected], [email protected], [email protected], [email protected])  :MULTIP_1024 wait 0 if 0AB0:  key_pressed 83 else_jump @MULTIP_1024 Car.PutAt([email protected], [email protected], [email protected], [email protected])  PS: I still don't know much about scripting, so if there's something wrong with this script, i'm accepting tips! PS (2): Also, sorry about my english (If i said anything wrong =P), i'm from another country.  ~ TheLuffyPlayer [A.k.a.: Carlos] Edited August 25, 2018 by TheLuffyPlayer Fixing grammar Link to comment Share on other sites More sharing options...
ZAZ Posted August 26, 2018 Share Posted August 26, 2018 The script is not only for SA, it's also uncomplete and bad written, like from a N00b. Biggest problem: the informations for locations is missing (coords) Either learn scripting or post in request topic CLEO MODSÂ Â Â CLEO Script Tutorial Link to comment Share on other sites More sharing options...
TheLuffyPlayer Posted September 4, 2018 Author Share Posted September 4, 2018 (edited) What about this following script: Â :MULTIP thread 'MULTIP' :MULTIP_11 wait 0 [email protected] = Actor.Create(CivMale, 0, 868.50, -305.61, 8.34)Â Actor.Health([email protected]) = 200 0489: set_actor [email protected] muted 1 Actor.GiveWeaponAndAmmo([email protected], 4, 9999) :MULTIP_71 wait 0 if 0AB0: Â key_pressed 87 else_jump @MULTIP_71 05BC: AS_actor [email protected] jump 1 jump @MULTIP_71 :MULTIP_399 wait 0 if 0AB0: Â key_pressed 65 else_jump @MULTIP_399 0172: [email protected] = actor $PLAYER_ACTOR x_angle000B: [email protected] += Â 45.0 Â // floating-point values jump @MULTIP_399 :MULTIP_521 wait 0 if 0AB0: Â key_pressed 68 else_jump @MULTIP_521 0172: [email protected] = actor $PLAYER_ACTOR y_angle000B: [email protected] += Â 45.0 Â // floating-point values jump @MULTIP_521 :MULTIP_1024 wait 0 if 0AB0: Â key_pressed 70 else_jump @MULTIP_1024 AS_actor [email protected] fire_weapon 1 jump @MULTIP_1024 Â Edited September 4, 2018 by TheLuffyPlayer Link to comment Share on other sites More sharing options...
TheLuffyPlayer Posted September 4, 2018 Author Share Posted September 4, 2018 (edited) <Comment Deleted> Edited September 4, 2018 by TheLuffyPlayer Link to comment Share on other sites More sharing options...
ZAZ Posted September 4, 2018 Share Posted September 4, 2018 Also bad what should that be AS_actor [email protected] fire_weapon 1 this code doesn't exist in that way     Basic method to convert: Change Sannybuilder to gta3 mode, take SA script and compile it. Then decompile it. Then you see in the decompiled script what code exist and what not.  But now you have one problem first, because your script contains CLASSES, like this: Actor.Create or this Actor.GiveWeaponAndAmmo which doesn't exist for gta3 in default Sannybuilder installation (read more about classes in Sannybuilder HELP: Coding > classes) So you need to recompile first the script in GTA SA mode But change first the option to write opcodes  Again a summary: 1. Click in Sannybuilder Menue at "Tools" , then "Options" and set a hook at "write opcodes" http://www.imagebam.com/image/c1af3130274408  2. Set Sannybuilder to SA mode and compile the script 3. Decompile the script, also in SA mode  4. Change Sannybuilder to gta3 mode and compile the script 5. Decompile the script, also in gta3 mode  6. compare the script that was decompiled in gta3 mode with the script that was decompiled in SA mode to see what code doesn't exist in gta3  7. find equivalent codes for the missing codes that exist in gta3 CLEO MODS   CLEO Script Tutorial Link to comment Share on other sites More sharing options...
TheLuffyPlayer Posted September 4, 2018 Author Share Posted September 4, 2018 13 minutes ago, ZAZ said: Also bad what should that be AS_actor [email protected] fire_weapon 1 this code doesn't exist in that way     Basic method to convert: Change Sannybuilder to gta3 mode, take SA script and compile it. Then decompile it. Then you see in the decompiled script what code exist and what not.  But now you have one problem first, because your script contains CLASSES, like this: Actor.Create or this Actor.GiveWeaponAndAmmo which doesn't exist for gta3 in default Sannybuilder installation (read more about classes in Sannybuilder HELP: Coding > classes) So you need to recompile first the script in GTA SA mode But change first the option to write opcodes  Again a summary: 1. Click in Sannybuilder Menue at "Tools" , then "Options" and set a hook at "write opcodes" http://www.imagebam.com/image/c1af3130274408  2. Set Sannybuilder to SA mode and compile the script 3. Decompile the script, also in SA mode  4. Change Sannybuilder to gta3 mode and compile the script 5. Decompile the script, also in gta3 mode  6. compare the script that was decompiled in gta3 mode with the script that was decompiled in SA mode to see what code doesn't exist in gta3  7. find equivalent codes for the missing codes that exist in gta3 Oh, ok, thanks! Link to comment Share on other sites More sharing options...