Update all cutText to dayz_rollingMessages

This commit is contained in:
ebaydayz
2016-04-16 15:47:49 -04:00
parent 993ce14da6
commit 5157228e67
137 changed files with 604 additions and 621 deletions

View File

@@ -1,11 +1,11 @@
private ["_veh","_location","_isOk","_part_out","_part_in","_qty_out","_qty_in","_qty","_buy_o_sell","_obj","_objectID","_objectUID","_bos","_started","_finished","_animState","_isMedic","_dir","_helipad","_removed","_keyColor","_keyNumber","_keySelected","_isKeyOK","_config","_damage","_tireDmg","_tires","_okToSell","_hitpoints","_needed","_activatingPlayer","_textPartIn","_textPartOut","_traderID","_playerNear"];
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_103","PLAIN DOWN"];};
if (DZE_ActionInProgress) exitWith {localize "str_epoch_player_103" call dayz_rollingMessages;};
DZE_ActionInProgress = true;
// Test cannot lock while another player is nearby
//_playerNear = {isPlayer _x} count (player nearEntities ["CAManBase", 12]) > 1;
//if(_playerNear) exitWith {DZE_ActionInProgress = false; cutText [localize "str_epoch_player_104","PLAIN DOWN"];};
//if(_playerNear) exitWith {DZE_ActionInProgress = false; localize "str_epoch_player_104" call dayz_rollingMessages;};
// [part_out,part_in, qty_out, qty_in, loc];
@@ -36,7 +36,7 @@ if(_buy_o_sell == "buy") then {
if (_qty >= _qty_in) then {
cutText [localize "str_epoch_player_105","PLAIN DOWN"];
localize "str_epoch_player_105" call dayz_rollingMessages;
["Working",0,[3,2,8,0]] call dayz_NutritionSystem;
// force animation
@@ -71,7 +71,7 @@ if (_qty >= _qty_in) then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "stop";
};
cutText [localize "str_epoch_player_106","PLAIN DOWN"];
localize "str_epoch_player_106" call dayz_rollingMessages;
};
if (_finished) then {
@@ -112,7 +112,7 @@ if (_qty >= _qty_in) then {
_keyNumber = (floor(random 2500)) + 1;
// Combine to key (eg.ItemKeyYellow2494) classname
_keySelected = format[("ItemKey%1%2"),_keyColor,_keyNumber];
_keySelected = format["ItemKey%1%2",_keyColor,_keyNumber];
_isKeyOK = isClass(configFile >> "CfgWeapons" >> _keySelected);
@@ -140,12 +140,12 @@ if (_qty >= _qty_in) then {
PVDZE_veh_Publish2 = [_veh,[_dir,_location],_part_out,false,_keySelected,_activatingPlayer];
publicVariableServer "PVDZE_veh_Publish2";
cutText [format[("Bought %3 for %1 %2, key added to toolbelt."),_qty_in,_textPartIn,_textPartOut], "PLAIN DOWN"];
format["Bought %3 for %1 %2, key added to toolbelt.",_qty_in,_textPartIn,_textPartOut] call dayz_rollingMessages;
} else {
player removeMagazine _keySelected;
};
} else {
cutText [localize "str_epoch_player_107","PLAIN DOWN"];
localize "str_epoch_player_107" call dayz_rollingMessages;
};
} else {
@@ -193,13 +193,13 @@ if (_qty >= _qty_in) then {
deleteVehicle _obj;
cutText [format[(localize "str_epoch_player_181"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
format[localize "str_epoch_player_181",_qty_in,_textPartIn,_qty_out,_textPartOut] call dayz_rollingMessages;
} else {
cutText [format[(localize "str_epoch_player_182"),_textPartIn] , "PLAIN DOWN"];
format[localize "str_epoch_player_182",_textPartIn] call dayz_rollingMessages;
};
} else {
cutText [localize "str_epoch_player_245","PLAIN DOWN"];
localize "str_epoch_player_245" call dayz_rollingMessages;
};
};
@@ -208,7 +208,7 @@ if (_qty >= _qty_in) then {
s_player_parts_crtl = -1;
} else {
cutText [format[(localize "str_epoch_player_183"),_textPartOut] , "PLAIN DOWN"];
format[localize "str_epoch_player_183",_textPartOut] call dayz_rollingMessages;
};
dayzTradeResult = nil;
};
@@ -217,9 +217,9 @@ if (_qty >= _qty_in) then {
} else {
_needed = _qty_in - _qty;
if(_buy_o_sell == "buy") then {
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
format[localize "str_epoch_player_184",_needed,_textPartIn] call dayz_rollingMessages;
} else {
cutText [format[(localize "str_epoch_player_185"),_textPartIn] , "PLAIN DOWN"];
format[localize "str_epoch_player_185",_textPartIn] call dayz_rollingMessages;
};
};