Jump to content

Search the Community

Showing results for tags 'bank'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools
  • Kool Kids Klub's Oof
  • Kool Kids Klub's Secret Spot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 3 results

  1. ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════ Difficulty: Hard Published By: Snipes Murphy Version: 4.x Credit: DiabolicaTrix ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════ All files are available here: https://github.com/DiabolicaTrix/Life-Banking-System/releases Navigate to the core folder, and drag the banking folder directly into it (these are single files, no files should be replaced) In the session folder, open the file fn_requestReceived.sqf and copy the contents of the file. Then go to your file of the same name, and copy the code just after initializing the CASH, BANK, etc. variables. Open the file fn_updatePartial.sqf, and copy the contents. Paste the code just after the "box 7: ..." In the shop folder, open fn_atmMenu.sqf, and copy the one line. Then replace the contents of your file with the same name by this single line. At the core root, open the configuration.sqf file, and in your file of the same name, copy the rows right after the life_marker In the init.sqf, copy the contents of the file, and in your file, paste the code between the initialization of the "sides" (initCiv, initCop, etc.) and the initialization of the "restrained" In the dialog folder, drag the banking folder directly. In the function, paste the files directly, and replace existing files. Copy the atm.hpp file directly to the dialog folder. Open the MasterHandler.hpp file and copy the contents. Add it to the very end of the file. Drag the sounds folder directly Drag the textures folder directly Drag the Config_Banking.hpp file directly Copy the single line of the Config_Master.hpp file and add it to the end of the Config_Master.hpp file. Copy the contents of description.ext, and add it to the end of CfgSounds In Functions.hpp, add the contents of the file after Vehicle. In the stringtable.xml, add the content to the end of the file, just before the closing tag of Project (</ Project>) In your life_server, navigate to the Mysql folder, and open the file fn_queryRequest.sqf, add "banking_pin" after each query, just after playtime. An example is provided in the file in question. Then, in the same file, copy the rest of the file and paste it before the switch. Copy the contents of fn_updatePartial.sqf, and add the right after box 7. In your database, add a new field in the player table, the field must be an int, with a length of 4, and be non-null (same features as the cash field).
  2. Adaptive Debit Cards I've looked around for a debit card script previously, and either couldn't find one, it wasn't updated for the latest framework, or it was incomplete. -- So I decided to give it a go myself. If you haven't seen or used Debit Cards on Altis Life before, they essentially make the purchase of items much easier and faster by taking money straight from a player's bank account, instead of their on-hand cash. From what I have also seen in the past, Debit Cards were forced upon the player, leading to problems such as Rebels not being able to rob people for their money, since it was safe and sound in their bank -- Which can easily ruin an economy. I've tried to help server owners out here by adding a few configuration options, including Taxing, setting a Tax amount, charging a custom amount for a Debit Card along with the disabling of debit cards in certain shops. This way, the player can decide weather or not to buy the card, and if they do, they will be charged extra for purchasing items with a Debit Card. How Debit Cards work: If the player is attempting to buy something from a shop, and they have enough money on-hand, the shop will take their cash. If they don't have that money on their person, but they have it in their bank account, that money is taken instead and they will also be charged extra in Tax (if it is enabled on the server). Cash on hand takes priority before Bank balance when buying items. If a player is attempting to sell an item and they have a Debit Card, the money made from the sale will go to their bank account. If they have no Debit Card it will be added to their on-hand cash. DISCLAIMER: These scripts were made on and tested on the most recent Altis Life Framework(v5.0.0) & 4.4r3. They may not work if you are attempting to use them on anything lower. If you are using Altis Life 4.4r3 please make sure your fn_mresArray.sqf has been updated to this: https://github.com/AsYetUntitled/Framework/commit/db66e545ef02faec2a2e9fd152eb5260b3deab8a ADDONS/OPTIONAL UPDATES Once you have finished this tutorial, feel free to install any of the updates below. They are 100% optional. (This list is a work in progress) Virtual Item: Tutorial Altis_Life.Altis 1. Download the file attached to this thread. 2. In Altis_Life.Altis\functions.hpp create the following class inside Life_Client_Core: class Debit { file = "core\debit"; class buyClothesDebit {}; class vehicleShopBuyDebit {}; class virt_buyDebit {}; class virt_sellDebit {}; class weaponShopBuySellDebit {}; class debitCheck {}; class buyDebit {}; }; 3. Open Config_Master.hpp, found in Altis_Life.Altis\config and add the following inside Life_Settings: /* Debit Card Configuration */ debit_tax = true; //Tax a player when they have used a Debit card to purchase something? - This is mainly a money sink in case everyone on your server owns a debit card, as they'll never have money on their person (so they can't be robbed) if they do. debit_taxAmount = 0.15; // Tax the player pays when purchasing with a debit card. Tax = Price * debit_taxAmount. debit_tax must be true. Eg. - If an item is $45,000 and your tax is set to 0.15, amount paid after tax will be $51,750. (total tax paid $6750.) debit_price = 75000; // Price of purchasing a debit card from the bank. debit_weapons = true; // Allows the use of debit cards when purchasing/selling weapons. debit_clothing = true; // Allows the use of debit cards when purchasing/selling clothing. debit_vItems = true; // Allows the use of Debit Cards when purchasing/selling virtual items. debit_vehicles = true; // Allows the use of Debit Cards when purchasing/renting/selling vehicles. 4. In Altis_Life.Altis\core open your configuration.sqf and add the following to Life Variables: IF YOU PLAN ON INSTALLING THE VIRTUAL ITEM ADDON FEEL FREE TO IGNORE THIS life_has_debit = false; 5. Move the debit folder for your version of Altis Life found in the .rar you (should have) downloaded from step 1 in to Altis_Life.Altis\core 6. Navigate to Altis_Life.Altis\dialog and open the following files: bank.hpp Find the following: class CloseButtonKey: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Close"; onButtonClick = "closeDialog 0;"; x = 0.35; y = 0.812; w = (6.25 / 40); h = (1 / 25); }; class MainBackground: Life_RscText { colorBackground[] = {0, 0, 0, 0.7}; idc = -1; x = 0.35; y = 0.2 + (11 / 250); w = 0.3; h = 0.652 - (22 / 250); }; Change to: class CloseButtonKey: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Close"; onButtonClick = "closeDialog 0;"; x = 0.438125 * safezoneW + safezoneX; y = 0.7024 * safezoneH + safezoneY; w = 0.0644531 * safezoneW; h = 0.022 * safezoneH; }; class MainBackground: Life_RscText { colorBackground[] = {0, 0, 0, 0.7}; idc = -1; x = 0.438125 * safezoneW + safezoneX; y = 0.3592 * safezoneH + safezoneY; w = 0.12375 * safezoneW; h = 0.341 * safezoneH; }; Also, add to class controls: class buyDebit: Life_RscButtonMenu { idc = 57623; onButtonClick = "[] call life_fnc_buyDebit"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; text = "$STR_Debit_PurchaseDebit"; x = 0.444312 * safezoneW + safezoneX; y = 0.6672 * safezoneH + safezoneY; w = 0.113437 * safezoneW; h = 0.022 * safezoneH; }; clothing.hpp Find: class BuyButtonKey: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Buy"; onButtonClick = "[] call life_fnc_buyClothes;"; x = 0.0822359 * safezoneW + safezoneX; y = 0.489992 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); }; Change to: class BuyButtonKey: Life_RscButtonMenu { idc = -1; text = "$STR_Global_Buy"; onButtonClick = "[0] call life_fnc_debitCheck;"; x = 0.0822359 * safezoneW + safezoneX; y = 0.489992 * safezoneH + safezoneY; w = (6.25 / 40); h = (1 / 25); }; shop_items.hpp Find: class ButtonAddG: Life_RscButtonMenu { idc = -1; text = "$STR_VS_BuyItem"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] spawn life_fnc_virt_buy;"; x = 0.12 + (0.35 / 2) - ((6.25 / 40) / 2); y = 0.70; w = (6.25 / 40); h = (1 / 25); }; class ButtonRemoveG: Life_RscButtonMenu { idc = -1; text = "$STR_VS_SellItem"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call life_fnc_virt_sell"; x = 0.53 + (0.35 / 2) - ((6.25 / 40) / 2); y = 0.70; w = (6.25 / 40); h = (1 / 25); }; Change to: class ButtonAddG: Life_RscButtonMenu { idc = -1; text = "$STR_VS_BuyItem"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[2] call life_fnc_debitCheck"; x = 0.12 + (0.35 / 2) - ((6.25 / 40) / 2); y = 0.70; w = (6.25 / 40); h = (1 / 25); }; class ButtonRemoveG: Life_RscButtonMenu { idc = -1; text = "$STR_VS_SellItem"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[4] call life_fnc_debitCheck"; x = 0.53 + (0.35 / 2) - ((6.25 / 40) / 2); y = 0.70; w = (6.25 / 40); h = (1 / 25); }; shops.hpp Find: class ButtonBuySell: Life_RscButtonMenu { idc = 38405; text = "$STR_Global_Buy"; onButtonClick = "[] spawn life_fnc_weaponShopBuySell; true"; x = 0.1; y = 0.8 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; Change to: class ButtonBuySell: Life_RscButtonMenu { idc = 38405; text = "$STR_Global_Buy"; onButtonClick = "[1] call life_fnc_debitCheck;"; x = 0.1; y = 0.8 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; vehicleShop.hpp AND vehicleShop3D.hpp Find: class RentCar : Life_RscButtonMenu { idc = -1; text = "$STR_Global_RentVeh"; onButtonClick = "[false] spawn life_fnc_vehicleShopBuy;"; x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; class BuyCar : life_RscButtonMenu { idc = 2309; text = "$STR_Global_Buy"; onButtonClick = "[true] spawn life_fnc_vehicleShopBuy;"; x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; Change to: class RentCar : Life_RscButtonMenu { idc = -1; text = "$STR_Global_RentVeh"; onButtonClick = "[5] call life_fnc_debitCheck;"; x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; class BuyCar : life_RscButtonMenu { idc = 2309; text = "$STR_Global_Buy"; onButtonClick = "[3] call life_fnc_debitCheck;"; x = 0.26 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)); y = 0.9 - (1 / 25); w = (6.25 / 40); h = (1 / 25); }; 7. Go to Altis_Life.Altis\core\session and make changes to the following files -- IF YOU PLAN ON INSTALLING THE VIRTUAL ITEM ADDON FEEL FREE TO IGNORE THIS fn_requestReceived.sqf - Find "switch (playerSide) do {" and add the following to it's respective class: For Altis Life 5.0.0: For Altis Life 4.4r3: It should look like this (5.0.0): case west: { life_has_debit = _this select 12; CONST(life_coplevel,(_this select 7)); CONST(life_medicLevel,0); life_blacklisted = _this select 9; if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 10) select 0); life_thirst = ((_this select 10) select 1); player setDamage ((_this select 10) select 2); }; }; fn_updatePartial.sqf - Add the following case below case 7. case 8: { _packet set[2,life_has_debit]; }; fn_updateRequest.sqf - Change the playerSide switch to: switch (playerSide) do { case civilian: { _packet pushBack life_is_arrested; _packet pushBack _alive; _packet pushBack _position; _packet pushBack life_has_debit; }; case west: { _packet pushBack life_has_debit; }; case independent: { _packet pushBack life_has_debit; }; }; 8. Open your stringtable.xml and create the following package: 9. Open cfgRemoteExec.hpp and add the following Server Only Function: IF YOU PLAN ON INSTALLING THE VIRTUAL ITEM ADDON FEEL FREE TO IGNORE THIS F(TON_fnc_debitBought,SERVER) Life_Server IF YOU PLAN ON INSTALLING THE VIRTUAL ITEM ADDON FEEL FREE TO IGNORE THIS SECTION 1. Open life_server\config.cpp and add the following class to class Systems: class debitBought {}; 2. Move fn_debitBought.sqf from your version of Altis Life you (should have) have downloaded from step 1 in to life_server\functions\systems 3. Go to life_server\Functions\MySQL and make the changes to the following files: fn_queryRequest.sqf For Altis Life 5.0.0: For Altis Life 4.4r3: fn_updatePartial.sqf Find: case 7: { _array = [_this,2,[],[[]]] call BIS_fnc_param; [_uid,_side,_array,0] call TON_fnc_keyManagement; }; Add under: For Altis Life 5.0.0: case 8: { _query = format ["UPDATE players SET debit='1' WHERE pid='%1'",_uid]; }; For Altis Life 4.4r3: case 8: { _query = format ["UPDATE players SET debit='1' WHERE playerid='%1'",_uid]; }; fn_updateRequest.sqf Find: private ["_uid","_side","_cash","_bank","_licenses","_gear","_stats","_name","_alive","_position","_query","_thread"]; _uid = [_this,0,"",[""]] call BIS_fnc_param; _name = [_this,1,"",[""]] call BIS_fnc_param; _side = [_this,2,sideUnknown,[civilian]] call BIS_fnc_param; _cash = [_this,3,0,[0]] call BIS_fnc_param; _bank = [_this,4,5000,[0]] call BIS_fnc_param; _licenses = [_this,5,[],[[]]] call BIS_fnc_param; _gear = [_this,6,[],[[]]] call BIS_fnc_param; _stats = [_this,7,[100,100],[[]]] call BIS_fnc_param; _alive = [_this,9,false,[true]] call BIS_fnc_param; _position = [_this,10,[],[[]]] call BIS_fnc_param; Add to the Private array & below _position = [_this,10,[],[[]]] call BIS_fnc_param; (Make sure you add it, do not overwrite what's currently there) private ["_debitCiv","_debit"]; _debitCiv = [_this,11,false,[true]] call BIS_fnc_param; _debit = [_this,8,false,[true]] call BIS_fnc_param; For Altis Life 5.0.0: For Altis Life 4.4r3: Database Changes IF YOU PLAN ON INSTALLING THE VIRTUAL ITEM ADDON FEEL FREE TO IGNORE THIS Execute the following on your database: ALTER TABLE `players` ADD (`debit` int(1) NOT NULL DEFAULT '0'); Battleye Add the following to your remoteexec.txt in your Battleye working directory: !TON_fnc_debitBought All done! All you need to do now is configure the settings to your preference and you should be good to go! I will be revising the scripts on this thread at some point, but at the moment I just don't have the time to do it. I also plan on implementing addons in the future which work alongside debit cards, so keep a look out! If you run in to a problem, don't hesitate to PM me or post on the thread. Debit Cards.rar
  3. Doors Federal Reserve Open When Mission loads Anyone know how to fix it? Or where the script is located to lock the doors when mission starts? becousre theres probely an error in it. Huge Thanks If Someone can help me!!!!!
×
×
  • Create New...