Jump to content

Search the Community

Showing results for tags 'Coins'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 39 results

  1. Hi guys, Here's my version of Virtual Garage, it's not far off a full rewrite but includes some of the original code that the original author contributed. Fixes a lot of problems and adds a lot of newer features: Single UI for storing/retrieving vehicles Dynamic pricing based on vehicle type/classname Dynamic limits based on vehicle type/classname Adds support for removing a helipad nearby Able to see storage in stored vehicles RPT logging for storing/retrieving vehicles Fixes dupes for more than 2 people depositing the same vehicle Supports briefcases and coins Localization support (currently german and russian) Has uninstall information for the previous version Please see my github repo for install instructions: https://github.com/oiad/virtualGarage
  2. Hi, This is my modified version of Zupas single currency framework. This drops into an Epoch server and just "works". Credits to Zupa for his amazing work, There's quite a few fixes mentioned in his original release thread in this version to make it more secure. GitHub link with install instructions: https://github.com/oiad/ZSC Tested as working on a blank Epoch and OverWatch 0.25 server. Designed to minimize duping/glitching of bank related saving with nearby players (checkWallet etc). Lots of code snippets taken from the original Zupa release thread to stop multiple people checking wallet/depositing into the same safe etc. Supports multiple configuration types, Safes/lockboxes only, vehicles only, safes/lockboxes AND vehicles. Supports any map, currently only has server_traders files for Chernarus (default), napf and tavi. To install global banking: https://github.com/oiad/ZSC#changing-to-global-banking Install: This install basically assumes you have NO custom variables.sqf or compiles.sqf or fn_selfActions.sqf, I would recommend diffmerging where possible. This has all the config traders set up for epoch 1.0.6 items and OverWatch guns/items. You will need to install the specific version you want to use, See install notes further down.
  3. 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 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* **** 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
  4. chi

    Spawn coins on Zombies

    Can someone tell me if im doing something wrong here? Im trying to spawn a random amount of coins on Zombies when they die. This is my zombie_generate.sqf and im calling it from my custom compiles. Sorry, but im on my phone and cant find a spoiler box button. #include "\z\addons\dayz_code\loot\Loot.hpp" private ["_bypass","_position","_unitTypes","_radius","_method","_agent","_maxlocalspawned","_doLoiter","_wildspawns","_maxControlledZombies", "_cantSee","_isOk","_zPos","__FILE__","_fov","_safeDistance","_farDistance","_xasl","_eye","_ed","_deg","_skipFOV","_wildSpawns","_tooClose", "_type","_loot","_array","_rnd","_lootType","_index","_weights","_loot_count","_favStance","_lootGroup"]; _position = _this select 0; _doLoiter = _this select 1; // wonder around _unitTypes = _this select 2; // class of wanted models //_wildspawns = _this select 3; _bypass = _this select 3; _maxlocalspawned = round(dayz_spawnZombies); //Lets check if we need to divide the amount of zeds if (r_player_divideinvehicle > 0) then { _maxlocalspawned = round(dayz_spawnZombies / r_player_divideinvehicle); }; _maxControlledZombies = round(dayz_maxLocalZombies); _cantSee = { private "_isOk"; _isOk = true; _zPos = +(_this select 0); if (count _zPos < 3) exitWith { diag_log format["%1::_cantSee illegal pos %2", __FILE__, _zPos]; false }; _zPos = ATLtoASL _zPos; _fov = _this select 1; // players half field of view _safeDistance = _this select 2; // minimum distance. closer is wrong _farDistance = _this select 3; // distance further we won't check _zPos set [2, (_zPos select 2) + 1.7]; { _xasl = getPosASL _x; if (_xasl distance _zPos < _farDistance) then { if (_xasl distance _zPos < _safeDistance) then { _isOk = false; } else { _eye = eyePos _x; // ASL _ed = eyeDirection _x; _ed = (_ed select 0) atan2 (_ed select 1); _deg = [_xasl, _zPos] call BIS_fnc_dirTo; _deg = (_deg - _ed + 720) % 360; if (_deg > 180) then { _deg = _deg - 360; }; if ((abs(_deg) < _fov) && {( // in right angle sector? (!(terrainIntersectASL [_zPos, _eye]) // no terrain between? && {(!(lineIntersects [_zPos, _eye]))}) // and no object between? )}) then { _isOk = false; }; }; }; if (!_isOk) exitWith {false}; uiSleep 0.001; } forEach playableUnits; _isOk }; _skipFOV = false; if ((_maxlocalspawned < _maxControlledZombies) && (dayz_CurrentNearByZombies < dayz_maxNearByZombies) && (dayz_currentGlobalZombies < dayz_maxGlobalZeds)) then { if (_bypass) then { _skipFOV = true; _position = [_position,3,20,1] call fn_selectRandomLocation; }; if (surfaceIsWater _position) exitWith { diag_log "Location is in Water Abort"; }; if ((_skipFOV) or {([_position, 15, 10, 70] call _cantSee)}) then { _tooClose = {isPlayer _x} count (_position nearEntities ["CAManBase",30]) > 0; if (_tooClose) exitwith { diag_log "Zombie_Generate: was too close to player."; }; if (count _unitTypes == 0) then { _unitTypes = getArray (missionConfigFile >> "CfgLoot" >> "Buildings" >> "Default" >> "zombieClass"); }; // lets create an agent _type = _unitTypes call BIS_fnc_selectRandom; _radius = 5; //_method = if (_doLoiter) then {"CAN_COLLIDE"} else {"NONE"}; _agent = createAgent [_type, _position, [], _radius, "CAN_COLLIDE"]; uiSleep 0.03; //add to global counter dayz_spawnZombies = dayz_spawnZombies + 1; dayz_CurrentNearByZombies = dayz_CurrentNearByZombies + 1; dayz_currentGlobalZombies = dayz_currentGlobalZombies + 1; //Add some loot if (0.3 > random 1) then { _lootGroup = configFile >> "CfgVehicles" >> _type >> "zombieLoot"; if (isText _lootGroup) then { //_lootGroup = dayz_lootGroups find getText (_lootGroup); _lootGroup = Loot_GetGroup(getText _lootGroup); //[_agent, _lootGroup, 1] call loot_insert; Loot_Insert(_agent, _lootGroup, 1); }; }; _agent setVariable["agentObject",_agent]; if (!isNull _agent) then { _agent setDir random 360; uiSleep 0.03; _position = getPosATL _agent; _favStance = ( switch ceil(random(3^0.5)^2) do { //case 3: {"DOWN"}; // prone case 2: {"middle"}; // Kneel "middle" default {"Up"}; // stand-up } ); _agent setUnitPos _favStance; _agent setVariable ["stance", _favStance]; _agent setVariable ["BaseLocation", _position]; _agent setVariable ["doLoiter", _doLoiter]; // true: Z will be wandering, false: stay still _coinsRandom = random 1; if (_coinsRandom <= 0.5) then { _cash = round(random 20) * 5; // number between 0 and 200 Add Coins to Zombie _agent setVariable["CashMoney",_cash ,true]; // Add Coins to Zombie }; }; }; };
  5. Hi, Here's my version of @OtterNas3 vehicle key changer. It was subsequently modified by @Grahame for epoch 1.0.6. This adds support for briefcases, gems and coins as well as using the epoch vehicle upgrade system to do the key changing/claiming. * original discussion url: https://epochmod.com/forum/topic/5972-release-vehicle-key-changer-for-making-masterkey-v-14-updated-06152014/ * updated discussion url: https://epochmod.com/forum/topic/43048-release-vehicle-key-changer-for-making-masterkey-v-141-updated-for-epoch-106/ Github link with install directions: https://github.com/oiad/vkc **EDIT* Link to a working locate Vehicle script that is able to find multiple vehicles per key:
  6. Hi, me again. For some reason when i spawn in and collect coins or loadout the next time i disconnect and come back it puts me back into spawn and money is all disappeared. There's no hive errors. The only error in the Server RPT is : And I have 2 errors in my client RPT. Looks like they relate to zsc but I have reinstalled it from scratch and still the same. and Sorry to be such a noob with this one!!
  7. BSBS Server IP: Website: https://bsbsepoch.000webhostapp.com/ Discord: https://discord.gg/PVn8PvG Server Features: PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
  8. Hello guys, do you remember old "Paint vehicles" script? Let's look back to idea fathers: === CREDITS: All credits goes to its original authors: DayZ Epoch developers, collaborators and contributors (thank you guys for your excellent work!) (visit them on github) Maca134 for orginal color vehicle script. @Zupa for the idea of painting vehicles in two different colors. @0verHeaT for script public release - this version we are updating for (see original thread) @raymix for list of paintable vehicles for this script (see original thread) --- Special Thank you goes to @DAmNRelentless for taking care of Github repo. === This script was updated for Epoch and upgraded. === FEATURES: Vehicles can be painted in two different colors Only vehicles which you own can be painted (vehicles with key) Only vehicles in ColourVehicles array can be painted Script is designed to be used along with Single currency. Player will pay for painting vehicles. UPDATED: Color values are saved in the worldspace field in database NEW: Vehicles can be unpainted to default state (default textures are loaded) UPDATED: Vehicles can be painted using GUI with visual enhancements. Use PaintVehicles defines.hpp for defining custom GUI color scheme UPDATED: Script is now fully compatible with Virtual Garage and Vehicle Key Changer (VKC) script thanks to @salival (2017-08-22). All scripts by @salival and this one prior update date should be upgraded to get much better player experience! UPDATED: for Epoch === Changelog: [2017-05-22], v1.0 | Initial release [2017-05-25], v1.1 | Optimized compiles: 5 files reduced to 1. See changes: [commit ae29c13] [2017-08-20], v1.2 | Regular code maintenance. See changes: [commit 682f99a] and [commit 7cd8fce] [2017-10-23], v1.3 | Roll back to full version of player_forceSave (uniCoins fix: Issue not related to script itself). [2017-12-04], v1.4 | Safer manipulation with data sending to server. Basic defines fix - from sqf to hpp. See changes: [commit 2735dea] [2017-29-04], v1.5 | Update for Epoch [2017-29-04], v1.5.1 | FIX: fn_selfAction path (thx @hooty): [commit 38fe105] === How it looks like: === database screenshot === MiniShowcase === How to install: We are not using common way how is script included to current folder structure (like grab whole folder and put it to the root of mission folder) - that's why read carefully, use repo folder structure (or similar) and compare tool like diffmerge! If you have troubles, just ask here or send me PM. Source files are available at Github repo. You can download them from here. For client side we need these folders in the root of your 'MPMissions\Dayz_Epoch_11.Chernarus' folder: actions: we will store file with scroll action menu command Paint vehicle here compile: we will store core script client files here Configs: we will store defines && dialog config files for script GUI here gui: we will store your "Money" or "Coins" picture here (Change path inside: `dayz_code\compile\player_paintVehicle.sqf`) init: we will load all compiles and variables from here ... and finaly files: description.ext: we will load your defines and dialogs from here via master.hpp init.sqf: we will load your custom compiles and variables from here For server side (dayz_server) we need to touch these files: compiles\paintVehicles (copy whole folder to compiles) compiles\server_updateObject.sqf system\server_monitor.sqf init\server_functions.sqf (compile init.sqf) === Battleye // Add an exception to publicvariable.txt !="PVDZE_veh_Color" === infiSTAR // Add an exception to allowed dialogs 571113 === ...that's all, Have Fun!! Cheers... ===
  9. **NEW** Manup-PvPvE | v1.0.6.2 | 5-Mil + KITS | Player Teleport | VirtGarage | Banks | Checks | Perks | Cap&Hold | GemCraft | Semi-Mil | High [email protected]@T ============================== M A N U P - - U P D A T E The NEW SERVER is Unlocked! DayZ Overpoch Chernarus IP: This is a PvPvE Militarized Server with High Loot and High Risk $5,000,000 Start coins + Cinder & Metal Base kit ============================== MODS - EDITS - SCRIPTS ============================== > Suicide > Earplugs > Auto Run > Tow & Lift > Safe Zones > Flip Vehicle > Plot For Life > Bury Bodies > Take Clothes > Click Actions > Harvest Hemp > Service Points > Locate Vehicle > Virtual Garage > Player Teleport > Custom Traders > Global Banking > Free Spawn Kits > Tanks and APC's > Attack Choppers > Scan For Players > Deploy Anything > KO Melee Combat > Plot Management > Scan For Animals > Scan For Zombies > Treasure Hunting > Turn On/Off Grass > Snap With Vectors > Custom Trader City > Group Management > Garage Door Opener > Safe Zone Relocate > Custom Action Wheel > Vehicle Key Changer > Humanity Spawn Kits > Custom Event Crates > No Spawn Restriction > Sell On Site Missions > Change View Distance > Custom Debug Monitor > Player Zombie Shields > remote vehicle options > Humanity spawn vehicles > Community Localizations > Humanity Spawn Classes > Custom Military locations > Custom Cap & Hold Missions > Custom NEAF / NWAF / BALOTA > Door Management With Eye Scan > More custom stuff inside .... ============================== Special thanks to @salival for all his help with the conversion. I couldn't of done it with out you! ============================== Thanks For Playing ManUp - Enjoy and Please report any bugs. http://steamcommunity.com/groups/manupsurvival# https://discord.gg/V85spbD
  10. Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking). AKA: ZSC RELEASE 1: INDEPENDENT RELEASE ( No converting script yet to convert old SC money to this version). REQUEST: If someone is good with MYSQL can he complete the qyuery on the bottom of this post? ^^ limited time here ^^. What is it? This script replaces gold,silver,tin,copper,briefcases by 1 virtual currency with a configurable name. You can buy,sell, give, receive, take (from dead bodies) and STORE this money like it was a normal inventory item. ( It will work with a different dialog then your gear dialog.) No more smelting gold into silver or anything related to that. Everything is in one currency ( For example "ZupasticiumCoins"). Features. Store Money in storage objects and vehicles ( max money in 1 storage depends on the size). No global access to your money. Anyone can take the money out ( for vault/lockbox it must be open of course). Trade with this currency for cars/items. Give money to other players. NO inventory issues with gold! Whats the difference with your other single currency scripts? You can use the default hive! No global bank! Back to normal epoch danger to lose cash! Cleaned up code Very low changes to default saving system. (DB friendly) NO database changes needed. NO ATMs, Safezones, atms in trader whatsoever... Store money in vehicles. Technical data: Storage money is saved in the gear section of the object in the Database Player Money is added to gear section of the player in the Database ( Again thanks to maca for pointing this out for me). Extra This build will have all of the fixes on errors out there ( Build on peterbeers all in on packages with the bugfixes). Reworked the transfering money between players to be sure trade goes to the right object/player. Store money in vehicles Credits Maca - Original private single currency. Peterbeer - for putting all fixes together in 1 pack. Soul - Hives modifications and code changes for it. ( not applied on this script, jsut credited for hard work). Rocu - Great help on forums and fixes. DraftKid - Testing and screenshots Please report bugs so I can solve them! The config located IN ZSC/gold/ZSCconfig.sqf /* Single Currency 3.0 uses storages to store money which can be accessed by anyone if open of course (safe,lockbox). Each storage has his own money, so no global access. */ // Name of your currency CurrencyName = "Coins"; // Objects that can hold money. Vehicles are added automaticly. Size of money capacity is depended on ammount of magazines the object can hold. ZSC_MoneyStorage = ["VaultStorage","LockboxStorage","StorageShed_DZ","OutHouse_DZ","Wooden_shed_DZ","WoodShack_DZ","GunRack_DZ","WoodCrate_DZ","TentStorage","TentStorageDomed","TentStorageDomed2"]; // Multiplier how much money an object can hold. This number X ammount of magazines it can hold. ( so URAL -> 500 items * 1000 = 5 MIL cash). ZSC_MaxMoneyInStorageMultiplier = 1000; // (True = No Animation / False = Animation) InstantTrading = false; // If TRUE: overwrite yours player_switchmodel with mine. | IF False: Change content yourself @ step D ZSC_Overwrite_SwitchModel = true; // if TRUE: Overwrites yours fn_selfactions with default 1 + edits. | IF False: Change content yourself @ step D ZSC_Overwrite_SelfActions = true; // if TRUE: Overwrites yours fn_selfactions with default 1 + edits. | IF False: Change content yourself @ step D ZSC_Overwrite_UnLockVault = true; // if TRUE: Overwrites yours fn_selfactions with default 1 + edits. | IF False: Change content yourself @ step D ZSC_Overwrite_LockVault = true; /* IF YOU USE different mods like P4L it's recommended to do changes yourself or it wont work */ There are pbo's provided for cherno 11. Or follow the installation instructions https://github.com/EpochSC/SingleCurrencyStorage Installation instructions. ( TRIED TO KEEP IT NOOB FRIENDLY ^^) If u are going to use the full pbo?! The missions.sqm is build for OVERPOCH. Delete the overwatch addons if you are just using it for Epoch. MISSION PBO A ) In your init.sqf: A 1) You must have /*ZSC*/ DZE_ConfigTrader = true; /*ZSC*/ in the top section ( for example right above "EpochEvents"); Place if you do not have it yet. ZSC requires Config traders, It will also help your server reduce lag! A 2) PLACE /*ZSC*/ call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf"; /*ZSC*/ ABOVE progressLoadingScreen 0.5; A 3) PLACE execVM "ZSC\compiles\playerHud.sqf"; RIGHT UNDER _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; A 4 ) Change call compile preprocessFileLineNumbers "server_traders.sqf"; to call compile preprocessFileLineNumbers "server_traders_cherno_11.sqf"; ON THE BOTTOM OF THIS TOPIC THERE WILL BE AN EXPLANATION FOR OTHER MAPS / INSTANCES. A 5 ) MAKE SURE _serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf"; this line is custom and doesnt have dayz_code in it. It should point at dayz_server or if u use another script to where ever that places it. B ) In your description.ext B 1) Place #include "ZSC\config\cfgServerTrader.hpp" on the complete top. B 2 ) Add if you do not have a RscTitles yet! class RscTitles { #include "ZSC\config\ZSChud.hpp" }; at the bottom. IF U ALREADY HAVE IT just add #include "ZSC\config\ZSChud.hpp" behind whatever is in there. B 3 ) JUST ADD AT THE COMPLETE BOTTOM #include "ZSC\config\ZSCdefines.hpp" #include "ZSC\config\ZSCdialogs.hpp" B 4 ) If you come from another currency, u can remove the shit that was extra added in that one :). C ) COPY FILES C 1 ) Place the ZSC folder in your mission pbo ( take it out of the github's missions pbo). C 2 ) Place server_traders_cherno_11.sqf in your missions pbo. ( If other map/instance check bottom of the topic.). D ) fn_selfactions ( IF you use my overwrite, u do not have to to this step. D 1 )PLACE 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; }; // cars if( _isVehicle && !_isMan &&_isAlive && !_isMan && !locked _cursorTarget && !(_cursorTarget isKindOf "Bicycle") && (player distance _cursorTarget < 5)) then { if (s_bank_dialog2 < 0) then { s_bank_dialog2 = player addAction ["Money Storage", "ZSC\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; }; } else { player removeAction s_bank_dialog2; s_bank_dialog2 = -1; }; AFTER } else { {player removeAction _x} count s_player_combi;s_player_combi = []; s_player_unlockvault = -1; }; D 2 ) if (_isMan and _isAlive and !_isZombie and !_isAnimal and !(_traderType in serverTraders)) then { if (s_givemoney_dialog < 0) then { s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; }; } else { player removeAction s_givemoney_dialog; s_givemoney_dialog = -1; }; ABOVE if(_typeOfCursorTarget in dayz_fuelpumparray) then { D 3 ) CHANGE if (_player_studybody) then { if (s_player_studybody < 0) then { s_player_studybody = player addAction [localize "str_action_studybody", "\z\addons\dayz_code\actions\study_body.sqf",_cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_studybody; s_player_studybody = -1; }; INTO if (_player_studybody) then { if (s_player_studybody < 0) then { s_player_studybody = player addAction [("<t color=""#FF0000"">"+("Check Wallet") + "</t>"), "ZSC\actions\check_wallet.sqf",_cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_studybody; s_player_studybody = -1; }; D 4 ) ADD player removeAction s_givemoney_dialog; s_givemoney_dialog = -1; player removeAction s_bank_dialog; s_bank_dialog = -1; player removeAction s_bank_dialog2; s_bank_dialog2 = -1; BEHIND player removeAction s_player_towing; s_player_towing = -1; player removeAction s_player_fuelauto; s_player_fuelauto = -1; player removeAction s_player_fuelauto2; s_player_fuelauto2 = -1; D 5 ) TO remove the client side errors u getting add in your VARIABLES.SQF s_givemoney_dialog = -1; s_bank_dialog = -1; s_bank_dialog2 = -1; TO dayz_resetSelfActions = { E ) player_switchModel.sqf again, if u overwriten with mine in first step, u can skip. E 1 ) add _cashMoney = player getVariable["cashMoney",0]; behind _weapons = weapons player; _countMags = call player_countMagazines; _magazines = _countMags select 0; E 2 ) Add player setVariable ["cashMoney",_cashMoney,true]; on the BOTTOM E 3 ) CHANGE //Create New Character _group = createGroup west; _newUnit = _group createUnit [_class,dayz_spawnPos,[],0,"NONE"]; _newUnit setPosATL _position; _newUnit setDir _dir; into _group = createGroup west; _newUnit = _group createUnit [_class,dayz_spawnPos,[],0,"NONE"]; [_newUnit] joinSilent createGroup WEST; _newUnit setPosATL _position; _newUnit setDir _dir; _newUnit setVariable ["cashMoney",_cashMoney,true]; F) You can use my unclockVault in ZSCinit, If u got a custom one, do the following changes: F1) place _objMoney = _obj getVariable["bankMoney",0]; behind _dir = direction _obj; _pos = _obj getVariable["OEMPos",(getposATL _obj)]; _objectID = _obj getVariable["ObjectID","0"]; _objectUID = _obj getVariable["ObjectUID","0"]; F 2) place _holder setVariable ["bankMoney", _objMoney, true]; behind _holder setVariable["CharacterID",_ownerID,true]; _holder setVariable["ObjectID",_objectID,true]; _holder setVariable["ObjectUID",_objectUID,true]; _holder setVariable ["OEMPos", _pos, true]; E) in LockVault.sqf if u got a custom one, otherwise use mine and set true in config: E1 ) place) _objMoney = _obj getVariable["bankMoney",0]; behind _ownerID = _obj getVariable["CharacterID","0"]; _objectID = _obj getVariable["ObjectID","0"]; _objectUID = _obj getVariable["ObjectUID","0"]; E2 ) place _holder setVariable ["bankMoney", _objMoney, true]; behind _holder setVariable["CharacterID",_ownerID,true]; _holder setVariable["ObjectID",_objectID,true]; _holder setVariable["ObjectUID",_objectUID,true]; _holder setVariable ["OEMPos", _pos, true]; SERVER PBO A ) REPLACE your "compiles/server_tradeObject.sqf" With my one ( not other script uses that anyways). B ) IN compiles/server_updateObject.sqf Change _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object ]; into _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; C ) In your server_monitor.sqf ( NOTE: the " _intentory' variable can be called "_inventory" at your files, so change my code to that, if it's the case). Add /*ZSC*/ if( count (_intentory) > 3)then{ _object setVariable ["bankMoney", _intentory select 3, true]; }else{ _object setVariable ["bankMoney", 0, true]; }; /*ZSC*/ ABOVE if (_type in DZE_LockedStorage) then { // Fill variables with loot _object setVariable ["WeaponCargo", (_intentory select 0),true]; _object setVariable ["MagazineCargo", (_intentory select 1),true]; _object setVariable ["BackpackCargo", (_intentory select 2),true]; } else { D) in compiles/server_playerSync.sqf Change _playerGear = [weapons _character,_magazines]; into _playerGear = [weapons _character,_magazines, _character getVariable["cashMoney",0]]; NOTE: in the gold init i use a custom gearSet.sqf If u would have a custom one, it's defined in the ZSCinit.sqf. Only differnecy will be the top where it checks for the money in your gear sections. FAQ! I use a different instance/map to play one! What do i do? The only things that difference between maps where u need to worrie about is the server_traders.sqf. I included them for 4 maps, if your map is NOT in there u will have to change your original one. FAIR SIMPLE: 1) Take your original server_traders 2) Open one of mine 3) Copy my categories with the correct numbes to your traders. You can choose also which traders sells what then ^^. 4) Share your file to me so i can put it in the list Does it work with Overpoch(ins). Simple: Yes, Everything with epoch as base. Overwatch items or included in traders, remove the categories if you do not use them. Can i convert from the older system? You will have to revert your database to the default structure and maybe transfer money. Banks added to the players cash is the best solution. How do i see my money and bank? 1 - Bank will not be visible cus their is none. You store money in storages like other items ( but in a different dialog). So the money can be accessed by anyone that has access to that storage. 2- Money is visisble with a money icon on the right side of the screen. Feel free to add it to other places aswell. This will return your money: player getVariable["cashMoney",0]; Can I use it with database traders? No, this build is made for config traders. No support (Yet). Screenshots I probably will code this inthe default epoch code and send a merge request to Epoch Devs with an option to do DZE_SingleCurrency = true/false; And if they accept it , it might be in 1.6 ^^
  11. Hey guys, I think i saw a guide before but I can't seem to find it. Anyone have a guide to install coins for
  12. what does this script do? The loyalty system rewards players who play on your server with 10000 coins after an 30 minutes this amount is multiplied by 1 every 30 minutes (can be configured how ever you like) http://prntscr.com/6m1qql To install copy the code below and name it fn_rewardLoyalty.sqf and place it in your mission pbo multiPlyWith = 1; _i=0; while {_i < 7} do { if ( _i == 1) then { _reward = (10000 * multiPlyWith); player setVariable ["cashMoney", ((player getVariable ["cashMoney", 0]) + _reward), true]; _msg = parseText format ["<t align='center' color='#FFFFFF' shadow='2' size='1.75'>Loyalty time reward!</t><br/><t align='center' color='#17FF41'>------------------------------</t><br/><t align='center' color='#FFFFFF'>%1 thank you for playing on Mayhem! Your loyalty has been rewarded with: </t><t align='center' color='#40FF00'>$%2</t>", name player, _reward]; hint _msg; multiPlyWith = multiPlyWith + 1; _i = 0; }; sleep 1800; _i = _i + 1; }; open your init and call it using execVM "Custom\fn_rewardLoyalty.sqf" change the path if you do not use a custom folder. just configure how often and how much a player gets in the rewardloyalty.sqf This was used in arma 3 so i give credit to the original author JoSchaap i only got it working in arma 2. it wont let upload a screen shot so you will have to install to see it. Enjoy
  13. Where can i find script for start money for new players
  14. Hello. I was wondering if there is a way to get a coins menu in the admin panel. If for some reason I need to add/remove coins from a player there is no way to do so. If i could get help with this, it would be greatly appreciated.
  15. Version 2.1 Released. Alternative selling/buying system. ( Run default & this one next to each other ). Supported: Config tradersSingle Currency & Default CurrencySelling/Buying everything from and to Gear/Vehicle/BackpackNot supported No database traders (database traders make your server slow) No ability to buy or sell vehicles.What was added to 2.0 Default Currency SupportedItem FilterInfo display of selected ItemBuying to gear and backpackWhat was added to 2.1Fixed content display of vehicles and backpacks.Description Sell directly from backpack, gear or the vehicle ( close) where you were driver from. Decide which items you sell. Traders will only make it possible to trade the items they accept ( goes fully automatic, so only items they accept will be listed on the left). You push items to the right to sell, only the items on the right willl get sold. Safety measurements Double checks what was deleted from backpacks/vehicles so that people can not cheat.Can only sell from your backpack and the vehicle were u was the last driver from ( in 30m radius) Update 1.0 - 2.0 instructions Delete your old 'zupa' folder Paste the new 'zupa' folder Edit the config.sqf to match your server Donehttps://github.com/DevZupa/AdvancedTrading/releases/tag/v2.1 Items only show for admins when using infiSTAR AH & Admintools ?!Update infiSTAR to latest version.edit config.sqf to reflect your server correctly. Installation instructions Code: https://github.com/DevZupa/AdvancedTrading/releases/tag/v2.1 Install Instructions 0. Drop the zupa folder in your mission file 1. In your fn_selfactions.sqf Place: _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]; above // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false, "",""]; s_player_parts set [count s_player_parts,_buy]; 2. in description.ext, add the following on the bottom #include "zupa\advancedTrading\ZSCdefines.hpp" // if u don't have it from ZSC #include "zupa\advancedTrading\advancedTrading.hpp"3. Add the following exceptions to your antihack if needed AdvancedTrading 711197 4. Edit the config.sqf to match your server. Screenshots:
  16. I am working on sauerland installed coins and after i started getting this on log in: Script server_traders.sqf not found. All the traders are working. this is what I found in my client side RPT: This is what I found in my server RPT; I have went through all mission side files and can not find where this is coming from. Here is my init.sqf If anyone knows or can help, I thank you
  17. Hello Community i need help . Sorry for my bad english. Im from germany and i need help. I Have Advanced trading and Single currency 3.0 (without global banking) from zupa, and when i sell or buy in the normal trading menu , the trader dont use coins from me. With advanced trading menu the trader use coins for the item. Pls help me. Thx
  18. This is a major glitch in giving players money. When both players have equal amount of money, and they give money to each other at the same time. The money duplicates. Then Use the duplicated money to dupe again, then it double duplicates. Keep going to be a millionaire in seconds Lets say i got 500, you got 500. We both give our 500 coins to each other at the same time. It duplicates There is an easy fix: In your Gold/init.sqf Find: GivePlayerAmount = { .. .. .. .. }; Replace the whole block with this: GivePlayerAmount = { private ["_amount","_target","_wealth"]; _amount = parseNumber (_this select 0); _target = cursorTarget; _wealth = player getVariable["cashMoney",0]; _twealth = _target getVariable["cashMoney",0]; _InTrd = _target getVariable ["TrBsy",false]; _isMan = _target isKindOf "Man"; if (_amount < 1 or _amount > _wealth) exitWith { cutText ["You can not give more than you currently have.", "PLAIN DOWN"]; }; if (!_isMan) exitWith { cutText ["You are not facing anyone.", "PLAIN DOWN"]; }; if (_InTrd) exitWith { cutText ["Other Player is busy, please wait.", "PLAIN DOWN"]; }; PVDZE_account_Doublecheck = [player]; publicVariableServer "PVDZE_account_Doublecheck"; player setVariable["cashMoney",_wealth - _amount, true]; _target setVariable["cashMoney",_twealth + _amount, true]; PVDZE_plr_Save = [player,(magazines player),true,true] ; publicVariableServer "PVDZE_plr_Save"; PVDZE_plr_Save = [_target,(magazines _target),true,true] ; publicVariableServer "PVDZE_plr_Save"; cutText [format["You gave %1 %2.", _amount, CurrencyName], "PLAIN DOWN"]; }; Now Replace your bank_dialog.sqf and give_player_dialog.sqf with these: bank_dialog.sqf private ["_dialog"]; player setVariable["TrBsy",true,0]; _dialog = createdialog "BankDialog"; call BankDialogUpdateAmounts; waitUntil { !dialog }; uiSleep 3; player setVariable ["TrBsy",false,0]; give_player_dialog.sqf private ["_dialog"];player setVariable["TrBsy",true,0]; _dialog = createdialog "GivePlayerDialog"; call GivePlayerDialogAmounts; waitUntil { !dialog }; uiSleep 3; player setVariable ["TrBsy",false,0];
  19. SHORTCODE LEGEND: These shortcodes are used in the repo titles, this indicates what the specific repo is for. SC >>> SingleCurrency MC >>> MultiChar 999 >>> 998/999 custom query supported Custom HiveExt.dll and needed sqf files + sql query file available on: Variant 1:DayZ-Epoch_SCHiveExt Variant 2: Dayz-Epoch_SCMCHiveExt Variant 3: DayZ_epoch_SCMC999HiveExt Variant 4: DayZ_epoch_SC999HiveExt All 4 variants have the following in common. - New CHILD:298 >>> fetching player bank data, used while player joins server - New CHILD:299 >>> updates player bank data, used when banking. - New CHILD:104 >>> gets all adminuids + their adminlevel from the admin_data table. (can be used to restrict access to admin tools aswell as infiSTAR AH) - Updated CHILD: 101 >>> checks if player exists in banking_data table and adds ifnot or updates playername if change detected - Updated CHILD:102 >>> added selection of cashMoney field during retrieving survivor data on login. - Updated CHILD:201 >>> added element to handle players cashmoney during updates to database. What is in variant 1? Everything stated above. What is in variant 2? Added support for AxeCop's multi char mod. and everything that you have in variant 1. What is in variant 3? Added support for 999 database calls so you can do custom database queries and everything found in variant 1 & 2. Only use this variant is you really want to use 998/999 calls despite of the security risks attached to them. What is in variant 4? Added support for 999 database calls so you can do custom database queries and everything found in variant 1. Only use this variant is you really want to use 998/999 calls despite of the security risks attached to them. What else can i find on the github repo's? SCDBQuery.sql: Run this file on your database by dragging and dropping It will add the field "CashMoney" to the character_data table and it will create a new table called "banking_data" with fields "PlayerUID,"PlayerName","BankSaldo" SCDBQuery_TransferGoldCoins.sql: Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the headshots field. It will grab the value from "HeadShots" and put it in "CashMoney" for each row in your "character_data" table. SCDBQuery_TransferGoldCoins2.sql: Only run this file if you had Zupa's first release installed and you have players that have goldcoins stored in the "morality" field? It will make db entries for all players in "player_data" in the "banking_data" table and add the corresponding values from the "morality" field into the "banksaldo" field. admin_data.sql: This file will add a table called "admin_data", this can be used in combination with infiSTAR AH or any other tool you need restricted access to. Intended for advanced users. Server folder: Contains all files that where modified from Zupa's v1.1 version Take care and use a diffmerge tool like BeyondCompare, better safe then sorry. Mission folder: Contains all files that where modified from Zupa's v1.1 version. Take care and use a diffmerge tool like BeyondCompare, better safe then sorry. BE filters: This needs to be added in the first line with !="" values inside the publicvarible.txt if using BE filters. Add it after the last !="" value. If using BE filters and you skip this step your players will get kicked for trying to send this PV to the server. !="PVDZE_bank_Save" Before installing: Always make backups of everything! Q&A: Q: Will support for AxeCops multi char mod be added in this hive? A: There is a 2nd version of the custom hiveext.dll that has support added for this mod. Q: Will there be 999 call support in this custom hiveext.dll A: There is a 3rd version of the custom hiveext.dll that has support for everything in version 1 & 2 and added support for 999 calls. Q: Does this hive have support vanilla epoch base maintenance? A: Yes it has the required funtionality as this hive was build of the last version released by VB[Awol] Q: Why are there 4 different variants of this custom hive? A: More flavours to choose from really. It enables you to either use or stay away from the unsafe 999 calls and still use this custom hive for single currency. Got any more question? Leave a post and i'll add them to the main post's Q&A section. Cheers Soul!
  20. I'm running Zupa coins on my dayz overpoch server. And whenever server restarts (and I assume when a player logs out) the player's coins disappear from their inventory . If anyone could help, I would appreciate it. Edit : I am missing banking_data in my db. How would I impliment it?
  21. Hello, I am currently working on my server AG to make sure all of the custom scripts are getting added and i am currently looking for the coin system and i have found few things in the database [ StorageCoins , Coins ] however nothing in the change logs or mission/server file. Have i missed it or is it still getting worked on ? Good job to all the developers who help make 1.0.6 come out. Martyn
  22. shote

    I need help please

    Hello, first of all sorry about my english. Im new at server scripting, but i would like get some help about what is happening at my server. I log in to my server, i put 5.000 coins at my safe in my own base, took one random vehicle, go to random spot and i parking it at forest (resart will come in 1 hour). When i log out, and log in back after restart, then my vehicle is at my base back, My money its gone from safe. I lose items inside vehicles, safes etc. Every restart. Well what i can do to fix it? I read posts at forum can be cache player or something. But i dont know its like data base its not sync with server, or i dont know. I dont have enought knows for explain better. So, i will apreciate all help and all comments. And if i have to post a log of some files just say me and i will do fast than i can. Thanks for beeing here epochmod.com
  23. hi guys ans girls im at it again making a shooting range that give you coins for points it working but need work. say if one of your players uses it battle eye kicks them but works fine for admins im adding sonuds to it this is some of the code of it but be about a week or two till its done _vehicle_78 = objNull; if (true) then { _this = createVehicle ["WarfareBunkerSign", [11475.7, 11385.6, 0.00119019], [], 0, "CAN_COLLIDE"]; _vehicle_787 = _this; _this setDir 111.418; _this setVehicleInit "this setObjectTexture [0, ""1000m.jpg""]"; _hit 1000,["_sethit100m"]; _this setPos [11475.7, 11385.6, 0.00119019]; };
  24. Joshyy

    Coin Problem/Exploit

    There is a major problem with the coin system on my server. People are able to give coins to someone/buy a vehicle and then re-log/die and have the money back? Any tips on fixing this, thanks!
  25. Howdy, ladies and gentlemen! After a long break with Arma 2, I finally decided to bring script to mind. Nothing amazing, just made enjoyable dialogs and opportunity for admins to choose how script will work: If 1 case will be fixed price for healing of whole body. In 2 case price creates relatively amount of disesases. I thought to create another topic for more comfortable discussions. Special thanks to Axeman for correcting mistakes in script. Let's go! To install this script you need: 1. Zupa's Coin System of 2 or 3 version. 2. Custom fnSelfactions.sqf ( you can take from dayz_code.pbo of Epoch, paste in mission file and change path to it in compiles.sqf ) 3. Custom variables.sqf ( you can take from dayz_code.pbo of Epoch, paste in mission file and change path to it in init.sqf ) Install guide: 1. Open fnSelfactions.sqf and paste this code above " //Allow owner to pack vault ". So it must be like that: if(_typeOfCursorTarget in Fast_Med and (player distance _cursorTarget < 3)) then { if (s_fast_med_dialog1 < 0) then { s_fast_med_dialog1 = player addAction ["<t color='#06FF15'>Pay for healing</t>", " WRITE HERE PATH TO SQF!!! ",_cursorTarget, 3, true, true, "", ""]; }; } else { player removeAction s_fast_med_dialog1; s_fast_med_dialog1 = -1; }; //Allow owner to pack vault Then find player removeAction s_player_fuelauto2; s_player_fuelauto2 = -1; and place under them that code: player removeAction s_fast_med_dialog1; s_fast_med_dialog1 = -1; 2.Open variables.sqf and add this code after "disableSerialization;": Fast_Med = ["NPC1","NPC1","NPC1"]; For instance 11 Chernarus: Fast_Med = ["Dr_Annie_Baker_EP1","Doctor","Dr_Hladik_EP1"]; Then find: dayz_resetSelfActions = { and paste under this code: s_fast_med_dialog1 = -1; 3. Create .sqf file and paste code from http://pastebin.com/QMukAuXP 4. Change configs in script 5. Enjoy! :)
  • Create New...