juandayz Posted November 4, 2016 Report Share Posted November 4, 2016 i want to share it... make it sometime ago.. but never was tested (so really dont know if works or not)....(VERY SORY FOR POST SOMETHING THAT WAS NOT TESTED-but i dont want loose it :) ) its about a trader who offer the cure to the Z virus.... you can get sick and suffer an epilepsy attack,lose blood,lost humanity..get sick and get in pain or get a reward,and humanity if works. The install process its the same as "alchemy lab". INSTALL: virus.sqf ( put into MPMISSIONS/YOURINSTANCE/CUSTOM/ ). Spoiler private ["_LastUsedTime","_Time","_rand","_reward"]; _LastUsedTime = 900; _Time = time - lastuse; _reward = ["ItemBriefcase100oz","ItemGoldBar10oz","ItemSilverBar10oz","ItemGoldBar"] call BIS_fnc_selectRandom; if(_Time < _LastUsedTime) exitWith { cutText [format["wait %1 seconds",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; }; _rand = floor(random 100); lastuse = time; ///////////////////////////RAND SICK if (_rand <= 70) then { //epilepsy attack _sick = true; _timelimit = 8; _timeleft = 0; while {true} do { if(_sick) then { titleText ["you suffer epilepsy attack", "WHITE IN"]; r_player_blood = r_player_blood - 10; }; ////EXIT FROM LOOP AREA//// if (_timeleft >= _timelimit) exitWith { cutText [format["You feel confused and sick...something bad are growing in your blood"], "PLAIN DOWN"]; r_player_inpain = true; r_player_infected = true; [player,-100] call player_humanityChange; }; ///////////////////// _timeleft = _timeleft + 1; sleep 1; }; }; //RandSucces if (_rand <= 100 && _rand > 71) then { cutText [format["it seems to work! here you got your reward"], "PLAIN DOWN"]; [player,100] call player_humanityChange; player addMagazine _reward; }; 2-Now open your server_traders_cherno_11.sqf ( for coins users ) or server_traders.sqf ( for goldbars users) and choose one of the traders IDs. The trader you pick will have the option to execute the alchemy lab in this example i will choose RU_Functionary1 3-In your CUSTOM fn_selfactions.sqf: find: if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then { above paste: if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "RU_Functionary1")) then { if (s_player_virus < 0) then { s_player_virus = player addAction ["<t color='#ff5200'>Try Virus Cure</t>", "custom\virus.sqf", [], 5, false]; }; } else { player removeAction s_player_virus; s_player_virus = -1; }; 4-Near of the end of fn_selfactions: Find lines in grey and add only lines in blue. Spoiler } else { player removeAction s_player_feeddog; s_player_feeddog = -1; player removeAction s_player_waterdog; s_player_waterdog = -1; player removeAction s_player_staydog; s_player_staydog = -1; player removeAction s_player_trackdog; s_player_trackdog = -1; player removeAction s_player_barkdog; s_player_barkdog = -1; player removeAction s_player_warndog; s_player_warndog = -1; player removeAction s_player_followdog; s_player_followdog = -1; }; }; } else { //Engineering player removeAction s_player_virus; s_player_virus = -1; {dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = []; s_player_repair_crtl = -1; {player removeAction _x} count s_player_combi;s_player_combi = []; dayz_myCursorTarget = objNull; s_player_lastTarget = [objNull,objNull,objNull,objNull,objNull]; {player removeAction _x} count s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; {player removeAction _x} count s_player_lockunlock;s_player_lockunlock = []; s_player_lockUnlock_crtl = -1; player removeAction s_player_checkGear; s_player_checkGear = -1; player removeAction s_player_SurrenderedGear; s_player_SurrenderedGear = -1; 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