Jump to content

TylerHumor

Member
  • Posts

    51
  • Joined

  • Last visited

Posts posted by TylerHumor

  1.  

    Can i do it like this ? 

     

    //ranks.sqf
    //Original Script by hambeast
    //Modified and Completed by Evan Black
     
    // Wait for ingame
    waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
    waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
    sleep 2; //Optional delay to ensure script execution
     
    // Rank/UID list. Use Example Below.
     
    //UID Example: Ranks_CORPORAL        =    ["7656xxxxxxxxxxxxxx","7656xxxxxxxxxxxxxx"]; no trailing comma
    Ranks_OWNER        =    [];
    Ranks_Admin        =    [];
    Ranks_Moderator      =    [];
    Ranks_Pro-Donator           =    [];
    Ranks_Donator         =    [];
    Ranks_Helper         =    [];
     
    _playerUID = getPlayerUID player; //get player UID
     
    //check to see if our player matches
    switch (true) do {
        case (_playerUID in Ranks_OWNER)   : { player setRank "OWNER"; }; //setRank to CORPORAL for everyone in the CORPORAL list.
        case (_playerUID in Ranks_Admin)   : { player setRank "Admin"; };
        case (_playerUID in Ranks_Moderator) : { player setRank "Moderator"; };
        case (_playerUID in Ranks_Pro-Donator)    : { player setRank "Pro-Donator"; };
        case (_playerUID in Ranks_Donator)      : { player setRank "Donator"; };
        case (_playerUID in Ranks_COLONEL)    : { player setRank "Helper"; };
     
        default { player setRank "PRIVATE"; }; //setting default rank for all others    
    };

     

    I don't know if you just quickly changed it or not, but watch the "COLONEL" at the very bottom. Probably needs to be "Helper". Nice idea, I hope that works! :D

  2.  

    I personally use this:

    DELETE FROM `object_data`
    WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY)  //where not updated for 3 days (this includes no damage, inventory, worldspace updates?)
    AND `CharacterID` > 0 // character id is larger than zero (will not clean up dynamically spawned vehicles)
    AND `Classname` NOT LIKE 'Tent%' // so that all non vehicles are ignored
    AND `Classname` NOT LIKE '%Locked'
    AND `Classname` NOT LIKE 'Land\_%'
    AND `Classname` NOT LIKE 'Cinder%'
    AND `Classname` NOT LIKE 'Wood%'
    AND `Classname` NOT LIKE 'Metal%'
    AND `Classname` NOT LIKE '%Storage%'
    AND `Classname` NOT IN ('OutHouse_DZ','GunRack_DZ','WorkBench_DZ','Sandbag1_DZ','FireBarrel_DZ','DesertCamoNet_DZ','StickFence_DZ','LightPole_DZ','DeerStand_DZ','ForestLargeCamoNet_DZ','DesertLargeCamoNet_DZ','Plastic_Pole_EP1_DZ','Hedgehog_DZ','FuelPump_DZ','Fort_RazorWire','SandNest_DZ','ForestCamoNet_DZ','Fence_corrugated_DZ','CanvasHut_DZ','Generator_DZ','BagFenceRound_DZ')
    AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') OR (`Inventory` = '[[[],[]],[[],[]],[[],[]]]') ) //empty inventory
    ;

     

    I don't think Inventory = 0 will work (as it doesn't come up as 0). Please correct me if wrong.

     

    This error occured when placing this into a new event in my database:

     

    The following query has failed: "CREATE DEFINER=`ss4560Tyler`@`%` EVENT `removeUntouchedVehicles` ON SCHEDULE EVERY 1 DAY STARTS '2015-01-25 00:00:00.000000' ON COMPLETION NOT PRESERVE ENABLE COMMENT 'Removes Untouched and Empty vehicles' DO DELETE FROM `object_data` WHERE `LastUpdated` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) //where not updated for 3 days (this includes no damage, inventory, worldspace updates?) AND `CharacterID` > 0 // character id is larger than zero (will not clean up dynamically spawned vehicles) AND `Classname` NOT LIKE 'Tent%' // so that all non vehicles are ignored AND `Classname` NOT LIKE '%Locked' AND `Classname` NOT LIKE 'Land\_%' AND `Classname` NOT LIKE 'Cinder%' AND `Classname` NOT LIKE 'Wood%' AND `Classname` NOT LIKE 'Metal%' AND `Classname` NOT LIKE '%Storage%' AND `Classname` NOT IN ('OutHouse_DZ','GunRack_DZ','WorkBench_DZ','Sandbag1_DZ','FireBarrel_DZ','DesertCamoNet_DZ','StickFence_DZ','LightPole_DZ','DeerStand_DZ','ForestLargeCamoNet_DZ','DesertLargeCamoNet_DZ','Plastic_Pole_EP1_DZ','Hedgehog_DZ','FuelPump_DZ','Fort_RazorWire','SandNest_DZ','ForestCamoNet_DZ','Fence_corrugated_DZ','CanvasHut_DZ','Generator_DZ','BagFenceRound_DZ') AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') OR (`Inventory` = '[[[],[]],[[],[]],[[],[]]]') ) //empty inventory ;"

    MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/where not updated for 3 days (this includes no damage, inventory, worldspace up' at line 2

    NEVERMIND.. I am an idiot..

     

  3. I'd like to add an event into my database that cleans up vehicles that haven't moved in a specified amount of time, BUT only if they don't have gear in them.

     

    My guess:

    EventName: removeUntouchedVehicles
    
    Status: Enabled
    
    Execute Every: (Number that I choose)_Day
    
    Start: (Whenever I start it) Ex:2015-01-24 22:31:37
    
    End: (Blank)
    
    Definition: DELETE FROM `object_data` WHERE Inventory = 0 <--(Not sure how to edit the "not being touched part, I assume it'd be with "worldspace".)
    
    Definer: (MyInfo)
    
    Comment: Removes Untouched and Empty vehicles

    I would place this info into a new event in my database. Hopefully I'm not far off.

  4. looking for a server to work on , shutting mine down soon  need to find some other admins who love the game(over 18 years old) and need some one whos set up server and added in scripts , preferably on a dedicated server or vds 

     

    am willing to share my pbos, with tons of scripts already added in

     

    im kinda tierd of paying for a server month to month so i will not be adding money every month but i will add in my fair share of work

    and i do not work with pay to win servers..

    If you're still looking for a server to help admin, we'd love to have you. It'd be nice to have an admin that I can talk to about a bit scripting without responses of "mhm" and "yeah". Replies of scripting knowledge would be nice and especially since it seems that you are more experienced than I.

  5. server_cleanupGroups = {
    if (DZE_DYN_AntiStuck3rd > 3) then { DZE_DYN>
    21:55:02   Error position: <DZE_DYN_AntiStuck3rd > 3) then { DZE_DYN>
    21:55:02   Error Undefined variable in expression: dze_dyn_antistuck3rd
    21:55:02 File z\addons\dayz_server\init\server_functions.sqf, line 825
    21:55:02 Error in expression <_skin","_skinOk","_result"];
    waitUntil {r_player_dead};
    _playerBody = player;
    _s>
    21:55:02   Error position: <r_player_dead};
    _playerBody = player;
    _s>
    21:55:02   Error Undefined variable in expression: r_player_dead
    21:55:02 File mpmissions\__cur_mp.chernarus\init.sqf, line 129
    21:55:02 Error in expression <
    if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer >
    21:55:02   Error position: <PVDZE_serverObjectMonitor) && (isPlayer >
    21:55:02   Error Undefined variable in expression: pvdze_serverobjectmonitor
    21:55:02 File z\addons\dayz_server\init\server_functions.sqf, line 843
    21:55:02 Error in expression <_skin","_skinOk","_result"];
    waitUntil {r_player_dead};
    _playerBody = player;
    

    It spams other things too, but it's just a giant list of things like this.

     

    And I don't have a personal RPT log, the one that is for your character.

     

    I'm also confused by the mix of comments saying you don't need to touch your dayz_code.pbo? For people with server providers, we use the dayzcode/mission.pbo and server.pbo or do we have to edit the compiles.sqf in the @Epoch or whatever file in our FTP?

    I also managed to kill myself and now when I spawn "paraspawn", I never reach the ground.

  6. U checked server RPT logs

     

    AND

     

    Client RPT logs?

    server_cleanupGroups = {
    if (DZE_DYN_AntiStuck3rd > 3) then { DZE_DYN>
    21:55:02   Error position: <DZE_DYN_AntiStuck3rd > 3) then { DZE_DYN>
    21:55:02   Error Undefined variable in expression: dze_dyn_antistuck3rd
    21:55:02 File z\addons\dayz_server\init\server_functions.sqf, line 825
    21:55:02 Error in expression <_skin","_skinOk","_result"];
    waitUntil {r_player_dead};
    _playerBody = player;
    _s>
    21:55:02   Error position: <r_player_dead};
    _playerBody = player;
    _s>
    21:55:02   Error Undefined variable in expression: r_player_dead
    21:55:02 File mpmissions\__cur_mp.chernarus\init.sqf, line 129
    21:55:02 Error in expression <
    if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer >
    21:55:02   Error position: <PVDZE_serverObjectMonitor) && (isPlayer >
    21:55:02   Error Undefined variable in expression: pvdze_serverobjectmonitor
    21:55:02 File z\addons\dayz_server\init\server_functions.sqf, line 843
    21:55:02 Error in expression <_skin","_skinOk","_result"];
    waitUntil {r_player_dead};
    _playerBody = player;
    

    It spams other things too, but it's just a giant list of things like this.

     

    And I don't have a personal RPT log, the one that is for your character.

  7. Loads MissionFile>blackscreen and loads a bar at the bottom of the screen and it takes a while (no zupa text during this) > see map in background thing pops up as usual, press "okay"> black screen+zupa text+loading bar>in game.

     

    In shorter text, the zupa text shows up during the last few loads that only takes a few seconds, but not during the first long load.. if any of that made sense.

  8. So, to bind the action to the item I would change the fn_selfAction.sqf part to:

    Is this correct?

    					_karena = items player;
    
    				if ("IRStrobe" in _karena) then {
    					hasBagItem = true;
    				} else { hasBagItem = false;};
    					if ((_typeOfCursorTarget in ColourVehicles)&& hasBagItem && _canDo) then {
    		private ["_paint"];
    		_paint = player addAction ["Paint", "Paint\player_paint_init.sqf",_cursorTarget, 2, true, true, "", ""];
    		s_player_lockunlock set [count s_player_lockunlock,_paint];
    	};
    
  9. Is there a way I could a couple of AI flown jets to spawn when triggered and bomb a certain location on the map?

    I could somehow choose a location on a map or device and trigger the bombing. I know this might hurt frames and be OP, but I'd like something like that for my server.

     

    DayZ Overpoch Chernarus 1.0.5.1

     

    Thanks guys :D

  10. I wouldn't go promoting that fact in-game or on the splashscreen. It's like saying to hackers "here's a wide open server, come and mess with me."

    Yeah I cleared the comment. :p

    Could I use that first piece of code in a script to make people with a certain GUID have different colored text?

  11. 		admin_fillCOLORS =
    		{
    			inSub = false;
    			_ctrl = 2 call getControl;
    			lbclear _ctrl;
    			_ctrl ctrlSetFont "Zeppelin33";
    			adminadd = [];
    			call admin_fillsubsss;
    			adminadd = adminadd + [" __________________________________","","0","1","0","0"					,[]];
    			adminadd = adminadd + [" Change Colors ","","0","1","0","0",[]];
    			adminadd = adminadd + [" __________________________________","","0","1","0","0"					,[]];
    			adminadd = adminadd + ["[||-||]=== Change Colors ===[||-||]","","0","0","0","0"					,[1, 2, 0, 1]];
    			adminadd = adminadd + ["     Paint self Red",admin_changecolor_RED,"0","0","0","0"				,[]];
    			adminadd = adminadd + ["     Paint self Pink",admin_changecolor_PINK,"0","0","0","0"			,[]];
    			adminadd = adminadd + ["     Paint self Light Pink",admin_changecolor_LPINK,"0","0","0","0"		,[]];
    			adminadd = adminadd + ["     Paint self Dark puple",admin_changecolor_DPURPLE,"0","0","0","0"	,[]];
    			adminadd = adminadd + ["     Paint self Purple",admin_changecolor_PURPLE,"0","0","0","0"		,[]];
    			adminadd = adminadd + ["     Paint self Light purple",admin_changecolor_LPURPLE,"0","0","0","0"	,[]];
    			adminadd = adminadd + ["     Paint self Dark Green",admin_changecolor_DGREEN,"0","0","0","0"	,[]];
    			adminadd = adminadd + ["     Paint self Green",admin_changecolor_GREEN,"0","0","0","0"			,[]];
    			adminadd = adminadd + ["     Paint self Cyan",admin_changecolor_CYAN,"0","0","0","0"			,[]];
    			adminadd = adminadd + ["     Paint self Blue",admin_changecolor_BLUE,"0","0","0","0"			,[]];
    			adminadd = adminadd + ["     Paint self Orange",admin_changecolor_ORANGE,"0","0","0","0"		,[]];
    			adminadd = adminadd + ["     Paint self Yellow",admin_changecolor_YELLOW,"0","0","0","0"		,[]];
    			adminadd = adminadd + ["     Paint self White",admin_changecolor_WHITE,"0","0","0","0"			,[]];
    			adminadd = adminadd + ["     Paint self Black",admin_changecolor_BLACK,"0","0","0","0"			,[]];
    			call admin_FILL_MENUS;
    		};
    		admin_animatetrgt =
    		{
    			inSub = false;
    			_ctrl = 2 call getControl;
    			lbclear _ctrl;
    			_ctrl ctrlSetFont "Zeppelin33";
    			adminadd = [];
    			call admin_fillsubsss;
    			adminadd = adminadd + [" Animate Target ","","0","1","0","0",[]];
    			adminadd = adminadd + [" __________________________________","","0","1","0","0"					,[]];
    			adminadd = adminadd + [" __________________________________","","0","1","0","0"					,[]];
    			adminadd = adminadd + ["[||-||]=== ANIMATIONS ===[||-||]","","0","0","0","0"					,[1, 2, 0, 1]];
    			adminadd = adminadd + ["   End animations on player",anim_end,"0","0","0","1"					,[]];
    			adminadd = adminadd + ["   Make player dance (1) ",anim_dance1,"0","0","0","1"					,[]];
    			adminadd = adminadd + ["   Make player dance (2) ",anim_dance2,"0","0","0","1"					,[]];
    			adminadd = adminadd + ["   Make player dance (3) ",anim_dance3,"0","0","0","1"					,[]];
    			adminadd = adminadd + ["   Make player box(fighting)",anim_boxing,"0","0","0","1"				,[]];
    			adminadd = adminadd + ["   Make player handstand ",anim_handstand,"0","0","0","1"				,[]];
    			adminadd = adminadd + ["   Make player Laydown ",anim_laydown,"0","0","0","1"					,[]];
    			adminadd = adminadd + ["   Make player Suicide",anim_suicide,"0","0","0","1"					,[]];
    			call admin_FILL_MENUS;
    		};
    

    These two sections are already together and the two things I would like to customize.

    It looks like it would give an admin the power to make someone do animations and give different levels of admins different text colors.

    Any idea how to use these?

  12. In the left part of a DayZ server lobby there are 4 different groups, "BLUFOR,OPFOR,INDEPENDENT,CIVILIAN".

    I was wondering if it would be possible to give the player the option to choose between at least the first three, "BLUFOR,OPFOR,INDEPENDENT".

    The idea being, that there are two major clans, like hero and bandit and then there are the mysterious lonewolves.

    The members within the group could work together just like they do in group management, but this way no one has to know another player to be part of a group.

    They can meet people from the get go if they please and be part of a "clan".

     

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    If this is possible, which it is probably not.. Could we:

    A: Change the names on the lobby to, HERO and BANDIT instead or the default. (Probably can't since it's part of ARMA.)

    B: Use this at the same time a group management, so that if people want a small more exclusive group, they can make one.

     

     

    Thanks! :D

  13. I'm running:

    DayZ Overpoch Chernarus 1.0.5.1

    Using infistar

     

    I'd like to be able to trigger sounds that play across the server, not just in a specific location.

    I know there is a post by "SandBird" I believe that allows you to trigger events. Would the same thing be possible for sounds?

    If so how?..

     

     

  14. That script I posted has been working fine on both my servers since the day I installed it with no errors anywhere.

     

    [EDIT : Ahhh ... Just realised I use this script in conjunction with  : 

    dayz_poleSafeArea = 30;
    

    in my init.sqf.

     

    My apologies. If you use the init.sqf edit AND the script in the 2nd post, it will work perfectly.]

    So, would I add "dayz_poleSafeArea = 30;" under "DayZ Epoch Config"?

×
×
  • Create New...