Darihon Posted July 1, 2014 Author Report Share Posted July 1, 2014 Any suggestions for this script? I have the feeling that something is missing, but I'm unsure what.. Link to comment Share on other sites More sharing options...
Thug Posted July 2, 2014 Report Share Posted July 2, 2014 maybe you could make one for the other mods like lets say maybe if you would Napf ;) Link to comment Share on other sites More sharing options...
Darihon Posted July 2, 2014 Author Report Share Posted July 2, 2014 I could take a look at it. Any suggestions for the spot of the bank? I never played Napf for longer then an hour. Link to comment Share on other sites More sharing options...
Jim90 Posted July 9, 2014 Report Share Posted July 9, 2014 Everything worked except I was not getting any Al. Problem turned out to be that the Zip File (contains both files) download contains the version without AI. Went back and downloaded Basic Script , ran notepad++ compare, and can see that the 4 lines required to trigger the AI are missing from the zip. Hope this helps anyone else having the same problem. Thanks for an excellent mod Darihon. Link to comment Share on other sites More sharing options...
Darihon Posted July 9, 2014 Author Report Share Posted July 9, 2014 Everything worked except I was not getting any Al. Problem turned out to be that the Zip File (contains both files) download contains the version without AI. Went back and downloaded Basic Script , ran notepad++ compare, and can see that the 4 lines required to trigger the AI are missing from the zip. Hope this helps anyone else having the same problem. Thanks for an excellent mod Darihon. Strange. I'll see if I can get the scripts from my computer somewhere. I'll keep u up to date. Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 10, 2014 Report Share Posted July 10, 2014 Love This!! Good Job and Thanks for Sharing it :) I use the map Napf so i made my own bank.sqf and set new cords for the AI Spawn in the AI.sqf. My Bank spawns, the Notebook is working and also i get the money from Robery. The only thing is the AI´s are not spawning during the robbery. Should the AI.sqf not be entered in an init file or something? Because i dont see any file path to the AI.sqf in the other files. Here the part with the AI spawn Cords: // Spawns the AI _squad1 = _unitGroup createUnit ["Policeman",[14851.098, 14468.691, -6.2942505e-005], [], 2, "PRIVATE"]; _squad2 = _unitGroup createUnit ["Policeman",[14872.932, 14467.874, 2.8610229e-005], [], 2, "PRIVATE"]; _squad3 = _unitGroup createUnit ["Policeman",[14846.071, 14492.055, -7.6293945e-006], [], 2, "COLONEL"]; _squad4 = _unitGroup createUnit ["Policeman",[14864.344, 14494.723, -1.9073486e-005], [], 5, "PRIVATE"]; _squad5 = _unitGroup createUnit ["Policeman",[14860.426, 14482.654, 17.648575], [], 3, "PRIVATE"]; And the Target row with dors from Notebook: _target = [14838.616, 14492.407, 7.9892049]; Thanks in Advance! Ace Link to comment Share on other sites More sharing options...
Darihon Posted July 10, 2014 Author Report Share Posted July 10, 2014 You and Jim90 are right, I uploaded the wrong version. Luckily I had the right version on my pastebin account. Correct Script Just replace the robbank.sqf inside of the rob folder and u should be good to go. Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 10, 2014 Report Share Posted July 10, 2014 You and Jim90 are right, I uploaded the wrong version. Luckily I had the right version on my pastebin account. Correct Script Just replace the robbank.sqf inside of the rob folder and u should be good to go. Thanks a lot!Have there still a question :PHow can I determine how many AI's in the group are? It works when i change the red part? _squad1 = _unitGroup createUnit ["Policeman",[14853.33, 14430.045, 2.0980835e-005], [], 1, "PRIVATE"]; Thanks. Ace Link to comment Share on other sites More sharing options...
Darihon Posted July 10, 2014 Author Report Share Posted July 10, 2014 That whole code is 1 person, since as far as I know you are not able to spawn in groups, which is kind of stupid. So, if u use the normal AI script, then there are 5 'officers'. Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 11, 2014 Report Share Posted July 11, 2014 That whole code is 1 person, since as far as I know you are not able to spawn in groups, which is kind of stupid. So, if u use the normal AI script, then there are 5 'officers'. Thanks for the Help mate. Well i have the DZMS Script on server and yesterday i put more Units in: _squad1 = _unitGroup createUnit ["Policeman",[14853.33, 14430.045, 2.0980835e-005], [], 3, "PRIVATE"]; //Front Gate Left _squad2 = _unitGroup createUnit ["Policeman",[14890.051, 14437.4, 2.0980835e-005], [], 3, "PRIVATE"]; //Front Gate Right _squad3 = _unitGroup createUnit ["Policeman",[14853.914, 14504.818, 0.0010797265], [], 2, "COLONEL"]; //Back Door _squad4 = _unitGroup createUnit ["Policeman",[14867.699, 14490.447, 0.098247312], [], 1, "PRIVATE"]; //Rear Lobby Left _squad5 = _unitGroup createUnit ["Policeman",[14845.219, 14491.414, 0.092538379], [], 1, "PRIVATE"]; //Rear Lobby Right _squad6 = _unitGroup createUnit ["Policeman",[14848.313, 14467.119, 0.077769913], [], 1, "PRIVATE"]; //Front Lobby Left _squad7 = _unitGroup createUnit ["Policeman",[14872.707, 14470.82, 0.098954849], [], 1, "PRIVATE"]; //Front Lobby Right _squad8 = _unitGroup createUnit ["Policeman",[14861.218, 14472.932, 3.5906932], [], 1, "COLONEL"]; //First Floor _squad9 = _unitGroup createUnit ["Policeman",[14850.823, 14493.332, 7.0947413], [], 2, "PRIVATE"]; //Second Floor _squad10 = _unitGroup createUnit ["Policeman",[14858.677, 14472.639, 10.596051], [], 1, "PRIVATE"]; //Third Floor _squad11 = _unitGroup createUnit ["Policeman",[14862.432, 14469.878, 14.092906], [], 1, "PRIVATE"]; //Roof I played a bit with the numbers behind the code and i got more then 40 AI on my bank. Now I wanted to try it again with less numbers of AI, but the robbery fail every time when i try. Maybe becouse i changed that the script runs every hour? sleep 3600; script_in_progress = false; And when i try to use my own Text, i got only that first message: "You are about to rob the bank, your have 30 percent chance to get loot." Here my text: // Makes sure that the game checks for the 30 percent. _random = floor(random 11); //0-10 if (_random <= 3) then { cutText [format["You are robbing the bank, the Guards has been warned. It takes 5 minutes before the bank robbery is succesfull."], "PLAIN DOWN"]; sleep 5; [nil,nil,rTitleText,"The bank is getting robbed!", "PLAIN",10] call RE; sleep 55; cutText [format["4 minutes left..."], "PLAIN DOWN"]; sleep 20; curText [format["The Guards have discovered you! Protect yourself!", "PLAIN DOWN"]; execVM _AI; sleep 40; cutText [format["3 minutes left..."], "PLAIN DOWN"]; sleep 20; curText [format["I'm nervous, need a Cigarette!"], "PLAIN DOWN"]; sleep 40; cutText [format["2 minutes left..."], "PLAIN DOWN"]; sleep 20; curText [format["Oh Crap i shit into my Pants!"], "PLAIN DOWN"]; sleep 40; cutText [format["1 minute left..."], "PLAIN DOWN"]; sleep 20; curText [format["Grab your Balls and get out here!"], "PLAIN DOWN"]; sleep 40; player playActionNow "Medic"; sleep 8; [nil,nil,rTitleText,"The bank has been robbed succesfully!", "PLAIN",10] call RE; _random2 = floor(random 6); And how i can change to chance for the robbery? i want to push it a bit up. Thanks for all Darihon. Ace Link to comment Share on other sites More sharing options...
Darihon Posted July 11, 2014 Author Report Share Posted July 11, 2014 Give me your robbank.sqf. There might be a typo somewhere. About the higher change, change the following into a higher number (not higher then 10) if (_random <= 3) then { // change the 3 into i.e 8 DeliciousAce 1 Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 11, 2014 Report Share Posted July 11, 2014 Give me your robbank.sqf. There might be a typo somewhere. About the higher change, change the following into a higher number (not higher then 10) if (_random <= 3) then { // change the 3 into i.e 8 Thanks for that :)but I meant how can I increase the chance that I can rob the bank, not only the 30 percent, like 50-60% Sorry got a typing error on my last post :P And Here my robbank.sqf: private ["_silver","_silver10oz","_gold","_gold10oz","_briefcase","_random","_random2"]; _AI = "scripts\rob\AI.sqf"; // Checks if script is active, thanks Halvhjearne <3 if(isNil "script_in_progress")then{ script_in_progress = false; }; if(script_in_progress)exitwith{ systemChat "This script is only useable once (untill restart)!"; }; script_in_progress = true; // End Checks if Script is active cutText [format["You are about to rob the bank, your have 30 percent chance to get loot."], "PLAIN DOWN"]; sleep 5; // Currency // _silver = "ItemSilverBar"; _silver10oz = "ItemSilverBar10oz"; _gold = "ItemGoldBar"; _gold10oz = "ItemGoldBar10oz"; _briefcase = "ItemBriefcase100oz"; // Makes sure that the game checks for the 30 percent. _random = floor(random 11); //0-10 if (_random <= 3) then { cutText [format["You are robbing the bank, the Guards has been warned. It takes 5 minutes before the bank robbery is succesfull."], "PLAIN DOWN"]; sleep 5; [nil,nil,rTitleText,"The bank is getting robbed!", "PLAIN",10] call RE; sleep 55; cutText [format["4 minutes left..."], "PLAIN DOWN"]; sleep 20; curText [format["The Guards have discovered you! Protect yourself!", "PLAIN DOWN"]; execVM _AI; sleep 40; cutText [format["3 minutes left..."], "PLAIN DOWN"]; sleep 20; curText [format["I'm nervous, need a Cigarette!"], "PLAIN DOWN"]; sleep 40; cutText [format["2 minutes left..."], "PLAIN DOWN"]; sleep 20; curText [format["Oh Crap i shit into my Pants!"], "PLAIN DOWN"]; sleep 40; cutText [format["1 minute left..."], "PLAIN DOWN"]; sleep 20; curText [format["Grab your Balls and be get out here!"], "PLAIN DOWN"]; sleep 40; player playActionNow "Medic"; sleep 8; [nil,nil,rTitleText,"The bank has been robbed succesfully!", "PLAIN",10] call RE; _random2 = floor(random 6); // Makes an another random section, which chooses the loot randomly. if (_random2 == 0) then { cutText [format["The vault was emptied recently, no big loot, except some silver."], "PLAIN DOWN"]; player addMagazine _silver10oz; player addMagazine _silver10oz; player addMagazine _silver; systemChat "The robber got: 2x Silver10oz and 1x Silver"; }; if (_random2 == 1) then { cutText [format["Some gold, not much."], "PLAIN DOWN"]; player addMagazine _gold; player addMagazine _gold; systemChat "The robber got: 2x gold"; }; if (_random2 == 2) then { cutText [format["Nice job!"], "PLAIN DOWN"]; player addMagazine _gold10oz; player addMagazine _gold10oz; player addMagazine _gold10oz; player addMagazine _gold10oz; player addMagazine _gold10oz; systemChat "The robber got: 5x gold10oz"; }; if (_random2 == 3) then { cutText [format["Some gold, not much."], "PLAIN DOWN"]; player addMagazine _gold; player addMagazine _gold; player addMagazine _gold10oz; systemChat "The robber got: 2x gold and 1x Gold10oz"; }; if (_random2 == 4) then { cutText [format["The vault was emptied recently, no big loot, except some silver."], "PLAIN DOWN"]; player addMagazine _silver10oz; player addMagazine _silver10oz; player addMagazine _silver; systemChat "The robber got: 2x Silver10oz and 1x Silver"; }; if (_random2 == 5) then { cutText [format["Jack.. Jack.. Pot!!"], "PLAIN DOWN"]; player addMagazine _briefcase; player addMagazine _briefcase; systemChat "Ting ting ting... The jackpot has been stolen! Bye bye 2 briefcases"; }; // Output if above is not activated. } else { cutText [format["Bank robbery failed.."], "PLAIN DOWN"]; systemChat "Bank robbery failed!"; }; sleep 3600; script_in_progress = false; /* Remove the // to enable the script to able to be used again. By "sleep seconds:" i.e: sleep 60; (able to use script after 60 seconds again). */ Thank you dude. Ace Link to comment Share on other sites More sharing options...
Darihon Posted July 11, 2014 Author Report Share Posted July 11, 2014 So, it doesn't do anything once 'You are about to rob the bank, your have 30 percent chance to get loot.' has displayed? Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 11, 2014 Report Share Posted July 11, 2014 So, it doesn't do anything once 'You are about to rob the bank, your have 30 percent chance to get loot.' has displayed? After that message shows up it does nothing more. Link to comment Share on other sites More sharing options...
Darihon Posted July 11, 2014 Author Report Share Posted July 11, 2014 And that is only with your text? Does the normal one work fine? Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 11, 2014 Report Share Posted July 11, 2014 Ya the normal works fine. Only if i use my one :P Link to comment Share on other sites More sharing options...
Darihon Posted July 11, 2014 Author Report Share Posted July 11, 2014 This should fix it: http://pastebin.com/UT4h5ChY . By some you had 'CurText' instead of 'CutText'. Link to comment Share on other sites More sharing options...
DeliciousAce Posted July 11, 2014 Report Share Posted July 11, 2014 This should fix it: http://pastebin.com/UT4h5ChY . By some you had 'CurText' instead of 'CutText'. looooool, have not seen it, i rly need sleep for some days :) I will try the fixed one and give feedback later. Thanks for your help!! Darihon 1 Link to comment Share on other sites More sharing options...
Zoranth Posted July 28, 2014 Report Share Posted July 28, 2014 I have a couple of ideas to run by you for this great script. Is there any way that you can make it so that the script will spawn one bank per server reset, but have the bank location be one random town out of a preset list of towns? This will help prevent camping the bank right before reset to be the first ones in. Also, another variation of this script that would be really nice is to have it set up as a moving caravan of light armored vehicles travelling down a random road at the start. Once all of the AI have been defeated in the caravan, the loot is spawned into either a box next to the vehicles or in one of the vehicles. I would prefer in the vehicles that way the players will have to be careful not to blow up the vehicles if they want the loot. Link to comment Share on other sites More sharing options...
Darihon Posted August 5, 2014 Author Report Share Posted August 5, 2014 Hmmm, that are some neat ideas, Zoranth! I'll give them a try. Thanks for the feedback! Link to comment Share on other sites More sharing options...
Link Posted August 11, 2014 Report Share Posted August 11, 2014 How can we make it so the bank is only robbable each hour globally instead of per player? Groups of players on my server just camp it and each rob it in a row. Other than this issue im having no issues with it, nice script Link to comment Share on other sites More sharing options...
Darihon Posted August 12, 2014 Author Report Share Posted August 12, 2014 Hmm, not sure about that one. I'll take a look into it though. Thanks. Link to comment Share on other sites More sharing options...
MG-Maximus Posted August 20, 2014 Report Share Posted August 20, 2014 This is a fantastic script. How would I go about changing the loot on the dead policemen please? They all have radios and I would like to remove them. Link to comment Share on other sites More sharing options...
Darihon Posted August 20, 2014 Author Report Share Posted August 20, 2014 Thanks Maximus, Try the following edit . Just replace your current AI.sqf. This is untested though, so report any errors, please. :) If you want to edit any other loot, just add a line of code, in example: Add a weapon: _squad# addWeapon "ClassName"; Replace his current weapon: Change the weapon in: _squad# addWeapon "AK.."; Add an item: _squad# addMagazine ""; = 1 item. _squad# addMagazine ["ItemClassName",#]; = multiple items. If there are any questions, feel free to ask me. Link to comment Share on other sites More sharing options...
MG-Maximus Posted August 22, 2014 Report Share Posted August 22, 2014 Wow thanks for the reply! I tested this over and over with the 30 percent chance and it kept saying robbery failed (may look into increasing the chance). Then all of a sudden after several restarts I finally was successful and got jackpot for 2 bcs XD I can report that it works great! As far as I can tell there are no errors and the police now don't have radios! Woot. Thanks so much! On a side note, wouldn't it be cool if there were bank alarm sounds added hehe Max Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now