Jump to content

Bank Robbery Script Help


Blake2394

Recommended Posts

Hello Everyone!

 

I am trying to get infi's anti-hack to work with the bank robbery script found here:

http://epochmod.com/forum/index.php?/topic/12375-wiprelease-bank-robbery-v3/&page=1

 

The script works just fine when anti-hack is disabled. So it defiantly has something to with the 2 clashing. I even noticed towards the end of the thread (Page 11) that some other people were having the same issue. I have no clue what would be causing it as I am no expert. But I did gather some files and pointed out some lines that may help you figure it out.

 

fn_selfActions.sqf: (Lines: 101-110 is the scripts action menu)

http://pastebin.com/7VCdsGqz

 

arma2oaserver.RPT: (Can’t find anything here)

http://pastebin.com/3SYMu020

 

ArmA2OA.RPT: (Starting at line 455 is where the errors start)

http://pastebin.com/qMSaZbA1

 

I hope that was what is needed to help me out. Thanks in advance!

 

Regards,

Blake2394

Link to comment
Share on other sites

If I remember right, this is related to a dailog section of infiSTAR.    - */ _CUD =  false;    /* true or false */    /* Closes custom Dialogs (Menus) that are not in _ALLOWED_Dialogs */

remExField TitleText: The Del Grangos is getting robbed! -- is why you're getting kicked

To test, try commenting out that text field in the robbank.sqf,  OR  setting   _CUD   to false in the AH.sqf. (if you set this as false, you may open up a door for hacks )

It was a while ago but I think the first option above was the compromise I made, being the quickest fix for me.

I'm no expert either, and it was a while ago that I ran into the same problem, but I hope this takes you in the right direction to solving your problem.

 

 

 

 

Link to comment
Share on other sites

Hello scet27!

 

Thanks for the quick reply. I am going to test this out when i get home. I just checked the file and saw that there was a "_ALLOWED_Dialogs" setting. I am assuming instead of disabling _CUD completely, I could allow this dialog in there? I'm not sure what number i would need to put in there to make that work.

 

Here is what it currently has:

/*  ALLOWED Custom Dialogs "_ALLOWED_Dialogs" are only used if you have "_CUD =  true;"  */
/*  If you want install custom scripts using dialog windows, you can add IDD numbers  */
/*  from the custom script's desc.h file included through MPMIssions/description.ext  */
_ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144,711194,666,667];

 

This script dose not have a desc.h file so i would not know what to add.

Anyways, when I get home I am going to try and completely disable _CUD to see if that works. I will report back my findings.

 

Regards,

Blake2394

Link to comment
Share on other sites

Did you try commenting out the global text 'The Del Grangos is getting robbed!'  in the robbank.sqf?

Looking through my old files I see I did not change anything in the bank robbery script to stop the kicks, so looking through my AHconfig.sqf here are some (maybe) relevant

options to look at.

Also make sure your version of infistar is the latest one.

**Check Actions ?       */ _CSA = true; ------  if you have this set to true make sure that "s_player_bankrob" is in the ALLOWED Actions list

Also try these changing these options to false. ( these may open up doors for dirty hackers, be careful! )

 /*  Close Dialogs ?       */ _CUD =  false;    /* true or false */    /* Closes custom Dialogs (Menus) that are not in _ALLOWED_Dialogs */

/*  Check CMDMenus ?      */ _CCM = false;    /* true or false */    /* only disable this if you know what you are doing. */
/*  BLOCK ALL CMDMenus    */ _BCM = false;    /* true or false */    /* we don't need commandingMenus. so have this true. */

I cannot see anything else in my files that relates to the rob bank script, so hopefully one of these is the key for you

 

 

Link to comment
Share on other sites

Hello Again!

 

So I applied the infi tweaks first with no luck. Then re-enabled the settings back to true and commended this line out of the robbank.sqf and it worked!

 

[nil,nil,rTitleText,"The Del Grangos is getting robbed!", "PLAIN",6] call RE;

 

So my next question would be, is there another way to globally broadcast this message that would not cause the crash?

 

Thank you for all your help scet27!

 

Regards,

Blake2394

Link to comment
Share on other sites

I should also note for anyone having the same issue, there are more than one global messages than the one posted above.

 

They look like this:

[nil,nil,rTitleText,"The bank lost 1 Gold Bar during the robbery!", "PLAIN",6] call RE;

 

Make sure to comment all of them out or you will still get kicked.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...