Jump to content
  • 0
totis

auto claim missions

Question

33 answers to this question

Recommended Posts

  • 0

@totis you should setup a test server on your pc and make the changes on your pc instead of the live server. This way you can test things right away without affecting the players.

Theres a detailed guide somewhere in these forums. do a search for "70 detailed steps" and im sure you'll find it.

Share this post


Link to post
Share on other sites
  • 0

No offense Totis, but asking for every little problem is not the right way then.

To be honest, you don't need any coding experience for sqf at all. It's better sometimes to understand the syntax but it's not necessary. I talked with a lot of oldies of this community and mostly they said that they never coded anything before.

ArmA scripting (sqf mostly) can be learned by doing. That's the easiest way. That's how I started too and I guess people like the Epoch Collaborators too (like ebay, icomrade, salival) and also the big guys that founded the Epoch-Mod and now develope it for ArmA 3.

Scripting is a pain in the ass sometimes. How Salival said yesterday on Discord "you can either fuck it or fix it" and that's the best description for it. Get yourself an idea what you want to do and then try around, read trough wikis and either fix it or fuck it and then if you really have no clue what to do anymore, ask the community. I am doing that on the dev discord when I have no clue how to do something and I swear if they know that you are trying yourself before, they will help you. Almost everyone here is a nice guy.

Share this post


Link to post
Share on other sites
  • 0
On 29/9/2017 at 6:20 AM, totis said:

Ok. Great advices from all  and works like a charm :)

Only thing i wanna change is, can i make name stay permanent and not unclaimed when someone gets out of the 1000m radius?? I mean until mission is cleared of course.

Maybe you guys can help me with 2 more issues i have also.

1. A player cant blood another player. Thought this was build in on epoch! I have self blood and works btw and

2. My static buildings are not precise where my coords are neither they have godmode. I call them from client side with a custom sqf. Is there a way to remedy this?

Tnx guys you are all super helpfull!!

 

Btw your code is installed in every mission itself Juan?

I think the most easier way is put a new local variable if thers neatest player..then use this var as condition when you check if thers nearest player. So if this var was changed as true at first time then no change the marker name again. Or just get and chech the player uid onces you did the marker change at first time.

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, DAKA said:

So is this working. Would love it as well.

This is what I just threw together, probably more inefficient ways possible, but I am not going to go through testing for this:

 

In mission_init.sqf find the marker loop and replace with this:

while {_running} do {

	_type	= (wai_mission_data select _mission) select 1;
	
	if (isNil "_claimedby") then {
		_dis = 1000;
		{
			_dispos = _x distance _position;
			if (_dispos < 1000 && _dispos < _dis) then {
				_claimedby = name _x;
				_dis = _dispos;
			};
		} count playableUnits;
	};
	
	_marker 		= createMarker [_type + str(_mission), _position];
	_marker 		setMarkerColor _color;
	_marker 		setMarkerShape "ELLIPSE";
	_marker 		setMarkerBrush "Solid";
	_marker 		setMarkerSize [300,300];
	_marker 		setMarkerText _name + if (!isNil "_claimedby") then {"Claimed by: " + _claimedby} else {""};

	_dot 			= createMarker [_type + str(_mission) + "dot", _position];
	_dot 			setMarkerColor "ColorBlack";
	_dot 			setMarkerType "mil_dot";
	_dot 			setMarkerText _name + if (!isNil "_claimedby") then {"Claimed by: " + _claimedby} else {""};

	sleep 1;

	deleteMarker 	_marker;
	deleteMarker 	_dot;

	_running = (typeName (wai_mission_data select _mission) == "ARRAY");

};

 

This should get the closest player within 1000 meters of the mission and change the name to show he has claimed it. This could be quite intensive, so be cautious if you wish to increase the distance. Let me know if it works as I haven't tested.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Harkness
      Happy to announce the launch of our new custom server. 
      DayZ Epoch Chernarus 
      To connect search for "v666" in your DayZ Launcher
      Server Modes/Mods/Addons
      Romero Style Zombies
      Snow & Cold Weather Effects (temp+breath)
      Custom Intro Radio Broadcast
      Spawn Location Options
      Safe Trader Areas
      Roaming/Driving/Flying AI Excursions
      AI Mission System
      Random Events
      Auto Re-fuel at any Gas Station
      Day/Night Cycle w/6 Hourly Reboots
      ++Many more to come! Want something added? Request it here
      Don't forget to register here for your own custom load-out and access to our community forums
       
      Note:
      This server is both PVP and PVE. We dont believe in giving players rules but cheating in any way will result in lifetime ban from whole community.
    • By C4-timah
      I sure this is possible, I've seen it on He-Man's server, but where are the options to enable these?
      1. How to you get missions to be announced over the epoch radio
      2. How to claim missions - currently no claiming required
      3. Extend safe zones around protected traders
      4. Add more missions beyond the default 12 bandit missions.
       
      I know this is a lot to ask. I'm new at this and the sea of forum posts are extremely elusive for the specific questions above. Links and comments would be greatly appreciated!
    • By Kushti
      Closed down.
    • By Grahame
      I have ported some of the Extra Wicked AI missions from ARMA2/DayZ/Epoch's Wicked AI system. They are a purely derivative product based on this work:
      Missions ported so far are: Abandoned Trader, Ambushed HMMWV, Army Base, Drone Pilot, Old MacDonald's Farm and Slaughter House. 
      I will be continuing this work with the others when I have time.
      NOTE: In order to use these missions you will require CUP Terrains Core on your server. For those running non-vanilla ARMA3 maps, for example Chernarus Redux that should not be an issue.
      Download
      https://www.dropbox.com/s/19ln1t6yhsmbldw/Extra_WAI_Missions.zip?dl=0
      Installation
      (1) Copy the files in the downloadable archive to your Wicked AI's missions/bandit folder.
      (2) Add the missions to the mission array in WAI's config.sqf, for example:
      wai_bandit_missions = [ ["abandoned_trader",5], ["ambushed_hmmwv",5], ["army_base",5], ["drone_pilot",4], ["macdonald",5], ["slaughter_house",5], ["nuke",4], ["Mi_48",6], ["MV_22",6], ["sniper_team",8], ["rebel_base",5], ["medi_camp",5], ["dropside",5], ["comm_center",10], ["C_192",11], ["destroyed_ural",11] RePBO Wicked AI and upload to @epochhive/addons and enjoy!
    • By xTimeToShine
      Hey guys,
      i'm proud to present our new "Epic Illusion Gaming - DayZ Overpoch server".
       
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
      [EIG] DayZ Overpoch | Chernarus | 1.0.6.2 | Coins | Lift | Groups | Missions | Events | Deploy Bike |
      IP: 94.250.209.139:2302
       
      We are searching for some Players and also for some Admins. Please visit our Server or come to our Teamspeak or Discrod.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       
      Visit us on ...
      ...Teamspeak:  94.250.223.10:15111
      ...Discord:  https://discord.gg/MTQuUHP
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Our new special features:
      Global Coins System Deploy a bike (Toolbox) Lift & Tow Selfbloodbagging Groupsystem Virtual Garage AI Missions Special PVP Events Custom Loadout ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Upcoming features:
      Weaponswitch Enhanced Spawn Selection and much more...  
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...