Jump to content

Lacost

Member
  • Posts

    24
  • Joined

  • Last visited

Posts posted by Lacost

  1. someone found a way to have them be different prices? This way you can have an entry level AI, and high tier AI.

    .....
    _unittype = bon_recruit_recruitableunits select _sel;
    _typename = lbtext [BON_RECRUITING_UNITLIST,_sel];
    if (str _unittype == str "Soldier_Sniper_PMC_DZ") then 
    	{
    		if([["ItemGoldBar",2]] call player_checkItems) then 
    			{
    			_removed = [["ItemGoldBar",2]] call player_removeItems;
    			goto "label";
    			}
    			else
    			{
    			systemchat format ["<System>: Not enough money!"];
    			};
    	};
    #label	
    _queuepos = 0;
    _queuecount = count bon_recruit_queue;
    if(_queuecount > 0) then {
    ..... 

    Not tested.

  2. Hello all,

    Any Advice on how to get this to work with Infi AH?

    I mean It works fine for Admin but not for players.

    Also I'm not russian, so what does the <system> text actually say when dialog char?

    STENCH

    <System>:Not enough gold. For hiring need 4 gold.

    Open recruit.sqf go to very bottom, replace hint and systemChat message.

    For those who use infistar. Open ah.sqf, around 920 line:

    if ((isNull (findDisplay 106)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144))

    replace this:

    if ((isNull (findDisplay 106)) && (isNull (findDisplay 20001)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144))
  3.  
    Download:
     
     
    Install:
     
    1. Open description.ext at very bottom add this:
    #include "bon_recruit_units\dialog\common.hpp"
    #include "bon_recruit_units\dialog\recruitment.hpp"
    2. Open init.sqf at very bottom
     
    [] execVM "bon_recruit_units\init.sqf";
     
    3. Open missin.sqm around 42 line. 
    change 
    	class Groups
    	{
    		items=2;
    
    to
     
    	class Groups
    	{
    		items=3;
    
    4. Around 1155 line after this 
     
    		class Item1
    		{
    			side="LOGIC";
    			class Vehicles
    			{
    				items=1;
    				class Item0
    				{
    					position[]={8810.7705,138.52499,11751.518};
    					id=50;
    					side="LOGIC";
    					vehicle="FunctionsManager";
    					leader=1;
    					lock="UNLOCKED";
    					skill=0.60000002;
    				};
    			};
    		};
    
     
    add this
     
    		class Item2
    		{
    			side="GUER";
    			class Vehicles
    			{
    				items=1;
    				class Item0
    				{
    					position[]={8260.7832,4.104394,15461.444};//Trader City Lenzburg
    					azimut=138.222;
    					special="NONE";
    					id=101;
    					side="GUER";
    					vehicle="UN_CDF_Soldier_SL_EP1";
    					leader=1;
    					skill=0.60000002;
    					init="this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;this enableSimulation false;this setcaptive true;this addAction [""Recruit Units"",""bon_recruit_units\open_dialog.sqf""]";
    				};
    			};
    		};		
    

    5. Copy bon_recruit_units to your MPMissions folder.

     
    P.s. 3,4 step only for NAPF vanila map. If you want to use the script on a different map. You must change trader position.
    position[]={8260.7832,4.104394,15461.444};//Trader City Lenzburg
    
    Known bugs:
    1. Problem with safe zones. Bots can shoot in safe zones.
×
×
  • Create New...