Jump to content

[ADDON] Central Chernarus Bank


Recommended Posts

[ADDON] Central Chernarus Bank

Thought I'd make a little addon for the Single currency ATM/Bank. So i guess its not much of an improvement or an addon for the script itself.
But if anyone is interested...here it is.

Server pbo


Firstly, download this: https://www.dropbox.com/s/ifk8qa6h1pdeg5v/bankofcherno.sqf?dl=0

And add it to this directory: 
Server.pbo > Buildings

Then navigate to this file:

Server.pbo > init > server_functions.sqf

and add this code to the bottom of the file:

// Darkside's Bank of Cherno
call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\bankofcherno.sqf";



 

Mission pbo



Once you have done that go to your mission pbo and open up your mission.sqm.

Find:
class Sensors

After your latest item within the sensors section so for me my last item is:

		class Item15
		{
			position[]={3649.0173, 0.73773193,8532.2158};
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank25";
			expCond="(player distance zonebank25) < 40;";
			expActiv="TitleText[""Now entering the Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving the Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};

After the code above, past this above:

        class Item16
		{
			position[]={6379.8691, 0.4326643,7557.0259};
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="BoC";
			expCond="(player distance BoC) < 50;";
			expActiv="TitleText[""Now entering the Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving the Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			}; 
		};

Then make sure you change your items indicator from 16 to 17

class Sensors
	{
		items=17;

Once you have done this make sure in your safezones script (If you have the infiStar safezones) to change this:

USE_CANBUILD = false;
USE_POSITIONS = false;

to

USE_CANBUILD = true;
USE_POSITIONS = true;



After you have done this you are ready to, pack and upload to your server!

Configuration

Changing your ATM Object


Just as a note, you'll have to change your:
DZE_ATM = ["Laptop_EP1"]

to:

DZE_ATM = ["SatPhone"]

In your variables.sqf.

- The SatPhone is a lot more user friendly for the server,  my users do not have any problems accessing this object.

If you do not want to change your object or change it to something else, navigate to the bankofcherno.sqf file, located in the buildings folder which we used / created. Then once you have opened the file, find and replace for:

SatPhone

then change it to whatever your ATM object is. But remember this Bank is customized for the laptop and also the satphone.


Optional Marker


If you want the optional marker (See picture below)
Then navigate to your mission.sqm and find:
 
class Markers

then right at the bottom of that section add this:

		class Item##
		{
			position[]={6379.8691, 0.4326643,7557.0259};
			name="Bank of Chernarus";
			text="Bank of Chernarus";
			type="hd_dot";
			colorName="ColorGreen";
		}; 

Make sure your Item number is correct for how many markers you have and what order they are.
So if you have 10 markers make sure that this: (Example)

	    class Markers
    {
        items=10; 

is changed to this:
 

	    class Markers
    {
        items=11; 


Images:

Bank area:


2014-08-25_00003_zpsf504e996.jpg


 

ATM / Bank for Satphone:


2014-08-22_00003_zps95767549.jpg


 

ATM's in the Bank:


2014-08-25_00004_zps707f1af5.jpg



Location:


2014-08-25_00002_zps5569cd22.jpg



new_zps215f8344.jpg

Thanks to:
http://epochmod.com/forum/index.php?/user/3715-coco-nuts/

Edited by Chunk. No Captain Chunk.
Link to comment
Share on other sites

Thank you very much for this.  :D

 

The original banks/atm didnt work for me but this one does. Awesome. 

I am only using one bank atm, Though I want to add a couple at different locations.

 

I have the right sensors and markers for a new location but,

how I can find the right coordinates for the objects in the bankofcherno.sqf file, so i can place the bank on different parts of the map?

Link to comment
Share on other sites

Thank you very much for this.  :D

 

The original banks/atm didnt work for me but this one does. Awesome. 

I am only using one bank atm, Though I want to add a couple at different locations.

 

I have the right sensors and markers for a new location but,

how I can find the right coordinates for the objects in the bankofcherno.sqf file, so i can place the bank on different parts of the map?

TP / Goto their location and then take it from the RPT logs or from your database.

Link to comment
Share on other sites

Do i not have to give every different object different coordinates?

 

For example, the wall (Hbarries cubes) on the east side has different coordinates then the wall of the west side.

Oh if you want the Coordinates for that then go into the bankofcherno.sqf file

Find the item you want and then the position will be there in the same block of text.

Link to comment
Share on other sites

Haha sorry if im being unclear.

I want to place the bank let say bereZino soccer field.

What is the best way of doing that?

Because i thaught if i copy paste whats in the bankofcherno.sqf and then edit those objects with corresponding coordinates the bank goes where i want it.

However, its alot of objects in the file and lots of coordinates to add.

Besides that, i dont know exactly how to find out how to give correct coordinates for the objects.

Link to comment
Share on other sites

Haha sorry if im being unclear.

I want to place the bank let say bereZino soccer field.

What is the best way of doing that?

Because i thaught if i copy paste whats in the bankofcherno.sqf and then edit those objects with corresponding coordinates the bank goes where i want it.

However, its alot of objects in the file and lots of coordinates to add.

Besides that, i dont know exactly how to find out how to give correct coordinates for the objects.

Finally woke up, just noticed what you mean.

If you wanted to move the bank you gotta create your own.

Here: 

Link to comment
Share on other sites

  • 2 weeks later...
  • 9 months later...

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
  • Discord

×
×
  • Create New...