Jump to content
  • 0
Dayzguy

Single currency and advanced traders - not able to buy but can sell

Question

Hi all,

 

really happy to see such an abundance of information for scripting Day Epoch.

Just got into playing DayZ Epoch a few weeks ago and now had to rent my own server :-)

I´m running Epoch 1.0.5.1 and have so far managed to get tow and lift, money storage, WAI, admin menu, fun menu, (advance trading), (single currency) and a debug monitor showing blood, weapon, fps etc. working.

Well, sort of working.

The problem I´m facing right now with Zupa´s advance trading 2.1 and Zupa´s  single currency is this:

If I want to buy a weapon from the same trader, I can choose it and when I hit "buy", I get a message saying it cost xxxx coins, even though I have enough coins. I don´t get the weapon.

With the black market trader in Stary I don´t even get a trader menu. Not the advanced one nor the normal one.

Basically, all the item/vehicle/weapon/ammo lists are messed up somehow and I can´t buy or sell stuff except my trusty old makarov. I even get the money when I sell it, hey!

 

I have searched the forum for "item list", "price list" "setup+standard+trader+single+currency" , "setup trader", "price list setup" and that kinda stuff but could`t find anything that would help me.

I don`t understand where all the bits and pieces are that make this work correctly.

 

Any help is appreciated.

Cheers

 

Share this post


Link to post
Share on other sites

24 answers to this question

Recommended Posts

  • 0
1 hour ago, Dayzguy said:

Hi all,

 

really happy to see such an abundance of information for scripting Day Epoch.

Just got into playing DayZ Epoch a few weeks ago and now had to rent my own server :-)

I´m running Epoch 1.0.5.1 and have so far managed to get tow and lift, money storage, WAI, admin menu, fun menu, (advance trading), (single currency) and a debug monitor showing blood, weapon, fps etc. working.

Well, sort of working.

The problem I´m facing right now with Zupa´s advance trading 2.1 and Zupa´s  single currency is this:

If I want to buy a weapon from the same trader, I can choose it and when I hit "buy", I get a message saying it cost xxxx coins, even though I have enough coins. I don´t get the weapon.

With the black market trader in Stary I don´t even get a trader menu. Not the advanced one nor the normal one.

Basically, all the item/vehicle/weapon/ammo lists are messed up somehow and I can´t buy or sell stuff except my trusty old makarov. I even get the money when I sell it, hey!

 

I have searched the forum for "item list", "price list" "setup+standard+trader+single+currency" , "setup trader", "price list setup" and that kinda stuff but could`t find anything that would help me.

I don`t understand where all the bits and pieces are that make this work correctly.

 

Any help is appreciated.

Cheers

 

*first you can try open your server_monitor.sqf and change all words called "intentory" by "inventory"..

*Also in MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\config.sqf

check this lines:

Z_AT_FolderLocation = 'zupa\advancedTrading';
Z_VehicleDistance = 30; // Distance that a vehicle needs to be to see it's content or to sell it.
Z_SingleCurrency = true; // Does your server use a single currency system.
Z_AllowTakingMoneyFromBackpack = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your backpack.
Z_AllowTakingMoneyFromVehicle = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your vehicle.
Z_MoneyVariable = "cashMoney"; // If using a Single currency system, change this to whatever currency you are using.

 

 

Share this post


Link to post
Share on other sites
  • 0

Hi Juandayz,

 

thanks for your quick response. I have replaced all "intentories" and checked the switches for using single currency in the config.sqf.

