Hello. I'm looking for someone to help me rewrite 4 scripts to Epoch 1.0.6.1 because I don´t know about the new Variables.
Here are the scripts I need.
Script is from Deploy Bike, but i need one for ATV with Toolbox, Engine and Wheel and one for Mozzie with Toolbox, Engine and Mainrotor
Spoiler
//SimpleDeployBike
//By Relentless
///////////////////////////////REMOVE BELOW IF URE USING EXTRA_RC.hpp///////////////////////
private ["_inventory","_hastools"];
_inventory = items player;
_hastools = "ItemToolbox" in _inventory;
if (!_hastools) exitWith {cutText [format["Toolbox Needed."], "PLAIN DOWN"];};
///////////////////////////////REMOVE ABOVE IF URE USING EXTRA_RC.hpp///////////////////////
if (false) then {
cutText [format["You can't place your bike while you're in combat."], "PLAIN DOWN"];
} else {
player removeAction s_player_deploybike2;
player playActionNow "Medic";
r_interrupt = false;
player removeWeapon "ItemToolbox";
Question
Kimarik
Hello. I'm looking for someone to help me rewrite 4 scripts to Epoch 1.0.6.1 because I don´t know about the new Variables.
Here are the scripts I need.
Script is from Deploy Bike, but i need one for ATV with Toolbox, Engine and Wheel and one for Mozzie with Toolbox, Engine and Mainrotor
//SimpleDeployBike
//By Relentless
///////////////////////////////REMOVE BELOW IF URE USING EXTRA_RC.hpp///////////////////////
private ["_inventory","_hastools"];
_inventory = items player;
_hastools = "ItemToolbox" in _inventory;
if (!_hastools) exitWith {cutText [format["Toolbox Needed."], "PLAIN DOWN"];};
///////////////////////////////REMOVE ABOVE IF URE USING EXTRA_RC.hpp///////////////////////
if (false) then {
cutText [format["You can't place your bike while you're in combat."], "PLAIN DOWN"];
} else {
player removeAction s_player_deploybike2;
player playActionNow "Medic";
r_interrupt = false;
player removeWeapon "ItemToolbox";
_dis = 10;
_sfx = "repair";
[player, _sfx, 0, false, _dis] call dayz_zombieSpeak;
[player, _dis, true, (getPosATL player)] spawn player_alertZombies;
sleep 6;
_object = "Old_bike_TK_INS_EP1" createVehicle (position player);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];
player reveal _object;
cutText [format["You constructed a bike out of your toolbox."], "PLAIN DOWN"];
r_interrupt = false;
player switchMove "";
player playActionNow "stop";
sleep 10;
cutText [format["WARNING: This bike won't be saved during server restart!"], "PLAIN DOWN"];
};
buy + Humanity
private ["_cost","_wealth"];
_cost = 100000;
_wealth = player getVariable["cashMoney",0];
if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to change your Humanity",_cost], "PLAIN DOWN"]; };
player setVariable["cashMoney",(_wealth - _cost),true];
titleText ["your humanity has been changed","PLAIN DOWN"]; titleFadeOut 5;
sleep 0.1;
_id = [player,50,true,(getPosATL player)] spawn player_alertZombies;
_humanity = [player,+500];
_id = _humanity spawn player_humanityChange;
buy - Humanity
private ["_cost","_wealth"];
_cost = 100000;
_wealth = player getVariable["cashMoney",0];
if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to change your Humanity",_cost], "PLAIN DOWN"]; };
player setVariable["cashMoney",(_wealth - _cost),true];
titleText ["your humanity has been changed","PLAIN DOWN"]; titleFadeOut 5;
sleep 0.1;
_id = [player,50,true,(getPosATL player)] spawn player_alertZombies;
_humanity = [player,-500];
_id = _humanity spawn player_humanityChange;
In the humanity scripts the coin deduction from the player works, but you get no humanity credited or deducted.
Hope someone can help me.
Sry for the bad English i use Google Tranlator
Link to comment
Share on other sites
19 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now