mcgough Posted August 18, 2014 Report Share Posted August 18, 2014 Single Currency Base Maintenance using Souls I have made some quick changes to the default Epoch maintain_area file to enable the maintaining of bases with gold coins instead of gold bars. I haven't had much time to give it a thorough test, but it seems to be working fine for me with the limited testing I have done with it. It works in the same way as before but now players will need to have enough gold coins in their wallet in order to perform the maintain action instead of gold in their inventory. The cost of maintaining can be changed inside the file to whatever you would like to set. Also, this was made for a server using Soul's variant 1 HiveExt.dll, since that is what I believe Zupa intends to use for his 2.0 SC update. If anybody would like to use it: 1. Download the file from the link below, and extract the maintain_area.sqf to your mission PBO in a location of your choice (i used a folder called custom) 2. Then search inside your custom fn_selfActions for: s_player_maintain_area = player addAction [format["<t color=#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_MAINTAREA], "\z\addons\dayz_code\actions\maintain_area.sqf", "maintain", 5, false]; s_player_maintain_area_preview = player addAction [format["<t color=#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_MAINTPREV], "\z\addons\dayz_code\actions\maintain_area.sqf", "preview", 5, false]; and change to: s_player_maintain_area = player addAction [format["<t color=#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_MAINTAREA], "custom\maintain_area.sqf", "maintain", 5, false]; s_player_maintain_area_preview = player addAction [format["<t color=#ff0000'>%1</t>",localize "STR_EPOCH_ACTIONS_MAINTPREV], "custom\maintain_area.sqf", "preview", 5, false]; you will obviously need to alter the folder name if you save it to a location other than 'custom'. Full credit to AxeCop for the original script, all i've made are some changes for SC Cheers! McGough maintain_area.zip Glenn, mgm, nachtmasse and 1 other 4 Link to comment Share on other sites More sharing options...
GSGBen Posted August 18, 2014 Report Share Posted August 18, 2014 If nobody else does before me, I'll test it in a couple of hours! Great share, good work! Link to comment Share on other sites More sharing options...
PeterBeer Posted August 18, 2014 Report Share Posted August 18, 2014 Ill try and stress test it on my test server much as i can :) Link to comment Share on other sites More sharing options...
PeterBeer Posted August 18, 2014 Report Share Posted August 18, 2014 OK I have good results I stressed tested this to s*** and all is well I now how this running on my live server :) Link to comment Share on other sites More sharing options...
Gr8 Posted August 18, 2014 Report Share Posted August 18, 2014 thanks alot for this mcgough Link to comment Share on other sites More sharing options...
Zupa Posted August 19, 2014 Report Share Posted August 19, 2014 This is actually great for the 999 hive! ^^Will edit the default one tho for soul hve. Link to comment Share on other sites More sharing options...
mcgough Posted August 19, 2014 Author Report Share Posted August 19, 2014 OK I have good results I stressed tested this to s*** and all is well I now how this running on my live server :) This is actually great for the 999 hive! ^^ Will edit the default one tho for soul hve. I'm pleased to hear it! Link to comment Share on other sites More sharing options...
Zupa Posted August 19, 2014 Report Share Posted August 19, 2014 Nevermind this is the skarnator version right? then it's the official one, thx, ill put it in as official in next release! Link to comment Share on other sites More sharing options...
UKRop Posted August 20, 2014 Report Share Posted August 20, 2014 ups work)))) nice Link to comment Share on other sites More sharing options...
PeterBeer Posted August 20, 2014 Report Share Posted August 20, 2014 its normal? all time 0 range Thats because they aint damaged buddy Link to comment Share on other sites More sharing options...
KamikazeXeX Posted August 23, 2014 Report Share Posted August 23, 2014 Well i've got an issue, this script with V1 of Souls SC release i can do everything fine as soon as logging in, i can do anything but as soon as i go to my plot and maintain coins bug out and my cashMoney gets hidden to 0 and at banks it says "any XG Coins" on my players cash value, relogging fixes it but maintaining again makes it bug out EDIT: Noticed this in client RPT EDIT2: Nevermind it was my admin cost exemption Error in expression <ts; if (_proceed) then { _newWealth = (_wealth - _countIn); player playActionNo> Error position: <_wealth - _countIn); player playActionNo> Error Undefined variable in expression: _wealth File mpmissions\__CUR_MP.Chernarus\custom\dayz_code\actions\maintain_area.sqf, line 71 Link to comment Share on other sites More sharing options...
mgm Posted September 2, 2014 Report Share Posted September 2, 2014 Single Currency Base Maintenance using Souls I have made some quick changes to the default Epoch maintain_area file to enable the maintaining of bases with gold coins instead of gold bars, but I haven't had (and won't have) much time to give it a thorough test. I'm by no means an expert at this and <snip> Cheers! McGough Superb! Link to comment Share on other sites More sharing options...
Zupa Posted September 9, 2014 Report Share Posted September 9, 2014 Mcgough, could u change the title of the topic to Release instead of Test Release? Use the Full editor to be able to do so. Link to comment Share on other sites More sharing options...
RabidPanda01 Posted September 23, 2014 Report Share Posted September 23, 2014 I am getting "need 400 more of." when my players try to maintain.. Any idea whats up? Link to comment Share on other sites More sharing options...
Zupa Posted September 24, 2014 Report Share Posted September 24, 2014 McGough, A modified version of your original maintain (this scripts) will be iplemented in the PlotManagent 2.0 release, I hope you are okay with this and you will be credited with the single currency version of the PlotManagment. Link to comment Share on other sites More sharing options...
mcgough Posted September 25, 2014 Author Report Share Posted September 25, 2014 McGough, A modified version of your original maintain (this scripts) will be iplemented in the PlotManagent 2.0 release, I hope you are okay with this and you will be credited with the single currency version of the PlotManagment. absolutely fine by me Link to comment Share on other sites More sharing options...
ElDubya Posted December 31, 2014 Report Share Posted December 31, 2014 This is actually great for the 999 hive! ^^ Will edit the default one tho for soul hve. So, this will work with ? Link to comment Share on other sites More sharing options...
ElDubya Posted January 12, 2015 Report Share Posted January 12, 2015 Yes? No? No one knows? :) Link to comment Share on other sites More sharing options...
flybowlofsaki Posted May 1, 2015 Report Share Posted May 1, 2015 anyone know if this is possible to maintain via plot pole with ZSC 3.0? Link to comment Share on other sites More sharing options...
Gr8 Posted May 1, 2015 Report Share Posted May 1, 2015 anyone know if this is possible to maintain via plot pole with ZSC 3.0? Use plot management to maintain with coins Link to comment Share on other sites More sharing options...
Pavillin Posted October 22, 2015 Report Share Posted October 22, 2015 I want to change how much it costs to maintain. I'm on my phone so I don't have the code to post but it's the code in the case that determines how much it costs to maintain. Does anyone know how to modify the code so every buildable that is counted costs a specific amount like 1000 coins. So if you have 5 objects it costs 5000 to maintain and so on. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now