Moin,
Wenn jemand so ca 100-200 Kupfer verkauft, sinkt der Preis meist nur um so 2-5% Wie erhöhe ich die Prozentzahl ?
Spoiler anzeigen
Meine fn_config:
/*
##################### DYNAMIC MARKET SCRIPT #####################
### AUTHOR: RYAN TT. ###
### STEAM: http://www.steamcommunity.com/id/ryanthett ###
### ###
### DISCLAIMER: THIS SCRIPT CAN BE USED ON EVERY SERVER ONLY ###
### WITH THIS HEADER / NOTIFICATION ###
#################################################################
*/
// ███████████████████████████████████████████████████████████████████████
// █████████████████ DYNAMIC MARKET BASIC CONFIGURATION ██████████████████
// ███████████████████████████████████████████████████████████████████████
DYNMARKET_Serveruptime = 06; // Serveruptime after restart in hours
DYNMARKET_UseExternalDatabase = false; // Should the script use the External Database?
DYNMARKET_PriceUpdateInterval = 02; // After how many minutes should the price be updated?
DYNMARKET_CreateBackups = true; // Should the server save write the prices regulary into the Database? If false, it will save the prices before Server-restart?
DYNMARKET_CreateBackupInterval = 03; // After how many updates (PriceUpdateIntervals) should the prices be saved into the Database?
DYNMARKET_UserNotification = false; // Should the user be informed with a hint whenever the prices got updated?
// █████████████████ USER NOTIFICATION TEXTS █████████████████
DYNMARKET_UserNotification_Text =
[
"Your prices have been updated!",
"The new prices are being calculated by the server..."
];
// █████████████████ ITEM GROUP CONFIGURATION █████████████████
DYNMARKET_Items_Groups =
[
["Legal",
[
["apple",-1,50,30],
["peach",-1,50,45],
["oil_processed",-1,50,2350],
["copper_refined",-1,50,1500],
["iron_refined",-1,50,1100],
["silber_refined",-1,50,950],
["salt_refined",-1,50,1050],
["glass",-1,50,1500],
["schokolade_refined",-1,50,975],
["perle_refined",-1,50,4200],
["holzkohle_refined",-1,50,2000],
["getreide_unrefined",-1,50,2800],
["mais_unrefined",-1,50,900],
["tea_refined",-1,50,400],
["diamond_cut",-1,50,1900],
["cement",-1,50,1250]
],
0.5
],
["Illegal",
[
["marijuana",-1,30,5100],
["heroin_processed",-1,30,4600],
["cocaine_processed",-1,30,4200]
],
0.5
]
];
// █████████████████ ALL SELLABLE ITEMS █████████████████
DYNMARKET_Items_ToTrack =
[
["apple",30],
["peach",85],
["oil_processed",2350],
["copper_refined",1500],
["iron_refined",1100],
["silber_refined",950],
["salt_refined",1050],
["glass",1500],
["schokolade_refined",975],
["perle_refined",4200],
["holzkohle_refined",2000],
["getreide_unrefined",2800],
["mais_unrefined",900],
["tea_refined",400],
["diamond_cut",1900],
["cement",1250],
["heroin_processed",4600],
["marijuana",5100],
["cocaine_processed",4200]
];
//███████████████████████████████████████████████████████████████████████
//██████████████████ DO NOT MODIFY THE FOLLOWING CODE! ██████████████████
//███████████████████████████████████████████████████████████████████████
DYNMARKET_Items_CurrentPriceArr = [];
DYNMARKET_sellarraycopy = DYNMARKET_Items_ToTrack;
DYNMARKET_Serveruptime = (DYNMARKET_Serveruptime * 3600) - 300;
{
_currentArray = _x;
DYNMARKET_Items_CurrentPriceArr pushBack [_currentArray select 0,_currentArray select 1,0];
} forEach DYNMARKET_Items_ToTrack;
publicVariable "DYNMARKET_UserNotification";
publicVariable "DYNMARKET_UserNotification_Text";
if (DYNMARKET_UseExternalDatabase) then {[1] call TON_fnc_HandleDB;};
DYNMARKET_UpdateCount = 0;
if (DYNMARKET_UseExternalDatabase) then {
[] spawn {
sleep DYNMARKET_Serveruptime;
diag_log "### DYNMARKET >> CURRENT PRICES ARE BEING WRITTEN TO THE DATABASE ###";
diag_log "### DYNMARKET >> AS PLANNED, AWAITING RESULT... ###";
[0] call TON_fnc_HandleDB;
};
};
sleep 5;
[] call TON_fnc_sleeper;