Skip to main content

Adding Teleportation to Economy

The final type of item we have for the store is the teleportation product, this allows your users to purchase one time teleportation to your chosen locations, maybe its one of the many Safe Zone monuments for instant protection, could be an instant start to either Oil Rigs or even an instant jump to the Bradley APC. Whatever it may be, the power is in your hands!

Obtaining Coordinates

To create a teleportation we will need some co-ordinates from in-game. Please load into your server and fly over to your desired location (Slightly float above ground, standing on the ground for this part risks players falling through the map).

Now open your admin panel in game and head over to the commands tab, when your there press X (Xbox) or Square (Playstation) this then brings up your on-screen keyboard. In this text box, please type the command printpos and hit enter. You will see that the log files open with a response to X, Y and Z values, please make a note of these... See the image below for the 3 numbers you are looking for;
printpos.png
These are know as the X, Y and Z values (in that order) we will need this when we come to create the teleport.

Creating the Teleport Product

To create the teleport product we will need the coordinates mentioned above, to add these to the store we will need the command /product add-tp. Much like creating a kit or an item for the store you will be greeted with a number of parameter options, please see the image below;

tpadd.png
It is important to note that we have 6 mandatory fields and a further 5 optional, again, you will probably recognize this from adding the previous 2 options to the store, but we will again break them down,

Mandatory Options


Category - Please select which category you wish for this item to be placed in.

Name - Please name the item - A location is a good name to call it.

Price - You will need to price this item accordingly within your store.

x, y & z - These are the coordinates you gained earlier from using printpos - Please enter them in here in the same order as they appeared including any and all decimal places.

Optional Options

server-cooldown - You can specify that only one player can buy this and then a cool down timer is enabled at your required length. (Must be whole number and time is in seconds)

player-cooldown - You can specify after a player has purchased the item, how long he then has to wait to purchase it again, this will not affect any other players ability to buy this product. (Must be whole number and time is in seconds)

position - You can adjust the order in which these items appear in your store by clicking this menu, starting at 0
eg; 0=1st, 1=2nd, 2=3rd, 3=4th ect...

delivery-delay - You can specify how long after the item is purchased it takes to receive delivery, this can be extremely useful if they are under attack whilst out farming or trying to re-counter a monument.
(Please enter whole numbers and time is in seconds).

Role - You can specify which Discord role is allowed to see this item. Please Note: Being the Discord owner does not give you automatic immunity to this rule, please ensure as owner you have every role available within your Discord.

This concludes adding teleportation to your store. It is very important you test these before announcing their sale to avoid any problems when players use it.

Editing the Teleport Product

Editing is much the same as editing everything else within economy however the command is different, for teleports please use /product edit-tp. It will allow you to edit every and all options should you require, please see below the example of the response;

edittp.png