Still I`m getting really weird behaviour. At the moment I`m not even getting the advanced trader menu anymore :-(

I might pull a fresh copy of advance trade and single currency and start from scratch. 

Do you have any recommendations on what package works well with Chernarus Epoch 1.0.5.1?

 

Thanks again! 

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, Dayzguy said:

Hi Juandayz,

 

thanks for your quick response. I have replaced all "intentories" and checked the switches for using single currency in the config.sqf.

Still I`m getting really weird behaviour. At the moment I`m not even getting the advanced trader menu anymore :-(

I might pull a fresh copy of advance trade and single currency and start from scratch. 

Do you have any recommendations on what package works well with Chernarus Epoch 1.0.5.1?

 

Thanks again! 

take a look on this

 

Share this post


Link to post
Share on other sites
  • 0

Hi Juandayz,

 

I now have the advance trading menue show up, but it is empty, No itemas at all.

When I go to the normal trader menue I see all items including the Overwatch items at the gun trader in the tent in Stary and the vehicle trader.

The black market trader seems to be normal.

The advanced trading menu doesn't show any items at all. 

 

As I want to use ZUPAs single currency and  storage I changed all code to reflect that. 

I see the coin symbol and "0 Coins".

From the normal trading menu I can buz all items even though I have no coins!?

When I sell items through the normal trading menu I don`t get any coins for them.

Also I can only buy and sell items from normal traders menu.

this works without needing any coins and I don't get any coins when I sell.

 

Any help is appreciated.


Thanks!

 

The server log shows thiis:

 

Strange convex component81 in zero_buildings\models\housev_3i3_i.p3d:geometryFire
Strange convex component288 in warehouse\models\warehouse.p3d:geometry
Strange convex component289 in warehouse\models\warehouse.p3d:geometry
Strange convex component290 in warehouse\models\warehouse.p3d:geometry
Strange convex component291 in warehouse\models\warehouse.p3d:geometry
Strange convex component292 in warehouse\models\warehouse.p3d:geometry
Strange convex component293 in warehouse\models\warehouse.p3d:geometry
Strange convex component294 in warehouse\models\warehouse.p3d:geometry
Strange convex component295 in warehouse\models\warehouse.p3d:geometry
Strange convex component296 in warehouse\models\warehouse.p3d:geometry
Strange convex component297 in warehouse\models\warehouse.p3d:geometry
Strange convex component298 in warehouse\models\warehouse.p3d:geometry
Strange convex component299 in warehouse\models\warehouse.p3d:geometry
Strange convex component300 in warehouse\models\warehouse.p3d:geometry
Strange convex component301 in warehouse\models\warehouse.p3d:geometry
Strange convex component302 in warehouse\models\warehouse.p3d:geometry
Strange convex component303 in warehouse\models\warehouse.p3d:geometry
Strange convex component304 in warehouse\models\warehouse.p3d:geometry
Strange convex component305 in warehouse\models\warehouse.p3d:geometry
Strange convex component306 in warehouse\models\warehouse.p3d:geometry
Strange convex component307 in warehouse\models\warehouse.p3d:geometry
Strange convex component308 in warehouse\models\warehouse.p3d:geometry
Strange convex component309 in warehouse\models\warehouse.p3d:geometry
Strange convex component310 in warehouse\models\warehouse.p3d:geometry
Strange convex component311 in warehouse\models\warehouse.p3d:geometry
Strange convex component312 in warehouse\models\warehouse.p3d:geometry
Strange convex component313 in warehouse\models\warehouse.p3d:geometry
Strange convex component314 in warehouse\models\warehouse.p3d:geometry
Strange convex component315 in warehouse\models\warehouse.p3d:geometry
Strange convex component316 in warehouse\models\warehouse.p3d:geometry
Strange convex component317 in warehouse\models\warehouse.p3d:geometry
Strange convex component252 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component253 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component254 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component255 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component256 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component257 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component258 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component259 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component260 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component261 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component262 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component263 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component264 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component265 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component266 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component267 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component268 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component269 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component270 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component271 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component272 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component273 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component274 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component275 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component276 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component277 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component278 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component279 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component280 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component281 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component249 in warehouse\models\warehouse.p3d:geometryView
Strange convex component250 in warehouse\models\warehouse.p3d:geometryView
Strange convex component251 in warehouse\models\warehouse.p3d:geometryView
Strange convex component252 in warehouse\models\warehouse.p3d:geometryView
Strange convex component253 in warehouse\models\warehouse.p3d:geometryView
Strange convex component254 in warehouse\models\warehouse.p3d:geometryView
Strange convex component255 in warehouse\models\warehouse.p3d:geometryView
Strange convex component256 in warehouse\models\warehouse.p3d:geometryView
Strange convex component257 in warehouse\models\warehouse.p3d:geometryView
Strange convex component258 in warehouse\models\warehouse.p3d:geometryView
Strange convex component259 in warehouse\models\warehouse.p3d:geometryView
Strange convex component260 in warehouse\models\warehouse.p3d:geometryView
Strange convex component261 in warehouse\models\warehouse.p3d:geometryView
Strange convex component262 in warehouse\models\warehouse.p3d:geometryView
Strange convex component263 in warehouse\models\warehouse.p3d:geometryView
Strange convex component264 in warehouse\models\warehouse.p3d:geometryView
Strange convex component265 in warehouse\models\warehouse.p3d:geometryView
Strange convex component266 in warehouse\models\warehouse.p3d:geometryView
Strange convex component267 in warehouse\models\warehouse.p3d:geometryView
Strange convex component268 in warehouse\models\warehouse.p3d:geometryView
Strange convex component269 in warehouse\models\warehouse.p3d:geometryView
Strange convex component270 in warehouse\models\warehouse.p3d:geometryView
Strange convex component271 in warehouse\models\warehouse.p3d:geometryView
Strange convex component272 in warehouse\models\warehouse.p3d:geometryView
Strange convex component273 in warehouse\models\warehouse.p3d:geometryView
Strange convex component274 in warehouse\models\warehouse.p3d:geometryView
Strange convex component275 in warehouse\models\warehouse.p3d:geometryView
Strange convex component276 in warehouse\models\warehouse.p3d:geometryView
Strange convex component277 in warehouse\models\warehouse.p3d:geometryView
Strange convex component278 in warehouse\models\warehouse.p3d:geometryView
"DayZ Epoch: PRELOAD Functions\init [[<No group>:0 (FunctionsManager)],any]"
"DayZ Epoch: MPframework inited"
Strange convex component93 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component94 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component95 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component96 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component99 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component100 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component101 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component102 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component103 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component104 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component105 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component106 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component107 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component108 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component109 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component110 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component111 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component112 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component113 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component114 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component115 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component116 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component117 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component118 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component119 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component120 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component121 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component122 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component123 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component124 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component125 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component126 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component127 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component128 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component129 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component130 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component131 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component132 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component133 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component134 in zero_buildings\models\mil_house_i.p3d:geometryView
"Admin Tools: config.sqf loaded"
"Admin Tools: variables.sqf loaded"
"Res3tting B!S effects..."
"HIVE: Starting"
"HIVE: trying to get objects"
"\z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."
Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
"HIVE: found 389 objects"
"HIVE: Commence Object Streaming..."
Error in expression <83,1.526e-04]],[[[],[]],[[],[]],[[],[]],any],[],0.997,0.0]>
  Error position: <any],[],0.997,0.0]>
  Error Undefined variable in expression: any
"HIVE: got 61 Epoch Objects and 328 Vehicles"
AH6X_DZ: FLIR_turret - unknown animation source FLIR_turret
AH6X_DZ: FLIR_gun - unknown animation source FLIR_gun
UH1Y_DZE: ObsTurret - unknown animation source ObsTurret
UH1Y_DZE: ObsGun - unknown animation source ObsGun
Cannot create non-ai vehicle 350z_city,
"HIVE: Vehicle Spawn limit reached!"
"HIVE: Spawning # of Debris: 500"
"HIVE: Spawning # of Ammo Boxes: 3"
"HIVE: Spawning # of Veins: 50"
"Total Number of spawn locations 5"
"EPOCH EVENTS INIT"
"DEBUG: Too many at [6796.47,2670.36]"
"DEBUG VEIN: Too many objects at [6763.5,13463.9]"
"DEBUG VEIN: Too many objects at [5160.8,9132.99]"
"DEBUG VEIN: Too many objects at [5157.95,9128.66]"
Server: Object 3:6 not found (message 94)
"TIME SYNC: Local Time set to [2013,8,3,12,43]"
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\stp\non\non\amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon_end.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon_end
Server: Object 3:12 not found (message 98)
Server: Object 3:13 not found (message 91)
Server: Object 3:15 not found (message 91)
Server: Object 3:14 not found (message 99)
Server: Object 3:17 not found (message 91)
Server: Object 3:16 not found (message 99)
Server: Object 3:19 not found (message 70)
Server: Object 3:18 not found (message 70)
Server: Object 3:20 not found (message 70)
Server: Object 3:21 not found (message 94)
Server: Object 3:25 not found (message 91)
Server: Object 3:24 not found (message 99)
Server: Object 3:22 not found (message 70)
Server: Object 3:23 not found (message 70)
Server: Object 3:27 not found (message 91)
Server: Object 3:26 not found (message 98)
Server: Object 3:28 not found (message 94)
Server: Object 3:29 not found (message 94)
Server: Object 3:33 not found (message 70)
Server: Object 3:35 not found (message 70)
Server: Object 3:32 not found (message 94)
Server: Object 3:34 not found (message 70)
Server: Object 3:30 not found (message 94)
Server: Object 3:31 not found (message 70)
Server: Object 3:37 not found (message 98)
Server: Object 3:36 not found (message 94)
Server: Object 3:38 not found (message 91)
Server: Object 3:39 not found (message 99)
Server: Object 3:40 not found (message 91)
Server: Object 3:41 not found (message 70)
Server: Object 3:42 not found (message 94)
Server: Object 3:44 not found (message 91)
Server: Object 3:43 not found (message 98)
Server: Object 3:45 not found (message 98)
Server: Object 3:46 not found (message 91)
Server: Object 3:48 not found (message 94)
Server: Object 3:47 not found (message 70)
Server: Object 3:49 not found (message 99)
Server: Object 3:50 not found (message 91)
Server: Object 3:52 not found (message 94)
Server: Object 3:51 not found (message 94)
Server: Object 3:54 not found (message 94)
Server: Object 3:53 not found (message 94)
Server: Object 3:55 not found (message 98)
Server: Object 3:56 not found (message 91)
Warning: z\addons\dayz_communityassets\models\razor.p3d:0 Error while trying to generate ST for points: 214, 349, 208
Warning Message: Script z\addons\dayz_server\WAI\customsettings.sqf not found
"WAI: AI Config File Loaded"
"WAI: AI Monitor Started"
"WAI: Initialising missions"
"EPOCH SERVERTRADE: Player: G3NO (76561197967969428) bought a G36C in/at trader city Stary for 60000x Coins"
"EPOCH SERVERTRADE: Player: G3NO (76561197967969428) sold a G36C in/at trader city Stary for 20000x Coins"
"WAI: [Mission:[Hero] Mayors Mansion]: Starting... [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 1 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned in 2 M2StaticMG"

Share this post


Link to post
Share on other sites
  • 0

 @Dayzguy

mmm seem like a ZSC issue not advanced trade.

but also you can try it: open config.sqf located in:

\MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\

check this line:

Z_MoneyVariable = "Coins"; // If using a Single currency system, change this to whatever currency you are using.

***Anyway this issue is about adv trade:

..."The advanced trading menu doesn't show any items at all."...

open your description.ext-- at very top you must have this line:

#include "ZSC\config\cfgServerTrader.hpp"

***This other issue is abour ZSC mod:

..."From the normal trading menu I can buz all items even though I have no coins!?

When I sell items through the normal trading menu I don`t get any coins for them."...

Share this post


Link to post
Share on other sites
  • 0

Thanks again for coming back to me, really appreciate it.

Unfortunately I have both your suggestions in my code.

Single Currency is set to true and i have changed the currency name to "coins" so it matches my setup.

The #include "ZSC\config\cfgServerTrader.hpp"  is also included in my description.ext.

 

Can you tell me which files are needed in order to get advanced tradeing working? I have the feeling something is missing of linking to the wrong files somehow.


Thanks again! 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Dayzguy said:

Thanks again for coming back to me, really appreciate it.

Unfortunately I have both your suggestions in my code.

Single Currency is set to true and i have changed the currency name to "coins" so it matches my setup.

The #include "ZSC\config\cfgServerTrader.hpp"  is also included in my description.ext.

 

Can you tell me which files are needed in order to get advanced tradeing working? I have the feeling something is missing of linking to the wrong files somehow.


Thanks again! 

what mods do you have installed?

if u have only a few... then maybe u can start a fresh server.

So first install Coins (only paste and overwrite the server files)

https://github.com/EpochSC/SingleCurrencyStorage

Then: Open your dayz_Server.pbo... open your server_monitor.sqf and change all words called "intentory" by "inventory"... save and repack your pbo.

At second install advanced trading 2.1:

follow my guide:

 

 

Share this post


Link to post
Share on other sites
  • 0

Hi Juandayz,

that might be the best idea. I'm running a fresh Arma 2 Dayz 1.0.5.1 Server and have been trying to modify it from scratch anyway. I had WAI, Lift& Tow, self blood bag, admin menu, fun menu and weather running fine. All that wasn't too hard, but the advanced trading and single currency really messed everything up.

Your reply has helped in another way as it sounds like I have to copy the entire package (Zupa single currency) over to my server. From the manual I understood you should only copy the ZSC folder across and modify a few existing files. That sort of didn't make sense to me but I still stuck to it anyway.

Tomorrow I will try and copy the whole package over to my server.

This could be a real noob error ;-)

 

Thanks again!

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Dayzguy said:

Hi Juandayz,

that might be the best idea. I'm running a fresh Arma 2 Dayz 1.0.5.1 Server and have been trying to modify it from scratch anyway. I had WAI, Lift& Tow, self blood bag, admin menu, fun menu and weather running fine. All that wasn't too hard, but the advanced trading and single currency really messed everything up.

Your reply has helped in another way as it sounds like I have to copy the entire package (Zupa single currency) over to my server. From the manual I understood you should only copy the ZSC folder across and modify a few existing files. That sort of didn't make sense to me but I still stuck to it anyway.

Tomorrow I will try and copy the whole package over to my server.

This could be a real noob error ;-)

 

