Jump to content

traffiq

Member
  • Posts

    33
  • Joined

  • Last visited

Posts posted by traffiq

  1. The problem with that approach is that it takes time to do these sql operations. 

    I think it would be kind of annoying if you are for example in elektro for a run.

    You lock your car somewhere, collect stuff. When you return to your car you have that seconds of waiting time until you can finally get in your car again.

    Just imagine if you happen to be under attack from zombies or players and can't get away because of that silly database stuff.

  2. How would i add this to the take clothes script as some players on my server have said your able to take a players clothes that are standing next to a trader. it then ports them to the debug area and kills them.

     

    Open up the file dayz_code\fn_selfActions.sqf in your mission.pbo

     

    Search for:

    ///////////////////////////////////////////////////////////////////////////
        // Remove Clothes
        if (_isMan and !_isAlive and !_isZombie and !_isAnimal) then {
        if (s_clothes < 0) then {
                s_clothes = player addAction [("<t color=""#FF0000"">" + ("Take Clothes!") + "</t>"), "custom\clothes.sqf",cursorTarget, 1, false, true, "",""];
            };
        } else {
            player removeAction s_clothes;
            s_clothes = -1;
        };
    ////////////////////////////////////////////////////////////////////////////
    

    replace with that:

    ///////////////////////////////////////////////////////////////////////////
    	// Remove Clothes 
    	if (isNil "inSafezone") then {
    		inSafezone = false;
    	} 
    
    	if (inSafezone == false) then {
    		if (_isMan and !_isAlive and !_isZombie and !_isAnimal) then {
    			if (s_clothes < 0) then {
    					s_clothes = player addAction [("<t color=""#FF0000"">" + ("Take Clothes!") + "</t>"), "custom\clothes.sqf",cursorTarget, 1, false, true, "",""];
    				};
    		} else {
    			player removeAction s_clothes;
    			s_clothes = -1;
    		};
    	}
        
    ////////////////////////////////////////////////////////////////////////////
    

    With that change players will not get the option to take away clothes in safezones.

  3. Traffiq if u have the knockout script aswell there is this huge bug, so if u knockout players in the safezone they never will be given the hourglass until they are out of the safezone

     

    I changed that so it is fine :)

     

    Just change the following file: custom\knockout.sqf

     

    Add this:

    if (isNil "inSafezone") then {
    	inSafezone = false;
    } 
    
    if (inSafezone == true) then {
      exitWith {cutText ["You can't knock a player out while you're in a safezone; don't you know anything?" , "PLAIN DOWN"]};
    }
    

    after that:

    if (_onLadder) exitWith {cutText ["You can't knock a player out while you're on a ladder; don't you know anything?" , "PLAIN DOWN"]};
    

    Edit:

     

    What that does is that players in safezones can no longer knockout other people.

    I figured that makes sense because what you don't want to happen while you're in a safezone is:

    - get killed

    - get knockout and get your stuff stolen or get raped :)

  4.  

    Tried setting all lines within 5 lines from 230 above and bellow to 1 - Log and its still kicking me for #230..

     

    Okay bungle i got your error. Your problem is this line:

    5 "zombieshield"
    

    change it to:

    5 "zombieshield" !"zombieshield.sqf"
    

    Seems like you are missing more stuff, like

    5 GodMode
    

    to this:

    5 GodMode !"Godmode.sqf"
    

    Take a look into my scripts.txt file and work out the differences. It looks like you dropped my changes somehow.

    These changes are required for the admin tools to work.

  5. Hi,

     

    the regular traders are not buying armored helicopters anymore.

    I had a look into the database and it seems like there must be traders that buy that stuff.

     

    In The db i found the following npc that should do what i want:

    Melissa's General Supplie

    Mrs. Doubtfire

    Dr. Vu

    Javon's Parts

     

    and so on. Now there is no point searching the hole map for one of those dudes.

    Does somebody know where one of them is or can someone tell me where the coordinates are stored for them ?

     

    Regards

    traffiq

  6. Hi bungle,

     

    i stumbled upon a bug in my files.

    You need to remove every line in battleye/attachto.txt between:

    1 "" !="VaultStorageLocked" !="Hedgehog_DZ" !="Sandbag1_DZ" !="Fort_RazorWire" !="WoodGate_DZ" !="Land_HBarrier1_DZ"
    

    and

    
    5 "Parachute"
    5 "VaultStorage" !"VaultStorageLocked"
    

    Otherwise the Cargosystem breaks. The dayzepoch devs added alle the cars in there.

  7. Hi MiniChiken,

     

    yes there is.

    In the SQL Folder of the Update there are two .sql Files ( old and new ).

    Just compare them via a diffTool ( Winmerge or something ).

     

    Copy out all "Insert Into" Commands that are not in old and run them on your sql server.

    You also need to add the tables that are missing in the "old" file.

    Look for lines like "Create table".

     

    What you dont want to have in there are the lines:

    "Drop if exists". That are the lines that just throw away everything.

     

    I hope that was enough information :)

  8. First of all: Good work :)

     

    I noticed a few things regarding the traders:

     

    1. where is one supposed to place the vehicles at the airplane trader up in the north east ? I dont see a helipad or something.

    2. the same as 1 goes for the trader at the nw airfield

    3. the traders at the nw airfield ( the two to the left ) are trying to walk into the center of the market place

    4. isn't it a bit to much fiddeling with all those categories for cars ? I mean it is great for buying but it lacks comfort for selling in my opinion.

     

    Edit:

    5. i also find a lot of following entries in my logfiles:

    "Server: Network message 28cc57a is pending"

    Someone has an idea on that one ?

     

    Edit 2:

    The point number 5 maybe has something todo with my super low debug fps ( its around 2 ). I dont know whats causing this.

     

    And i found a real error i guess here:

    17:19:31   Error Zero divisor
    17:19:31 File ca\modules\functions\arrays\fn_findNestedElement.sqf, line 72
    17:19:33 Error in expression <yFunc;
    };
    };
    
    
    if (!_found) then {_path resize ((count _path) - 1)};
    };
    
    [_array>
    17:19:33   Error position: <resize ((count _path) - 1)};
    };
    

    So long :)

×
×
  • Create New...