Jump to content

Bike,Quad,Mosqito Crafting Script


Amdathlon

Recommended Posts

Here's our own version!

 

v1.0

 

the script inserts a player menu!

 

or copy the files to a folder Misson specify the file init.sqf this:

 

act = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","];

 

 

//The script://

 

    //Script created by Bakler2
 
cutText [format["You created the Ebike"], "PLAIN DOWN"];
 
player playActionNow "Medic";
 
sleep 3;
 
    if ("ItemCorrugated" in magazines player) then{
player removeMagazine "ItemCorrugated";
 
_spawn = "ebike_epoch";
    _posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_saveVehicle call EPOCH_server_save_vehicle;
    _dirplr = getDir player;
    _spwnveh = _spawn createVehicle (_posplr);
    _spwnveh setVariable ["Sarge",1,true];
_vehObj call EPOCH_server_save_vehicle;
 
    _vehObj call EPOCH_server_setVToken;
    
sleep 3;
 
cutText [format["You've used your Corrugated to build a Ebike."], "PLAIN DOWN"];
} else {
SystemChat "You need one Corrugated to Ebike"; 
};
 
//Save the Bike.sqf//
 
Change ItemCorrugated: what you would like!
 
Change ebike_epoch: Quad or Mosqito!
 
Even I develop my script!
 
Have fun!
 
:D
 
 

 

Link to comment
Share on other sites

so just add this to a sqf file and call from init.sqf

 

 //Script created by Bakler2
 
cutText [format["You created the Ebike"], "PLAIN DOWN"];
 
player playActionNow "Medic";
 
sleep 3;
 
    if ("ItemCorrugated" in magazines player) then{
player removeMagazine "ItemCorrugated";
 
_spawn = "ebike_epoch";
    _posplr = [((getPos player) select 0) + 2, ((getPos player) select 1) + 2, 0];
_saveVehicle call EPOCH_server_save_vehicle;
    _dirplr = getDir player;
    _spwnveh = _spawn createVehicle (_posplr);
    _spwnveh setVariable ["Sarge",1,true];
_vehObj call EPOCH_server_save_vehicle;
 
    _vehObj call EPOCH_server_setVToken;
    
sleep 3;
 
cutText [format["You've used your Corrugated to build a Ebike."], "PLAIN DOWN"];
} else {
SystemChat "You need one Corrugated to Ebike"; 
};
 
wat is this code for?
act = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","];
Link to comment
Share on other sites

so that goes in the same sqf file as the rest of the code?

 

also is the

 

or copy the files to a folder Misson specify the file init.sqf this:  <--- this;

 

supposed to go on like 

 

this;act = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","];

 

or just 

 

act = player addaction [("<t color="#0074E8"">" + ("Bike") +"</t>"),"Bike.sqf","",5,false,true,"","];

Link to comment
Share on other sites

All i can say is that script up there got alot of undefined stuff and the cleanup system on arma removes the bike after a few seconds

 

so i have no idea how u made this work =)

so: 

 

I'm still working on the script development and will soon give out more repairs!

 

 

This script is already out and working. It has been for some time now ;)

 

Large item Corrugated = mozzie

Small item Corrugated = EBike

 

It could be applied to a few things

I do not understand what you mean by this? why it was not disclosed if it has? this script I wrote what I shared with you here!

Link to comment
Share on other sites

What im saying is this is not a new script that is just being created. I know servers that have it running and working already, and have had it for weeks.

 

So yea.

 

What you're writting is cool and all, but there is already a working version out there, its just peeps are not giving it out ;)

Link to comment
Share on other sites

All i can say is that script up there got alot of undefined stuff and the cleanup system on arma removes the bike after a few seconds

 

so i have no idea how u made this work =)

theres a way around all of this, im working on my own kart build script like this and I have everything working if you hav curcuits, metal and a few things you can craft, it takes the items out of inventory and they spawns kart, im just working the the kart and sticking around cleanup right now. I have other scripts that spawn vehicles fine so hopefully using parts of those iwill have it done soon
Link to comment
Share on other sites

A dll is blocking the addaction

I have a scroll option working for a few scripts so dll cant be blocking it. I have my own version jus tweaking and working on things still but I do have the scroll option and the building and taking of items to build working. Not with this script tho its very unfinished and looks like a bunch of pieces put together but if you look how its set up im sure you can do something with it
Link to comment
Share on other sites

Dll blocks serevr side  why are you thinking its blocking?

haha player menu, what a way to wreck epoch

do you want an admin tool aswell?

this mod is alpha and bringing ways to make it easier on a player shouldnt be arising now as players would expect on every server once it makes it through

epoch is surival and should be made tougher not easier. lke old trader system  shouldnt be baught over people should scavenge for their loot not buy their base

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...