Thanks again!

yup when you start a new server.. at first you have to think...

what mod i gonna install first?

thers 2 answers: Single Currency or Plot 4 life.   (this two have the option to only copy and paste his files on a fresh server).

So the better idea in your case is start a new server, overwrite with Single Currency files, and install advanced trading mod.

The rests of the mods: WAI, Lift& Tow, self blood bag, admin menu.. are easy to install... so try using this order:

COINS

ADVANCED TRADING

(change all words "intentory" by "inventory" in server_monitor.sqf

(make a test)

Admin Menu

SelfBloodbag

Lift&Tow

(Test)

WAI

(test)

Share this post


Link to post
Share on other sites
  • 0

Hi again,

 

I have setup a new server and followed your recommendations in regards to the sequence.

It sort of works now but there are a few little issues.

 

ZUPA's single currency script is based on his Overpoch server. I'm only running an Epoch server. I had to customize the Overpoch items so they don't show up.

That worked fine.


What is happening now is that the utility trader in Stary doesn't show anything for the category "money". Also I can't buy anything through the advanced trading menue (normal weapons from the guy in the tent in Stary). I can see all the weapons and add them, the buy/sell price is displayed correctly, I have enough coins, but it tells me "you need xxxx coins to buy this item".

 

It's weird. Any thoughts?


Thanks!

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, Dayzguy said:

Hi again,

 

I have setup a new server and followed your recommendations in regards to the sequence.

It sort of works now but there are a few little issues.

 

ZUPA's single currency script is based on his Overpoch server. I'm only running an Epoch server. I had to customize the Overpoch items so they don't show up.

That worked fine.


What is happening now is that the utility trader in Stary doesn't show anything for the category "money". Also I can't buy anything through the advanced trading menue (normal weapons from the guy in the tent in Stary). I can see all the weapons and add them, the buy/sell price is displayed correctly, I have enough coins, but it tells me "you need xxxx coins to buy this item".

 

It's weird. Any thoughts?


Thanks!

hey, you already config:

( \MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\ config.sqf )

Z_AT_FolderLocation = 'zupa\advancedTrading';
Z_VehicleDistance = 30; // Distance that a vehicle needs to be to see it's content or to sell it.
Z_SingleCurrency = true; // Does your server use a single currency system.
Z_AllowTakingMoneyFromBackpack = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your backpack.
Z_AllowTakingMoneyFromVehicle = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your vehicle.
Z_MoneyVariable = "cashMoney"; // If using a Single currency system, change this to whatever currency you are using.

Share this post


Link to post
Share on other sites
  • 0

Thanks again.

 

I have now changed to hosting an Overpoch server as I like thr idea of having more choice.

Also it should work better with Zupa's single currency and advanced trading.

Single currency works fin now but unfortunately the traders in Stary (I only ever test with those to start with) don't all have the advance trading menu activated for some reason.

Can you tell me where to add the trigger so the advanced trading menu opens foe a trader of my choice?

Also I saw that the traders now have many iteam double, not all but quite a few.

Will I have to edit the DB to clean this up?


Thanks again!


Regards

Share this post


Link to post
Share on other sites
  • 0

@Dayzguy  the call for adv trade is located in fn_Selfaction.sqf

_buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "zupa\advancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""];
s_player_parts set [count s_player_parts,_buyV];

 

if u already had a custom fn_selfaction.sqf check this line for ZSC config....

 // if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = false;

i use my own selfaction..so i have it in false.. but you will need copy and paste this ZSC lines to yoour own fn_Selfaction.sqf

if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 5)) then {
		if (s_bank_dialog < 0) then {
				s_bank_dialog = player addAction ["Money Storage", "ZSC\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];	
		};
	} else {
     	player removeAction s_bank_dialog;
		s_bank_dialog = -1;
	};

also. sometimes is better call the fn_Selfactions.sqf from init.sqf and remove from compiles.sqf

so first you will need a custom compiles.sqf

into this new compiles.sqf find the fn_selfactions.sqf call  and remove it.

then go to your init.sqf

and place lines in blue: (change if u dont use the same paths)

Spoiler

//Load in compiled functions
call compile preprocessFileLineNumbers "custom\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "custom\publicEH.sqf";                //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";    //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "custom\compiles.sqf";    //Compile regular functions
/*ZSC*/    
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
/*ZSC*/            
call compile preprocessFileLineNumbers "addons\bike\init.sqf";
call compile preprocessFileLineNumbers "overwrites\click_actions\init.sqf"; //right click actions
call compile preprocessFileLineNumbers "custom\safezone\lock_god.sqf";//lock_god mode vehicles
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders_cherno_11.sqf";                //Compile trader configs
call compile preprocessFileLineNumbers "admintools\config.sqf"; // Epoch admin Tools config file
call compile preprocessFileLineNumbers "admintools\variables.sqf"; // Epoch admin Tools variables
call compile preprocessFileLineNumbers "logistic\init.sqf";// TOW Y LIFT
progressLoadingScreen 1.0;

fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";

if u cannot make it work.. send me a mp and i can join through team viewer to your pc and try to fix your issue... or just upload your mpmissions folder.

Share this post


Link to post
Share on other sites
  • 0

Cool, thanks.

I have renamed it to compiles.bak in dayz_server.pbo and made the changes to the init.sqf in my missions folder.

I also added your custom folder to my missions folder.

Then I commented the line about fn_selfactions out in my dayz_server.bpo

It's not working, I don`t know what the problem is.

When I try to connect mto my server it gets stuck on the loading screen after the lobby :-(

If you could take a look I would very much appreciate it :-)

https://www.dropbox.com/s/imus73efj8suxtm/dayz_server.zip?dl=0

 

Thanks!!

Share this post


Link to post
Share on other sites
  • 0

ok  @Dayzguy  this files contain only adv trade and coins.... ( take a look on custom folder. into Instance_11 folder... inside thers a  custom compiles.sqf i forgot remove the fn_selfactions call

//fnc_usec_selfActions =            compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf";   

please do it.

also.. i merge the fn_selfaction from ZSC with the original from epoch and the code for ADV TRADE

http://www.mediafire.com/file/1rqplphay6b1b9y/serverZSCADV.rar

 

Step by Step:

1-Download single currecy 3.0

https://github.com/EpochSC/SingleCurrencyStorage

2-Overwrite my Mpmission folder and my dayz_server folder.

3-change all "intentory" by "inventory" in server_monitor.sqf   and repack my dayz_server.pbo

*Copy to MPMISSIONS\instance\custom\   the fn_Selfactions.sqf and compiles.sqf from dayz_server.pbo

4-Download adv trade 2.1

5-copy zupa folder to my instance

6-open my \MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\ config.sqf

change this line: Z_SingleCurrency = true;

7-open my description.ext  at bottom:

#include "zupa\advancedTrading\advancedTrading.hpp"

8-Open \MPMissions\DayZ_Epoch_11.Chernarus\ZSC\compiles\fn_selfaction.sqf

9-copy all content of this fn_selfactions.sqf and overwrite the one into custom folder.

10-Add the lines for adv trade in this new custom selfactions.

_buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "zupa\advancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""];
s_player_parts set [count s_player_parts,_buyV];

11-open \MPMissions\DayZ_Epoch_11.Chernarus\ZSC\gold\ZSCconfig.sqf

set this line:

 // if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = false;

12-Open init.sqf  add the calls for custom compiles and custom fn_selfactions.sqf

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";                //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";    //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "custom\compiles.sqf";    //Compile regular functions
/*ZSC*/    
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
/*ZSC*/            
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders_cherno_11.sqf";                //Compile trader configs
progressLoadingScreen 1.0;
fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";

13-Open custom compiles and remove the calll for fn_selfactions  ( the thing i forgot)

//fnc_usec_selfActions =            compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf";   

Share this post


Link to post
Share on other sites
  • 0

looking through your files....

Errors:  in init.sqf

this  line:

call compile preprocessFileLineNumbers "\custom\compiles.sqf";    //Compile regular functions

the red bar its bad.. the line must be:

call compile preprocessFileLineNumbers "custom\compiles.sqf";    //Compile regular functions

for the rest seem to be fine.

Share this post


Link to post
Share on other sites
  • 0

Thanks man, server is working again.

 

Advanced trading only works on a few traders, not all :-(

Also, even though I have lots of coins I can't buy anything. It says that I need xxxcoins to purchase whatever I'm trying to buy?!

So it thinks I have no money????


I'm puzzled

 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Dayzguy said:

Thanks man, server is working again.

 

Advanced trading only works on a few traders, not all :-(

Also, even though I have lots of coins I can't buy anything. It says that I need xxxcoins to purchase whatever I'm trying to buy?!

So it thinks I have no money????


I'm puzzled

 

well as a last try... take a look into ZSC.rar thers a convert.sqf ... run it as a query with heidy sql or navicat..

and you already try with the server files that i upload for you? http://www.mediafire.com/file/1rqplphay6b1b9y/serverZSCADV.rar

 

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 MessiGamer
      Alright!
      i tried to instal this five times. clean installation without other scripts. I see this work without battleye, but with it I get three restrictions. I tried to fix this with bfe.marma.io because I'm noob. but I get another constraint that I can not fix.
      this log are pure clean install without my modifications: i have edited for not showing my useless data.     .  
      RPT.log 
      script.log
      server.log
      script.txt
      //new2 5 addAction !raddAction !"\"addAction\", " !", \"\\z\\addons\\dayz_code\\" !"],DZE_build_vector_file,[vectorActionState," 5 addBackpack !"addBackpackCargoGlobal [_x,(_objWpnQty select _counter)];\n_counter = _counter + 1;\n} count _objWpnTypes;" !"addBackpack _item;\n};\n};\nformat[localize \"str_c" !"case 3: {_holder addBackpackCargoGlobal [_item,_amount];};\n};\n\n\n" !"}) then {\n_newUnit addBackpack _newBackpackType;\n\nd" !"(_this select 0)) then\n{\n(_this select 0) addBackpack (_x select 1);\n};\n};" !"(_this select 0) addBackpackCargoGlobal [_x select 1, 1];\n};\n};\n} cou" !"addBackpack _backpackType; \ndayz_myBackpack = unitBackpack player;\n\n\n\n_backpackWpnT" !"};\n} count _wpns;\n\nif (_bcpk != \"\") then {\nplayer addBackpack" !"1 == \"trade_backpacks\") then {\nDZE_myVehicle addBackpack" !"7 addBackpackCargoGlobal [_create,_qty];\n};\nif (surfaceIsWater" !"case 5: {_item addBackpackCargoGlobal [_itemOut,_countOut]};\n};\n} else" 5 addMagazine !raddMagazine !"\"addMagazine\", " !"if (isClass (configfile >> \"cfgmagazines\" >> (_item))) then {_unit addMagazine _item;};\n};\n};\n};\n};" !"_vehicle addMagazineTurret [_ammo,_turret];\nplayer removeMagazine" !"if (dayz_actionInProgress) exitWith {" !"addMagazine _x;\n};\n} foreach _items;\nformat[loc" !"addMagazine 'Hatchet_Swing'" !"addMagazine \"ItemAntibiotic\" + str(_remain" !"sumeDrop\") == 0) then\n{\nplayer addMagazine" !"ion) do {\ncase \"CfgWeapons\":\n{\nplayer addWeapon _item;\n};\ncase \"CfgMagazines\":\n{\nplayer addMagazine" !"addMagazine [\"12Rnd_Quiver_Wood\",_qty_quiv" !" >> \"containerEmpty\")" !"plant) select 1;\n{\n_item addMagazine" !"addMagazineCargoGlobal [_itemtodrop,1];\n\nformat[localize \"str_f" !"addMagazine _attachment;\n\n\n(findDisplay 10" !"addMagazine getText (configFile >> \"CfgMagazines\" >> _x >> _water" !"};\n};\n\n\nswitch _type do {\ncase 1: {_holder addMagazine" !"do {\n_animalbody addMagazine _rawfoodtype" !"addMagazine _item;\n};\n};\n_idc = _idc" !"_newUnit addMagazine [_x select 0,_x select 1]" !"addMagazine _x } count MeleeMagazines;\n} e" !"_meleeNum < 1) then {\nplayer addMagazine" !"addMagazine _qtyRemaining;\n};\n};\ntrue" !"bag\";\n};\n};\n(_this select 0) addMagazine" !"addMagazineCargoGlobal [_item, 1];\nif (surfaceIsWater (_this s" !"addMagazine \"wholeBloodBagBNEG\";\n};\n};" !"_qty > 0) then {\n_firePlace addMagazine" !"ONEG\" }; \n};\ndayz_myBackpack addMagazine" !"addMagazine _x;\n_countmags = _countmags +1;\n};\n} count _gmag" !"E\"];\n_lootpile addMagazineCargoGlobal [\"TrapBear\", 1]" !"With\n{\nplayer addMagazine (_this select 1" !"lder addMagazineCargoGlobal [_x,(_objWpnQty select _counter)];\n_counter = _counter + 1;\n};\n} co" !"soldItem\"];\n{\n_object addMagazine" !"systemChat localize \"STR_EPOCH_TRADE_" !"if (_silver_1oz > 0) then {\nif (_silver_1oz == 1) then {\nplayer addMagazine" 5 addWeapon !raddWeapon !"\"addWeapon\", " !"if (isClass (configfile >> \"cfgweapons\" >> (_item))) then {_unit addWeapon _item;}\nelse" !",0]] call dayz_NutritionSystem;\n" !"Remove) == 1}) then {\nplayer addWeapon _create;" !"Display 0;\n\n\nif (_weaponInUse) then\n{\n_muz" !"failChance) then {\nswitch (_selection) do {\ncase \"CfgWeapons\":\n{\nplayer addWeapon" !"addWeapon _fixedItem;\nformat[localize \"str_f" !"_wepcounts = (getWeaponCargo _plant) select 1;\n{\n_item addWeapon" !"addWeapon _repair;\n} else {\n\n[_repair" !"player addWeapon dayz_onBack\n] select 0;\n};\n\n" !"player addWeapon _addWeapon;\n\nif (vehicle player != player) then {\n_display = find" !"};\n};\n\n\nswitch _type do {\ncase 1: {_holder addMagazineCargoGlobal [_item,_amount];};\ncase 2: {_holder addWeapon" !"l fn_chance) then {\nplayer removeWeapon _x;\nplayer addWeapon _rem" !"else {\n_body addWeapon dayz_onBack;\n};\n};\n\n\n_infect" !"\" >> _x)) then {\nplayer addWeapon _x;\n};\n} count _wpns;\n};" !"lder addWeaponCargoGlobal [_x,(_objWpnQty select _counter)];\n_counter = _counter + 1;\n} co" !"WpnQtys = [];\nif (count _backpackWpn > 0) then {\n_backpackWpnTypes = _backpackWpn sel" !"addWeapon (\"Item\"+str(_remain)+\"Matchbox" !"{\nswitch (_x select 0) do\n{\ncase 2:\n{\n(_this select 0) addWeapon" !"E\"];\n_vehicle addWeaponCargoGlobal [_lootInfo select 1, 1" !"addWeaponCargoGlobal [_bcpkWpn, 1];\n};\n};\n};\n};" !"s;\n};\n\n\nplayer addWeapon \"Loot" !"With\n{\nplayer addWeapon (_this select 1" !"\") then {\n_newUnit addWeapon _secweapon;\n};\n\n" !"soldItem\"];\n{\n_object addWeapon" !"then {\nsystemChat format[localize \"STR_EPOCH_" !"DuplicateTool;\n} else {\nplayer addWeapon" 5 allDead !"} count allDead;\n\n\nif (dayz_oldBodyCount > _bodyCount) then {" 5 allGroups !"publicVariableServer \"PVDZ_Server_UpdateGroup\";\n};\n} count allGroups;" 5 allMissionObjects !"[_x,2,0,false,false] spawn BIS_Effects_Burn;\n};\n} count allMissionObjects \"SpawnableWreck\";" 5 allowDammage 5 allUnits !"} count allUnits;\nlbSort _playerList;" !"if (getPlayerUID _x == _this) exitWith {\n_player = _x;\n};\n} count allUnits;" !"owner _x publicVariableClient \"PVDZ_groupInvite\";\n};\n} count allUnits;" 5 attachTo !"(_variation * 2)) - _variation)];\n_bolt attachTo [_hitObject,_val,_hitMemoryPt];" !"player playActionNow \"PutDown\";\nuiSleep 2;\n_flare attachTo [player,[0,0,0],\"granat2\"];" !"tchmove \"ainjpfalmstpsnonwrfldnon_carried_still\";\n_dragee attachto [_unit,[-0.2, 0.2, 0]];" !"_source setDropInterval 0.02;\n_point attachTo [_unit,_modelPos,_wound];" !" attachto [_v,[0,0,0],\"destructionEffect" !"publicVariable \"PVDZ_drg_RaDrag\";\n\n_dragee attachto [_unit,[0.1, 1.01, 0]];" !="_l1 attachTo [_lh,[0,0,0],\"light\"];" !"_objectHelper attachTo [player,_offset];" !"_object attachTo [player,_offset];\n\n_position = getPosATL _object;" !="_vehicle attachTo [_liftHeli,[0,0,-7]];" !="_obj attachTo [_axis];" !"_objectSnapGizmo attachTo [_object,[_x select 0,_x select 1,_x select 2]];" !="_vehicle attachTo [_towTruck,[1.3,-2,2.3]];" !"localize \"STR_EPOCH_ACTIONS_ATTACHTOHELI\"," 5 buttonSetAction 5 callExtension 5 camCreate !"camCreate (player modeltoWorld [0,0,2]);\n0.2 fadeSound 0.1;\nDayz_" !"_body;\n_playerID = getPlayerUID player;\n\n\n_camera = \"camera\" camCreate _death" !="_camera = \"camera\" camCreate [12222.323, 3415.7791, -0.059190542]" 5 cameraEffect !"0.2 fadeSound 0.1;\nDayz_BuildCamera cameraeffect [\"External\", \"TOP\"];" !"cameraEffect [\"Internal\",\"TOP\"];\n_camera camSetTarget _deathPos;\n_camera camSetPos [_deathPos select" !"r_Simulation\";\n\n_camera cameraEffect [\"Terminate" !"cameraEffect [\"internal\",\"back\"]\n\n_camera camPrepareTarget [6433.5" 5 closeDisplay !"'closeDisplay'" !"closeDisplay 0" !"closeDisplay 2" !"if (!isNil \"closeDisplay\") then {" 1 compile !"ca\\communityconfiguration" !"ca\\Data\\" !"ca\\missions" !"ca\\modules" !"ca\\ui\\" !"ca\\Warfare2\\" !"scriptName \"Functions\\systems\\fn_inv" !"scriptName \"MP\\data\\script" !"code = compile preprocessFileLineNumbers (BIS_PathMPscriptCommands" !"t = missionConfigFile >> \"onMinimapScript" !="_this call (call compile GetText (configFile >> \"CfgAmmo\" >> _amm >> \"muzzleEffect\"));" !"z\\addons\\dayz_code\\" !"_menu ctrlSetEventHandler [\"ButtonClick\",_compile];\n};\n_pos set [3" !"{ _x set [1, compile (_x select 1)]; }" !"silver_1oz_b);\n\n{ \nif (!isNil {call compile" !"Var = compile format[\"epoch_death_board_record_" 5 createAgent !="_agent = createAgent [_type, _position, [], _radius, \"CAN_COLLIDE\"];" !="_agent = if (_type == \"Pastor\") then {createAgent [_type, _Pos, [], 0, \"NONE\"]} else {createAgent [_type, _Pos, [], 0, \"FORM\"]};" !="_dog = createAgent [_type, _Pos, [], 0, \"NONE\"];" 5 createDialog !="_region = createDialog \"RscDisplaySpawnSelecter\";" !="_gender = createDialog 'RscDisplayGenderSelect';" !="_dialog = createDialog \"bloodTest\";" !="createDialog 'RscDisplayCraftingMenu';" !="createDialog \"DAYZ_PADLOCK\";" !"createDialog 'horde_journal_" !"Z_ResetContainer = true;\ncreateDialog \"AdvancedTrading\";" !"createDialog \"DoorManagement\";\ncall DoorNearbyHumans;" !="createDialog \"ComboLockUI\";" !"createdialog \"PlotManagement\";\ncall PlotNearbyHumans;" !"_trader_data = (_this select 3);\n\n_dialog = createdialog \"TraderDialog\";" !"_ok = createdialog \"KeypadUI\";" !"EpochDeathBoardLoad = {\ncreatedialog \"EpochDeathBoardDialog\";" !="if(DZE_doorManagement) then {createdialog \"DoorAccess\";} else {createdialog \"ComboLockUI\";};" !"\ndisableSerialization;\ncreateDialog \"DZ_GroupDialog\";"!"createDialog \"atmDialog\";"!="createDialog \"BankDialog\";" !="createDialog \"GivePlayerDialog\";" 5 createDisplay 5 createMarker !"\"createMarkerLocal\"," !"rcreateMarkerLocal" !"if (isnil 'BIS_GITA_fnc_createMarkers' || false) then {" !"_marker = createMarkerLocal [format[\"groupMember" 5 createUnit !="_newUnit = _group createUnit [_class,respawn_west_original,[],0,\"NONE\"];" !="BIS_MPF_logic = BIS_MPF_dummygroup createUnit [\"Logic\", [1000,10,0], [], 0, \"NONE\"];" 5 createVehicleLocal !="_object = (_x select 1) createVehicleLocal [0,0,0];" !="_plant = _x createVehicleLocal (getMarkerPos \"center\");" !="_point = \"Logic\" createVehicleLocal getPosATL _unit;" !"_object = _type createVehicleLocal [0,0,0];" !="_obj = _class createVehicleLocal (getMarkerpos \"respawn_west\");" !" = \"#lightpoint\" createVehicleLocal " !" = \"#particlesource\" createVehicleLocal " !="_object = _ghost createVehicleLocal getMarkerpos \"respawn_west\";" !="_cursorTarget = _upgrade createVehicleLocal getMarkerpos \"respawn_west\";" !="_para = \"ParachuteWest\" createVehicleLocal [0,0,0];" !="_sign = \"Sign_arrow_down_large_EP1\" createVehicleLocal [0,0,0];" !"_obj = \"Sign_sphere10cm_EP1\" createVehicleLocal [0,0,0];" !="_objectSnapGizmo = \"Sign_sphere10cm_EP1\" createVehicleLocal [0,0,0];" !"_object2 = _ghost2 createVehicleLocal [0,0,0];\nhideObject _object;" 5 ctrlAddEventHandler 5 ctrlSetPosition !="_control ctrlSetPosition [_posX, _posY];" !"3,_h]};\n_control ctrlsetposition _pos;" !="_control ctrlSetPosition [0, (_y + _deltaY)];" !="_disp_ctrl ctrlSetPosition [_posX, _posY];" !="_control ctrlSetPosition _grpPos;" !="_group ctrlSetPosition _pos;" !="_control ctrlSetPosition [_controlPos select 0, _controlPos select 1, _controlPos select 2, 0.03921 * _lines];" !="((uiNamespace getVariable 'DAYZ_GUI_waiting') displayCtrl 1400) ctrlSetPosition _sandLevel;" !="_delayControl ctrlSetPosition [0, _pos];" !="_icon ctrlSetPosition [(_screen select 0),(_screen select 1),.99,.65];" 5 cutText !"_layer cuttext [\"\",\"plain\"];\n};\nmissionnamespace" !"\n\n\n3100 cuttext [\"\",\"plain\"];" !"} else {\n16 cutText [\"\",\"PLAIN\"];" !"exitWith {\n1 cutText [localize \"" !"progress_monitor.sqf\";\n0 cutText ['','BLACK',0]" !="8 cutText [\"\",\"PLAIN\"];" 5 deleteMarker !"} count allDead;\n\n\nif (dayz_oldBodyCount > _bodyCount) then {" 5 displayAddEventHandler !"bis_fnc_halo_keydown_eh = (finddisplay 46) displayaddeventhandler [\"keydown\",\"_this call bis_fnc_halo_keydown;\"];" 5 displaySetEventHandler 5 enableEnvironment 5 endMission !rendMission !"clearWeaponCargo\",\n\"endMission\"," !"enablesimulation\", \"endMission\"," !"lize \"str_player_login_timeout\", \"PLAIN DOWN\"];\nuiSleep 5;\nendMission" !"\npublicVariableServer \"PVDZ_sec_atp\";\nendMission \"LOSER\";\n};\n" !"Terminate\",\"BACK\"];\ncamDestroy _camera;\n\nendMission" !"endMission \"END1\";\n\n\ndayz_authed = true" 1 execVM !rexecVM !"\"execVM\", " !="[] execVM \"initJIPcompatible.sqf\";" !="_script = [] execVM (BIS_MP_Path + BIS_PATH_SQF + \"JIPWaitFor.sqf\");" !"execVM \"\\ca\\Data\\" !"execVM '\\ca\\Data\\" !"execVM \"\\ca\\missions" !"execVM 'ca\\modules\\" !"execVM \"ca\\modules\\" !"'\\ca\\ui\\" !"\"\\ca\\ui\\" !"scriptName \"MP\\data\\script" !"_handle\"];\n_handle = [_display] execVM _script;\n}" !"execVM '\\z\\addons\\dayz_code\\" !"execVM 'z\\addons\\dayz_code\\" !"execVM \"z\\addons\\dayz_code\\" !"execVM \"\\z\\addons\\dayz_code\\" !"execVM (\"\\z\\addons\\dayz_code\\" !="dayz_rulesHandle = execVM \"rules.sqf\";" !"execvm '\\ASC\\" !"\\usec_ch53\\scripts\\" !"execVM (_actionDir + \"warn.sqf" 5 failMission !rfailMission !"failMission\",\n\"titleCut\"," !"fadeSound\", \"failMission\"," !"if (_debug == 1) then {\ndiag_log (\"End Mission\");\n};\n\nfailMission" 5 forceEnd 5 groupIcon 5 HelicopterExplo !"(isNull _who) then {\nif (_ammo != \"\" && _ammo isKindOf \"HelicopterExplo" !"_v = thisTrigger getVariable [\"obj\", objNull];\n" !"_v = thisTrigger getVariable [\"\"obj\"\", objNull];\n" !"\n\n\nremoveallweapons _v;\n\nif (local _v) then {_expl=\"HelicopterExplo" 5 hideObject !rhideObject !"\"hideObject\"" !"(_x select 0) nearestObject (_x select 1);\n_object hideObject" !"_object2 = _ghost2 createVehicleLocal [0,0,0];\nhideObject _object;" 5 hint !", \"_postFix\"" !rhint !rtaskHint !"\"hint\", " !"\"hintC\", " !"\"taskHint\"," !"_controlHintButton ctrlSettext \"Objectives\";" !"hint (localize \"strwf" !"'BIS_fnc_hints'" !sched_planthint !"call ui_initDisplay;\nhintSilent \"\"" !"hintSilent localize \"str_player_low" 5 lbCurSel !"_selectedUserIndex = lbCurSel _lbUsersControl;" !="profileNamespace setVariable ['statusUI',(lbCurSel (_this select 0))];" !="profileNamespace setVariable ['streamerMode',(lbCurSel (_this select 0))];" !"_index = lbCurSel _lbcontrol;\n_selectedItem" !"_selected = lbCurSel _list;\n_classname = _list lnbData [_selected, 2];" !="_friendName = _userList lbText (lbCurSel _userList);" !")] call Z_" !"(lbCurSel 7421) call Z_fillCategoryList" !"] call Door" !"] call Plot" !"[(lbCurSel 12001)] " !="[(lbCurSel 21000), ((ctrlParent (_this select 0)) displayCtrl 21001)] spawn EpochDeathBoardClick;" !"((ctrlParent (_this select 0)) closeDisplay 2);" !="_uid = _playerList lbData (lbCurSel _playerList);" !"_myGroup lbData (lbCurSel _myGroup);" 5 lbSet !"_lbUsersControl lbSetColor [_x, [1,0,0,1]];" !"\n_control lbSetColor [_x, _color];\n};" !"_weaponsLBSetFocus" !="(_this select 0) displayCtrl _idc lbSetCurSel (profileNamespace getVariable [_var,_default]);" !="(_display displayCtrl 105) lbSetColor [_i, [0.06, 0.05, 0.03, 1]];" !" [7421," !"lbSetPicture [7422, _index" !"lbSetPicture [7402, _index" !"lbSetPicture [7401, _index" !="_userList lbSetData [(lbSize _userList) -1,_friendUID];" !" [TraderDialogItemList, _index, " !"_myGroup lbSetData [_index,getPlayerUID _x];" 5 loadFile 5 menu !",\"MenuSelected\",\"Draw\",\"VideoStop" !"_menu = _parent displayCtrl (1600 + _i);\n_menu ctrlShow " !="createDialog 'RscDisplayCraftingMenu';" !"BIS_fnc_commsMenu" !"BIS_fnc_kbMenu" !"call gear_ui_offMenu;" !"dayz_inflame_showMenu" !"\"showCommandingMenu\", " !"rshowCommandingMenu" !"menu_" !"use action menu to " !"\"_menu\",\"_menu1\"" !"PVDZE_plr_TradeMenu" !"fn_gearMenuChecks" !"fn_pauseMenuChecks" 5 onMapSingleClick 5 player_humanityMorph !"fn_surfaceNoise.sqf\";\nplayer_humanityMorph = compile preprocessFileLineNumbers \"\\z" !"addMagazine _itemNew;\n_morphHandle = [dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;\n}" !"<= -2000) then {\nif (_isMen || _isMenH) then {\n[dayz_playerUID,dayz_characterID,\"Bandit1_DZ\"] spawn player_humanityMorph" !"#line 1 \"z\\addons\\dayz_code\\compile\\player_humanityMorph.sqf" 5 playableUnits !"for [{_y=0},{_y < count(playableUnits)},{_y=_y+1}] do {" !"typeName player == \"OBJECT\" && {(player in playableUnits" !"AND {((alive _x) AND {((vehicle _x) distance _obj < 150)})}} count playableUnits)}) then {" !="_local = { _unit distance _x < _dis; } count playableUnits <= 1;" !"if (!_isOk) exitWith {false};\nuiSleep 0.001;\n} forEach playableUnits;" !"ManagementMustBeClose) then { player nearEntities [\"CAManBase\", 10] } else { playableUnits };" 5 positionCameraToWorld 5 removeAllEventHandlers !"_WarnFuel = false;\n};\n\n};\n\n_vehicle removeAllEventHandlers \"IncomingMissile" !"leep _wait;} else {sleep (_wait * 4);};\n};\n\n_vehicle removeAllEventHandlers \"Dammaged" !"lse\"];\n{\n(findDisplay 12) displayCtrl 51 ctrlRemoveAllEventHandlers" !"select 1,0] nearestObject (_x select 2);\n_building removeAllEventHandlers" !"\n\n\n\nif (_this isKindOf \"AllVehicles\") then {\n\n_this removeAllEventHandlers" !"With {};\n\n_old = player;\n_old removeAllEventHandlers \"FiredN" !"\npublicVariableServer \"PVDZ_veh_Save\";\n};\n};\n\n\n_unit removeAllEventHandlers" 5 selectPlayer !"addSwitchableUnit dayz_originalPlayer;\nsetPlayable dayz_originalPlayer;\nselectPlayer dayz_originalPlayer;" !"addSwitchableUnit _newUnit;\nsetPlayable _newUnit;\nselectPlayer _newUnit;" 5 serverCommand !="_character = if (serverCommandAvailable \"#kick\") then { call sched_tg_follow } else { player };" !"serverCommand (\"#vote kick \" + _selectedName);" 5 setAperture !"select 1);\n\nif(_NVOn == \"ON\") exitwith\n{\nsetaperture -1" !"+_inc;\n\n_NVOn = (_NV select 0);\n\nif(_NVOn == \"ON\") then {\n\nsetAperture" 5 setCamUseTI 5 setDamage !"if (_entity isKindOf \"Animal\") then {\n_entity setDamage 1;" !"player setDamage 1;\n};\n\nif (dayz_onBack != \"\") then {\nif (dayz_onBack in w" !"if (_ent isKindOf \"Animal\" || _ent isKindOf \"zZombie_base\") then {\n_ent setDamage 1;" 5 setDammage 5 setDate !rsetDate !"\"setDate\", " !"\n\n\nif (!isDedicated) then {\n\"dayzSetDate\" addPublicVariableEventHandler {" !"if (_x != _newdate select _forEachIndex) exitWith {\nsetDate _newdate" !"plr_Login1]; \nPVDZ_send = [player,\"dayzSetDate\",[player]];\npublicVariableServer" !="!isNil \"dayzSetDate\"" !"diag_log ['Date & time received:', dayzSetDate];\nsetDate dayzSetDate;\ndiag" 5 SetEventHandler !"\n_menu ctrlSetEventHandler [\"ButtonClick\",_compile];\n};" !"inGameUISetEventHandler [\"Action\",\"false\"];" 5 setMarkerAlpha 5 setMarkerBrush 5 setMarkerColor !",if (_vehicle == _x) then {name _x} else {_vehicle call dayz_getCrew}];\n_marker setMarkerColorLocal \"ColorGreen\";" 5 setMarkerDir 5 setMarkerPos !"\"setMarkerPosLocal\"," !"rsetMarkerPosLocal" 5 setMarkerShape 5 setMarkerSize 5 setMarkerText !",if (_vehicle == _x) then {name _x} else {_vehicle call dayz_getCrew}];\n_marker setMarkerColorLocal \"ColorGreen\";" 5 setMarkerType !",if (_vehicle == _x) then {name _x} else {_vehicle call dayz_getCrew}];\n_marker setMarkerColorLocal \"ColorGreen\";" 5 setPosASL !="_unit setPosAsl [(_position select 0), (_position select 1), (LHA_height+1)];" !="_flame setPosASL [_pos select 0,_pos select 1,(_pos select 2)+0.2];" !="_fire setPosASL _location;" !"_objectHelper setPosASL _position;\n} else {" !"_b0x1337 setPosASL (getPosASL player);\n} else {" !"_obj setPosASL [_center select 0, _a, _b];" !"_objectSnapGizmo setPosASL " !"_para setposasl [\n" !"_thingy setPosASL (ATLToASL _pos);\n} else {" 5 setTerrainGrid !"if (dayz_REsec == 1) then {call compile preprocessFileLineNumbers \"" 5 setUnitRecoilCoefficient 5 setVehicle !"if(_status) then {\n_vehicle setVehicleLock \"LOCKED\";\n} else {\n_vehicle setVehicleLock \"UNLOCKED\";\n};" 5 setViewDistance 5 sideLogic !"publicVariable \"BIS_MPF_logic\";" 5 switchCamera !"\"switchCamera\", " !"rswitchCamera" !="player switchCamera (Dayz_constructionContext select 2);" !"player switchCamera _currentCamera;\nif (_currentWpn !=" 5 systemChat !="systemChat format[localize \"str_missing_to_do_this\", _x];" !"systemChat (localize " !"systemChat format[localize \"STR_EPOCH_" !"systemChat localize \"STR_EPOCH_" !"case \"system\": {systemChat _message;};" 5 title !"titleCut [\"\", \"BLACK " !"\"titleCut\", " !"\"titleText\"" !="rtitleCut = 'titleCut'" !"rtitleCutc" !="rtitleText = 'titleText'" !"rtitleTextc" !"(_missionTextListPath >> \"titles\")" !"(_display displayCtrl _titleIDC) ctrlShow false;" !"titleText [format[localize \"str_return_lobby\", _x" !",\"_titleText\"" !"localize 'STR_UI_GENDER_TITLE';\n_timeNem" !="scriptName \"MP\\data\\scriptCommands\\titleText.sqf\";" !_fillTradeTitle !_bldTxtStringTitle !"localize \"str_halo_altitude_speed" 5 toString !"_animCheck = toString ([(_animStateArray select 0),(_animStateArray select 1)" !="_skinToModel = toString (_finalArray);" !="{_textArrayTemp = _textArrayTemp + [tostring [_x]]} foreach _line;" !="_cmpt = toString _cmpt;" !="_objName = toLower(toString(_objName));" !"if (toString _hayArr != _needle) then {" !="_type = toString _typeA;" !="_anim4 = toString _anim4;" !"{(count _stance>17)}) then {toString [_stance select 17]}" !"BIS_fnc_timeToString" !"02, if (typeName _name == \"ARRAY\") then {toString _name} else {_name}];"!"_input = parseNumber (toString (_input));" 5 worldTo !="_relPos = _building worldToModel _point;" !"if (_isPlayer) then {\n_x = _pos worldToModel _new;" !"_w2m = _x worldToModel (getPosATL player);\n_bb = (boundingbox _x) select 1;" !="_h = _offset + ((_o worldToModel (getPosATL _o)) select 2);" !"_pos set [2,(_pos select 2) + 1.5];\n_screen = worldToScreen _pos;\n_text = composeText [image" //The best use of this file is filtering commonly used scripting commands, because they are always the same when compiled and executed. See: https://community.bistudio.com/wiki/Category:Scripting_Commands_ArmA2 //Filtering strings, variable names and code snippets is less effective because they can easily be changed or obfuscated in a near infinite number of ways //Always test after modifying by executing code on yourself. Ensure you are kicked or logged appropriately. One error in this file can break functionality of all filters and exceptions beyond that point. //Note ! and != currently behave identically in scripts.txt, there is no advantage to using one over the other //Note currently scripts.txt does not support regex, so the only characters that need to be escaped are literal double quotes " and literal backslash \ //Note tabs and spaces used as indents are stripped out automatically and do not need to be included in exceptions //Note code is filtered as it appears when it is executed. Macros in scripts and % in formats will be replaced with their real values. Double quotes ""x"" or ''x'' nested in strings will appear as single quotes. Formatting characters will be stripped from FSMs.  
    • By iben
      Hello guys,
      because I was couple times asked for updated and unified dev function for single currency (originally posted in ZSC thread),
      I've decided release it here so you can have all info in one place.
      So here it is with specific example (with detailed comments) you can try for fun...
      ===
      First thing first - let's start with giving credits for these great guys:
      DayZ Epoch developers, collaborators and contributors (thank you guys for your excellent work!) (visit them on github) @Zupa : original SC concept creator and author of Universal Dev functions for 1.0.5 version. (see original thread) @salival : for adapting @Zupa's concept to 1.0.6+ version and great community support. (see original thread) All great guys from Epoch comunity participating on SC and banking concept (see original thread) ===
      This function was reworked and updated for Epoch 1.0.6.1+
      ===
      Changelog:
      [2017-05-08], v1.0 | Initial release, published at Epoch forum [2017-05-28], v1.1 | Added: debug (parameters check, exec time to analyze code performace in game) [2017-05-31], v1.2 | Improved: removed unnecessary checks during player sync ===
      Read "Goodbye". Wish you the best guys!
      ===
      How it looks like:
      Check source code (Github)
      ===
      FEATURES:
      Function is able to manage money processing with single line code (see bellow) and can be easily integrated into your code You can use debug option to check your fnc parameters + exec time (code performance) showed on screen (global chat):
      just uncoment line: '#define: __ DEBUG__' is src code; It's pretty fast but remember: use it only if you're developing some addon or you know exactly what to do.
      Otherwise, you can stil use common methods used by addons authors - mostly it's even faster their way, because of scoped approach; It's a function - you can easily maintain your "money" code... ===
      How to install:
      It's actually very easy: practical example is the best way to explain, what needs to be done - see repo structure and files.
      Source files are available at Github repo (specific usage example included!). You can download them from here.
      ===
      How to use it:
      = General usage:
      // [_player,_amount,_action,_target] call fnc_SC_uniCoins; // '_player' : object : player, _killer...etc // '_amount' : number : 1000 // '_action' : string : 'add' / 'remove' // '_target' : string : 'cache' / 'bank' // ========================================================== // @example 01: Remove 5.000 Coins from player's wallet: [player,5000,'remove','cache'] call fnc_SC_uniCoins; // @example 02: Add 1.000 Coins to player's wallet: [player,1000,'add','cache'] call fnc_SC_uniCoins; // @example 03: Remove 7.000 Coins from player's bank account: [player,7000,'remove','bank'] call fnc_SC_uniCoins; // @example 04: Add 15.000 Coins to player's bank account: [player,15000,'add','bank'] call fnc_SC_uniCoins; ===
      ...easy enough, isn't it?
      ===
      = Specific usage (with detailed description):
      // === Scenario: // Award player for killing local zombies. // If player kills zombie, he will receive random amount of money from 0 to 250 Coins for kill. // Let's make it interesting - player receive money only in case he used the gun defined by you: // === What to do: // Save file "local_eventKill.sqf" to your custom compiles folder, load it in your custom compiles file // outside (!isDedicated) and (isServer) - we need this file for both client and server. // (it's in 'dayz_code' folder: you can download file from: // https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/local_eventKill.sqf) // Open your custom variables file (or add bellow code to your init.sqf file) and add: playerZedKillAward = true; // ... so you can quickly turn ON/OFF your script // Now, let's create some code in 'local_eventKill.sqf' file: if (local _zed) then { private["_killer","_fnc_uniCoinsTest","_allowedWps"]; // code // ...find last line of code: _killer setVariable["humanity",_humanity,true]; // Bellow we define local function "_fnc_killZedsAward" so we can call it easily: // === _fnc_killZedsAward = { private ["_action","_target","_money","_curWep"]; _action = _this select 0; // @info: we take parameter from call in main code bellow this fnc and assign value to local var _target = _this select 1; // @info: we take parameter from call in main code bellow this fnc and assign value to local var _money = (round(random 5) * 50); // @info: now from 0 to 250 Coins, define to your liking _curWep = getText (configFile >> 'CfgWeapons' >> currentWeapon _killer >> 'displayName'); // @info: What's the name of player current weapon? We need this for info in hint or dayz_rollingMessages call { // Player has 20% chance to get 0 coins from random (if you will use round(random 5) - meaning staying with 5, scale from 0 to 4) // So let's check it first and prevent display msg on screen in such a case if (_money == 0) exitWith { //@info: You can pick 'dayz_rollingMessages' and comment 'hintSilent' if your hint layer is occupied by your debug monitor ["Sorry, our bank is low on money!"] call dayz_rollingMessages; hintSilent "Sorry, our bank is low on money!"; }; // If random money are above zero, let's call dev fnc_SC_uniCoins. // First parameter '_killer' is defined by original code; _money param was defined above, // _action and _target parameters we defined in main code bellow... if ([_killer,_money,_action,_target] call fnc_SC_uniCoins) exitWith { //@info: You can pick 'dayz_rollingMessages' and comment 'hintSilent' if your hint layer is occupied by your debug monitor hintSilent format ["Zed kill award!\nweapon: [%1]\nReceived: [%2 %3]",_curWep,_money,CurrencyName]; [format["Zed kill award! Weapon: [%1] Received: [%2 %3]",_curWep,_money,CurrencyName]] call dayz_rollingMessages; }; // Do not put any default code for call here - if you do, you will trigger code action in cases, // like zombie is killed close to you by some accident (from experience) }; }; // Now let's create main procedure: if (playerZedKillAward) then { // @info: define your custom array of weapons here: _allowedWps = [ 'M110_NVG_EP1', 'M9_SD_DZ','DMR_DZ', 'M9_DZ' ]; if ((currentWeapon _killer) in _allowedWps) exitWith { // @info: if player used allowed weapon, tell '_fnc_killZedsAward', what to do with money. // You can be creative here :)) ["add","cache"] call _fnc_killZedsAward; }; }; }; // === Done! ===
      ...that's all, you can use it wherever money are... Have Fun!!
      Cheers...
      ===
    • By JohnnyBravo666
      My question is for when I switched over to single currency from the default currency, that when I went to the traders, it was showing costs like "5 Coins" to buy and "3 Coins to sell". I understand that it's pulling the value quantities from the trader files from the default currency. But is there a way to set it so it calculates what the gold bars and silver bars and whatnot are equal to in single currency ?
      I'd really prefer not to have to change up all the files.
    • By salival
      Hi,
       
      With Axe Cops permission I am releasing my updated version of his amazing Service Points script. 
      This includes support for original briefcases, gems (from epoch 1.0.6.1) and coins.
          (original github url: https://github.com/vos/dayz/tree/master/service_point)
          (original install/discussion url: https://epochmod.com/forum/topic/3935-release-vehicle-service-point-refuel-repair-rearm-script/)
          
      **** *REQUIRES DAYZ EPOCH 1.0.6.1* ****
          
      Major Changes:
          This version adds support for both single currency and gems (from the epoch 1.0.6 update) as well as the original epoch briefcase currency system. 
          Instead of pricing things like the original way, prices are now done on a "worth" similar to how coins are done. The price value of items are below.
          If you are using coins, I would recommend using the _currencyModifier variable since coins typically are 10x the value of briefcase based currency (1 brief == 100,000 coins)
          (You can either set this _currencyModifier variable to 1 then set the proper value or use the modifier, the modifier is mainly for dual currency servers)
          1 silver = 1 worth
          1 10oz silver = 10 worth
          1 gold = 100 worth
          1 10oz gold = 1,000 worth
          1 briefcase = 10,000 worth
          Please see dayz_code\configVariables.sqf for the value of gems (DZE_GemWorthArray) and their relevant worth if they are enabled.
          Example config settings for _refuel_costs, _repair_costs and _rearm_costs:
          All 3 sections can either be made free, disabled or a specifc price with the following examples:
          ["Air","free"] will make the vehicle config class of "Air" free for the specific action.
          ["Air","disabled"] will make the vehicle config class of "Air" disabled for the specific action.
          ["Air",2000] will make the vehicle config class of "Air" have a worth of 2000 for the specific action.
          ["Armored_SUV_PMC",2000] will make the specific vehicle have a worth of 2000 for the specific action.
          ["Armored_SUV_PMC","free"] will make the specific vehicle be free for the specific action.
          ["Armored_SUV_PMC","disabled"] will make the specific vehicle be disabled for the specific action.
          Valid vehicle config classes as an example: "Air", "AllVehicles", "All", "APC", "Bicycle", "Car", "Helicopter", "Land", "Motorcycle", "Plane", "Ship", "Tank"
      Visit my Github page to download and read the README.MD : https://github.com/oiad/service_points
    • By chi
      I was wondering if anything ever came along to allow single currency with database traders. 
      I like the fact that the traders have an inventory and can run out of stuff if players don't sell things to them.
      Thanks in advance for your responses!!
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...