Hallo Kann mir Einer Helfen und zwar im Mark Wird der Laptop nicht Angezeigt. Ich Habe Alles Richtig gemacht.
[Tutorial] Hack the Bank!
-
- Altis Life
-
stolzerrabe -
15. August 2015 um 14:36
-
-
offensichtlich nich!
-
- Offizieller Beitrag
offensichtlich nich!
Kannst Du ihm denn wenigstens helfen, wenn Du schon Sprüche klopfst?
-
na klar, config, varhandle, vartostr, virtshop und ggf, itemweight her hier Gesundes neues meine lieben!
-
fn_varHandle.sqf
Spoiler anzeigen
/*
File: fn_varHandle.sqf
Author: Bryan "Tonic" Boardwine
Description:
Master handler for getting a variables name, short name, etc.
*/
private["_var","_mode"];
_var = [_this,0,"",[""]] call BIS_fnc_param;
_mode = [_this,1,-1,[0]] call BIS_fnc_param;
if(_var == "" OR _mode == -1) exitWith {""};switch (_mode) do
{
case 0:
{
switch (_var) do
{
case "oilu": {"life_inv_oilu"};
case "oilp": {"life_inv_oilp"};
case "heroinu": {"life_inv_heroinu"};
case "heroinp": {"life_inv_heroinp"};
case "cannabis": {"life_inv_cannabis"};
case "marijuana": {"life_inv_marijuana"};
case "apple": {"life_inv_apple"};
case "water": {"life_inv_water"};
case "rabbit": {"life_inv_rabbit"};
case "salema": {"life_inv_salema"};
case "ornate": {"life_inv_ornate"};
case "mackerel": {"life_inv_mackerel"};
case "tuna": {"life_inv_tuna"};
case "mullet": {"life_inv_mullet"};
case "catshark": {"life_inv_catshark"};
case "turtle": {"life_inv_turtle"};
case "fishing": {"life_inv_fishingpoles"};
case "coffee": {"life_inv_coffee"};
case "turtlesoup": {"life_inv_turtlesoup"};
case "donuts": {"life_inv_donuts"};
case "fuelE": {"life_inv_fuelE"};
case "fuelF": {"life_inv_fuelF"};
case "money": {"life_cash"};
case "pickaxe": {"life_inv_pickaxe"};
case "copperore": {"life_inv_copperore"};
case "ironore": {"life_inv_ironore"};
case "iron_r": {"life_inv_ironr"};
case "copper_r": {"life_inv_copperr"};
case "salt": {"life_inv_salt"};
case "salt_r": {"life_inv_saltr"};
case "sand": {"life_inv_sand"};
case "glass": {"life_inv_glass"};
case "tbacon": {"life_inv_tbacon"};
case "lockpick": {"life_inv_lockpick"};
case "redgull": {"life_inv_redgull"};
case "peach": {"life_inv_peach"};
case "diamond": {"life_inv_diamond"};
case "diamondc": {"life_inv_diamondr"};
case "cocaine": {"life_inv_coke"};
case "cocainep": {"life_inv_cokep"};
case "spikeStrip": {"life_inv_spikeStrip"};
case "cement": {"life_inv_cement"};
case "rock": {"life_inv_rock"};
case "goldbar": {"life_inv_goldbar"};
case "wine": {"life_inv_wine"};
case "grapes": {"life_inv_grapes"};
case "methu": {"life_inv_methu"};
case "methp": {"life_inv_methp"};
case "methu": {"life_inv_methu"};
case "battery": {"life_inv_battery"};
case "blastingcharge": {"life_inv_blastingcharge"};
case "boltcutter": {"life_inv_boltcutter"};
case "defusekit": {"life_inv_defusekit"};
case "painkillers": {"life_inv_painkillers"};
case "morphium": {"life_inv_morphium"};
case "zipties": {"life_inv_zipties"};
case "storagesmall": {"life_inv_storagesmall"};
case "storagebig": {"life_inv_storagebig"};
case "mauer": {"life_inv_mauer"};
case "rye": {"life_inv_rye"};
case "hops": {"life_inv_hops"};
case "yeast": {"life_inv_yeast"};
case "cornmeal": {"life_inv_cornmeal"};
case "moonshine": {"life_inv_moonshine"};
case "bottles": {"life_inv_bottles"};
case "bottledshine": {"life_inv_bottledshine"};
case "bottledbeer": {"life_inv_bottledbeer"};
case "bottledwhiskey": {"life_inv_bottledwhiskey"};
case "beerp": {"life_inv_beerp"};
case "whiskey": {"life_inv_whiskey"};
case "mash": {"life_inv_mash"};
case "puranium": {"life_inv_puranium"}; // Add This
case "ipuranium": {"life_inv_ipuranium"}; // Add This
case "uranium1": {"life_inv_uranium1"}; // Add This
case "uranium2": {"life_inv_uranium2"}; // Add This
case "uranium3": {"life_inv_uranium3"}; // Add This
case "uranium4": {"life_inv_uranium4"}; // Add This
case "uranium": {"life_inv_uranium"}; // Add This
case "kidney": {"life_inv_kidney"};
case "scalpel": {"life_inv_scalpel"};
case "lappi":{"life_inv_laptop"};
};
};
case 1:
{
switch (_var) do
{
case "life_inv_oilu": {"oilu"};
case "life_inv_oilp": {"oilp"};
case "life_inv_heroinu": {"heroinu"};
case "life_inv_heroinp": {"heroinp"};
case "life_inv_cannabis": {"cannabis"};
case "life_inv_marijuana": {"marijuana"};
case "life_inv_apple": {"apple"};
case "life_inv_water": {"water"};
case "life_inv_rabbit": {"rabbit"};
case "life_inv_salema": {"salema"};
case "life_inv_ornate": {"ornate"};
case "life_inv_mackerel": {"mackerel"};
case "life_inv_tuna": {"tuna"};
case "life_inv_mullet": {"mullet"};
case "life_inv_catshark": {"catshark"};
case "life_inv_turtle": {"turtle"};
case "life_inv_fishingpoles": {"fishing"};
case "life_inv_coffee": {"coffee"};
case "life_inv_turtlesoup": {"turtlesoup"};
case "life_inv_donuts": {"donuts"};
case "life_inv_fuelE": {"fuelE"};
case "life_inv_fuelF": {"fuelF"};
case "life_cash": {"money"};
case "life_inv_pickaxe": {"pickaxe"};
case "life_inv_copperore": {"copperore"};
case "life_inv_ironore": {"ironore"};
case "life_inv_ironr": {"iron_r"};
case "life_inv_copperr": {"copper_r"};
case "life_inv_sand": {"sand"};
case "life_inv_salt": {"salt"};
case "life_inv_glass": {"glass"};
case "life_inv_redgull": {"redgull"};
case "life_inv_lockpick": {"lockpick"};
case "life_inv_tbacon": {"tbacon"};
case "life_inv_peach": {"peach"};
case "life_inv_diamond": {"diamond"};
case "life_inv_diamondr": {"diamondc"};
case "life_inv_saltr": {"salt_r"};
case "life_inv_coke": {"cocaine"};
case "life_inv_cokep": {"cocainep"};
case "life_inv_spikeStrip": {"spikeStrip"};
case "life_inv_cement": {"cement"};
case "life_inv_rock": {"rock"};
case "life_inv_goldbar": {"goldbar"};
case "life_inv_wine": {"wine"};
case "life_inv_grapes": {"grapes"};
case "life_inv_methu": {"methu"};
case "life_inv_methp": {"methp"};
case "life_inv_battery": {"battery"};
case "life_inv_blastingcharge": {"blastingcharge"};
case "life_inv_boltcutter": {"boltcutter"};
case "life_inv_defusekit": {"defusekit"};
case "life_inv_painkillers": {"painkillers"};
case "life_inv_morphium": {"morphium"};
case "life_inv_zipties": {"zipties"};
case "life_inv_storagesmall": {"storagesmall"};
case "life_inv_storagebig": {"storagebig"};
case "life_inv_mauer": {"mauer"};
case "life_inv_mash": {"mash"};
case "life_inv_yeast": {"yeast"};
case "life_inv_rye": {"rye"};
case "life_inv_hops": {"hops"};
case "life_inv_whiskey": {"whiskey"};
case "life_inv_beerp": {"beerp"};
case "life_inv_bottles": {"bottles"};
case "life_inv_cornmeal": {"cornmeal"};
case "life_inv_bottledwhiskey": {"bottledwhiskey"};
case "life_inv_bottledbeer": {"bottledbeer"};
case "life_inv_bottledshine": {"bottledshine"};
case "life_inv_moonshine": {"moonshine"};
case "life_inv_puranium": {"puranium"}; // Add This
case "life_inv_ipuranium": {"ipuranium"}; // Add This
case "life_inv_uranium1": {"uranium1"}; // Add This
case "life_inv_uranium2": {"uranium2"}; // Add This
case "life_inv_uranium3": {"uranium3"}; // Add This
case "life_inv_uranium4": {"uranium4"}; // Add This
case "life_inv_uranium": {"uranium"}; // Add This
case "life_inv_kidney": {"kidney"};
case "life_inv_scalpel": {"scalpel"};
case "life_inv_laptop":{"lappi"};
};
};
};
fn_varToStr.sqfSpoiler anzeigen
/*
File: fn_varToStr.sqf
Author: Bryan "Tonic" Boardwine
Description:
Takes the long-name (variable) and returns a display name for our
virtual item.
*/
private["_var"];
_var = [_this,0,"",[""]] call BIS_fnc_param;
if(_var == "") exitWith {""};switch (_var) do
{
case "life_inv_oilu": {"Rohöl"};
case "life_inv_oilp": {"Euro-Diesel"};
case "life_inv_heroinu": {"Unverarbeitetes Heroin"};
case "life_inv_heroinp": {"Verarbeitetes Heroin"};
case "life_inv_cannabis": {"Kannabis"};
case "life_inv_marijuana": {"Marijuana"};
case "life_inv_apple": {"Apfel"};
case "life_inv_rabbit": {"Hasenfleisch"};
case "life_inv_salema": {"Salema Fleisch"};
case "life_inv_ornate": {"Aufwendiges Fleisch"};
case "life_inv_mackerel": {"Makrele Fleisch"};
case "life_inv_tuna": {"Thunfisch"};
case "life_inv_mullet": {"Meeräsche Fleisch"};
case "life_inv_catshark": {"Katzenhai Fleisch"};
case "life_inv_turtle": {"Turtle Meat"};
case "life_inv_fishingpoles": {"Angel"};
case "life_inv_water": {"Wasserflasche"};
case "life_inv_coffee": {"Kaffee"};
case "life_inv_turtlesoup": {"Schildkröten Suppe"};
case "life_inv_donuts": {"Donuts"};
case "life_inv_fuelE": {"Benzinkanister (leer)"};
case "life_inv_fuelF": {"Benzinkanister"};
case "life_inv_pickaxe": {"Spitzhacke"};
case "life_inv_copperore": {"Kupfererz"};
case "life_inv_ironore": {"Eisenerz"};
case "life_inv_ironr": {"Eisen Barren"};
case "life_inv_copperr": {"Kupfer Barren"};
case "life_inv_sand": {"Sand"};
case "life_inv_salt": {"Salzerz"};
case "life_inv_saltr": {"Salz"};
case "life_inv_glass": {"Glas"};
case "life_inv_diamond": {"Diamant Uncut"};
case "life_inv_diamondr": {"Diamant Cut"};
case "life_inv_tbacon": {"Tactical Bacon"};
case "life_inv_redgull": {"RedBull"};
case "life_inv_lockpick": {"Dietrich"};
case "life_inv_peach": {"Pfirsich"};
case "life_inv_coke": {"Unverarbeitetes Kokain"};
case "life_inv_cokep": {"Verarbeitetes Kokain"};
case "life_inv_spikeStrip": {"Nagelband"};
case "life_inv_rock": {"Stein"};
case "life_inv_cement": {"Zement Sack"};
case "life_inv_goldbar": {"Gold Barren"};
case "life_inv_wine": {"Wein"};
case "life_inv_grapes": {"Trauben"};
case "life_inv_methu": {"Unverarbeitetes Methamphetamine"};
case "life_inv_methp": {"Pures Methamphetamine"};
case "life_inv_storage1": {"Kiste (klein)"};
case "life_inv_storage2": {"Kiste (groß)"};
case "life_inv_battery": {"Telefon Batterie"};
case "life_inv_blastingcharge": {"C4 Sprengstoff"};
case "life_inv_boltcutter": {"Bolzen Schneider"};
case "life_inv_defusekit": {"C4 EntschärfungsKit"};
case "life_inv_painkillers": {"Schmerzmittel"};
case "life_inv_morphium": {"Morphium"};
case "life_inv_zipties": {"Kabelbinder"};
case "life_inv_storagesmall": {"Small Storage Box"};
case "life_inv_storagebig": {"Large Storage Box"};
case "life_inv_mauer": {"Strassensperre"};
case "life_inv_mash": {"Grain Mash Mixture"};
case "life_inv_yeast": {"Hefe"};
case "life_inv_rye": {"Roggen"};
case "life_inv_hops": {"Hopfen"};
case "life_inv_whiskey": {"Destillierter Whiskey"};
case "life_inv_beerp": {"Fermentiertes Bier"};
case "life_inv_bottles": {"Glass Flaschen"};
case "life_inv_cornmeal": {"Maismehl Getreide"};
case "life_inv_bottledwhiskey": {"Abgefüllter Whiskey"};
case "life_inv_bottledbeer": {"Abgefülltes Beer"};
case "life_inv_bottledshine": {"Abgefüllter Moonshine"};
case "life_inv_moonshine": {"Destillierter Moonshine"};
case "life_inv_puranium": {"Uran Mischung"}; // Add This
case "life_inv_ipuranium": {"Produkt III Uran"}; // Add This
case "life_inv_uranium1": {"Uranerz"}; // Add This
case "life_inv_uranium2": {"Rohes Uran"}; // Add This
case "life_inv_uranium3": {"Gereinigtes Uran"}; // Add This
case "life_inv_uranium4": {"Uran Konzetrat"}; // Add This
case "life_inv_uranium": {"Uran"}; // Add This
case "life_inv_kidney": {"Niere"};
case "life_inv_scalpel": {"Scalpel"};
case "life_inv_laptop": {"Laptop"};
//License Block
case "license_civ_driver": {"Führerschein"};
case "license_civ_air": {"Pilotenschein"};
case "license_civ_heroin": {"Heroin Training"};
case "license_civ_gang": {"Gang Lizenz"};
case "license_civ_oil": {"ÖL Verarbeitung"};
case "license_civ_dive": {"Taucherschein"};
case "license_civ_boat": {"Bootschein"};
case "license_civ_gun": {"Waffenschein"};
case "license_cop_air": {"Pilotenschein"};
case "license_cop_swat": {"GSG9 Lizenz"};
case "license_cop_cg": {"Küstenwache"};
case "license_civ_rebel": {"Rebellen Training"};
case "license_civ_truck": {"LKW-Schein"};
case "license_civ_diamond": {"Diamant Verarbeitung"};
case "license_civ_copper": {"Kupfer Verarbeitung"};
case "license_civ_iron": {"Eisen Verarbeitung"};
case "license_civ_sand": {"Sand Verarbeitung"};
case "license_civ_salt": {"Salz Verarbeitung"};
case "license_civ_coke": {"Kokain Training"};
case "license_civ_marijuana": {"Marijuana Training"};
case "license_civ_cement": {"Zement Mix Lizenz"};
case "license_civ_meth": {"Methamphetamine Training"};
case "license_civ_grapes": {"Wein Verarbeitung"};
case "license_civ_moonshine": {"Moonshine Verarbeitung"};
case "license_civ_meth": {"Methamphetamine Training"};
case "license_med_air": {"Medizin Ausbildung"};
case "license_civ_home": {"Hauseigentümer Lizenz"};
case "license_med_adac": {"ADAC Lizenz"};
case "license_civ_stiller": {"Destillier Lizenz"};
case "license_civ_liquor": {"Schnaps Lizenz"};
case "license_civ_bottler": {"Abfüll Lizenz"};
case "license_civ_uranium": {"Uran Lizenz"};
};
fn_virt_shops.sqfSpoiler anzeigen
/*
File: fn_virt_shops.sqf
Author: Bryan "Tonic" Boardwine
Description:
Config for virtual shops.
*/
private["_shop"];
_shop = _this select 0;switch (_shop) do
{
case "market": {["Markt",["water","rabbit","apple","storagebig","storagesmall","bottledbeer","bottledwhiskey","redgull","battery","tbacon","lockpick","pickaxe","zipties","peach","boltcutter","blastingcharge"]]};
case "rebel": {["Rebel Market",["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","boltcutter","blastingcharge","lappi"]]};
case "gang": {["Gang Market", ["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","blastingcharge","boltcutter"]]};
case "wongs": {["Wong's Food Cart",["turtlesoup","turtle","moonshine"]]};
case "coffee": {["Stratis Coffee Club",["coffee","donuts"]]};
case "heroin": {["Drug Dealer",["cocainep","heroinp","marijuana","methp"]]};
case "fishmarket": {["Altis Fish Market",["salema","ornate","mackerel","mullet","tuna","catshark"]]};
case "glass": {["Altis Glass Dealer",["glass"]]};
case "iron": {["Altis Industrial Trader",["iron_r","copper_r"]]};
case "diamond": {["Diamond Dealer",["diamond","diamondc"]]};
case "salt": {["Salt Dealer",["salt_r"]]};
case "cop": {["Cop Item Shop",["donuts","coffee","spikeStrip","mauer","battery","painkillers","redgull","defusekit"]]};
case "cement": {["Cement Dealer",["cement"]]};
case "beer": {["Schnaps Laden",["wine"]]};
case "pharmacy": {["Apotheke",["painkillers","morphium","scalpel","kidney"]]};
case "medic": {["Arztbedarf",["apple","donuts","coffee","battery","redgull","fuelF"]]};
case "speakeasy": {["Speakeasy's",["bottledbeer","bottledwhiskey","bottledshine"]]};
case "bar": {["The Lounge",["bottles","cornmeal"]]};
case "uranium": {["Marchand Uranium",["uranium","puranium"]]};
};
fn_itemWeight.sqfSpoiler anzeigen
/*
File: fn_itemWeight.sqf
Author: Bryan "Tonic" Boardwine
Description:
Gets the items weight and returns it.
*/
private["_item"];
_item = [_this,0,"",[""]] call BIS_fnc_param;
if(_item == "") exitWith {};switch (_item) do
{
case "oilu": {8};
case "oilp": {4};
case "heroinu": {6};
case "heroinp": {4};
case "cannabis": {6};
case "marijuana": {6};
case "apple": {1};
case "water": {1};
case "rabbit": {1};
case "salema": {2};
case "ornate": {2};
case "mackerel": {4};
case "tuna": {6};
case "mullet": {4};
case "catshark": {6};
case "turtle": {8};
case "fishing": {2};
case "turtlesoup": {2};
case "donuts": {1};
case "coffee": {1};
case "fuelE": {2};
case "fuelF": {5};
case "money": {0};
case "pickaxe": {2};
case "copperore": {6};
case "ironore": {5};
case "copper_r": {4};
case "iron_r": {3};
case "sand": {3};
case "salt": {5};
case "salt_r": {3};
case "glass": {1};
case "diamond": {4};
case "diamondc": {2};
case "cocaine": {8};
case "cocainep": {5};
case "spikeStrip": {5};
case "rock": {6};
case "cement": {5};
case "goldbar": {10};
case "wine": {5};
case "grapes": {3};
case "methu": {6};
case "methp": {4};
case "battery": {1};
case "blastingcharge": {30};
case "boltcutter": {10};
case "defusekit": {1};
case "painkillers": {5};
case "morphium": {6};
case "zipties": {1};
case "storagesmall": {10};
case "storagebig": {20};
case "mauer": {15};
case "rye": {3};
case "hops": {3};
case "yeast": {3};
case "cornmeal": {2};
case "mash": {4};
case "whiskey": {5};
case "beerp": {4};
case "moonshine": {5};
case "bottledwhiskey": {5};
case "bottledbeer": {5};
case "bottledshine": {5};
case "bottles": {1};
case "puranium": {6};
case "ipuranium": {3};
case "uranium1": {2};
case "uranium2": {1};
case "uranium3": {4};
case "uranium4": {4};
case "uranium": {4};
case "kidney": {20};
case "scalpel": {5};
case "peach": {2};
case "lappi": {15};
default {1};
}; -
Nja alles Richtig hast du wohl net gemacht
Spoiler anzeigen
C
Alles anzeigen/* File: fn_virt_shops.sqf Author: Bryan "Tonic" Boardwine Description: Config for virtual shops. */ private["_shop"]; _shop = _this select 0; switch (_shop) do { case "market": {["Markt",["water","rabbit","apple","storagebig","storagesmall","bottledbeer","bottledwhiskey","redgull","battery","tbacon","lockpick","pickaxe","zipties","peach","boltcutter","blastingcharge"]]}; case "rebel": {["Rebel Market",["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","boltcutter","blastingcharge","lappi"]]}; <--- WIE KOMMTS DU AUF LAPPI? case "gang": {["Gang Market", ["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","blastingcharge","boltcutter"]]}; case "wongs": {["Wong's Food Cart",["turtlesoup","turtle","moonshine"]]}; case "coffee": {["Stratis Coffee Club",["coffee","donuts"]]}; case "heroin": {["Drug Dealer",["cocainep","heroinp","marijuana","methp"]]}; case "fishmarket": {["Altis Fish Market",["salema","ornate","mackerel","mullet","tuna","catshark"]]}; case "glass": {["Altis Glass Dealer",["glass"]]}; case "iron": {["Altis Industrial Trader",["iron_r","copper_r"]]}; case "diamond": {["Diamond Dealer",["diamond","diamondc"]]}; case "salt": {["Salt Dealer",["salt_r"]]}; case "cop": {["Cop Item Shop",["donuts","coffee","spikeStrip","mauer","battery","painkillers","redgull","defusekit"]]}; case "cement": {["Cement Dealer",["cement"]]}; case "beer": {["Schnaps Laden",["wine"]]}; case "pharmacy": {["Apotheke",["painkillers","morphium","scalpel","kidney"]]}; case "medic": {["Arztbedarf",["apple","donuts","coffee","battery","redgull","fuelF"]]}; case "speakeasy": {["Speakeasy's",["bottledbeer","bottledwhiskey","bottledshine"]]}; case "bar": {["The Lounge",["bottles","cornmeal"]]}; case "uranium": {["Marchand Uranium",["uranium","puranium"]]}; };
probier diese hier mal aus
Spoiler anzeigen
Code
Alles anzeigen/* File: fn_virt_shops.sqf Author: Bryan "Tonic" Boardwine Description: Config for virtual shops. */ private["_shop"]; _shop = _this select 0; switch (_shop) do { case "market": {["Markt",["water","rabbit","apple","storagebig","storagesmall","bottledbeer","bottledwhiskey","redgull","battery","tbacon","lockpick","pickaxe","zipties","peach","boltcutter","blastingcharge"]]}; case "rebel": {["Rebel Market",["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","boltcutter","blastingcharge","laptop"]]}; //<--- PROBIER DAS HIER, SOLLTE FUNKTIONIEREN case "gang": {["Gang Market", ["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","blastingcharge","boltcutter"]]}; case "wongs": {["Wong's Food Cart",["turtlesoup","turtle","moonshine"]]}; case "coffee": {["Stratis Coffee Club",["coffee","donuts"]]}; case "heroin": {["Drug Dealer",["cocainep","heroinp","marijuana","methp"]]}; case "fishmarket": {["Altis Fish Market",["salema","ornate","mackerel","mullet","tuna","catshark"]]}; case "glass": {["Altis Glass Dealer",["glass"]]}; case "iron": {["Altis Industrial Trader",["iron_r","copper_r"]]}; case "diamond": {["Diamond Dealer",["diamond","diamondc"]]}; case "salt": {["Salt Dealer",["salt_r"]]}; case "cop": {["Cop Item Shop",["donuts","coffee","spikeStrip","mauer","battery","painkillers","redgull","defusekit"]]}; case "cement": {["Cement Dealer",["cement"]]}; case "beer": {["Schnaps Laden",["wine"]]}; case "pharmacy": {["Apotheke",["painkillers","morphium","scalpel","kidney"]]}; case "medic": {["Arztbedarf",["apple","donuts","coffee","battery","redgull","fuelF"]]}; case "speakeasy": {["Speakeasy's",["bottledbeer","bottledwhiskey","bottledshine"]]}; case "bar": {["The Lounge",["bottles","cornmeal"]]}; case "uranium": {["Marchand Uranium",["uranium","puranium"]]}; };
beim nächsten mal die genauen classnames anschauen
-
Habe ich genau von ihr Siete-1
-
Nachtrag zum Post von @Anonymous-US
-
Bzw. Hau doch bitte mal hier rein:
- core\configuration.sqf
- core\init.sqf
- init.sqf
- functions.h
-
configuration.sqf
Spoiler anzeigen
#include <macro.h>
/*
Master Life Configuration File
This file is to setup variables for the client, there are still other configuration files in the system*****************************
****** Backend Variables *****
*****************************
*/
life_query_time = time;
life_action_delay = time;
life_trunk_vehicle = Objnull;
life_session_completed = false;
life_garage_store = false;
life_session_tries = 0;
life_net_dropped = false;
life_hit_explosive = false;
life_siren_active = false;
life_clothing_filter = 0;
life_clothing_uniform = -1;
life_redgull_effect = time;
life_is_processing = false;
life_bail_paid = false;
life_impound_inuse = false;
life_action_inUse = false;
life_spikestrip = ObjNull;
life_respawn_timer = 2; //Scaled in minutes
life_knockout = false;
life_interrupted = false;
life_respawned = false;
life_removeWanted = false;
life_action_gathering = false;
life_smartphoneTarget = ObjNull;
life_action_gather = false;
life_drink = 0;
life_fatigue = 0.2; //Set the max fatigue limit (50%)
life_kw_athira = false;
life_kw_kavala = false;
life_kw_sofia = false;
life_kw_kavala = false;
life_request_timer = false;
life_markers = false;
life_sitting = false;
life_firstSpawn = false;
life_bootVerleihInUse = false;
life_bootVerleihDone = false;
life_theLappi = ObjNull;//Persistent Saving
__CONST__(life_save_civ,TRUE); //Save weapons for civs?
__CONST__(life_save_yinv,TRUE); //Save Y-Inventory for civs and cops?//Revive constant variables.
__CONST__(life_revive_cops,FALSE); //Set to false if you don't want cops to be able to revive downed players.
__CONST__(life_revive_fee,1000); //Fee for players to pay when revived.//House Limit
__CONST__(life_houseLimit,3); //Maximum amount of houses a player can buy (TODO: Make Tiered licenses).//Gang related stuff?
__CONST__(life_gangPrice,40000); //Price for creating a gang (They're all persistent so keep it high to avoid 345345345 gangs).
__CONST__(life_gangUpgradeBase,10000); //MASDASDASD
__CONST__(life_gangUpgradeMultipler,2.5); //BLAH__CONST__(life_enableFatigue,true); //Enable / Disable the ARMA 3 Fatigue System
//Uniform price (0),Hat Price (1),Glasses Price (2),Vest Price (3),Backpack Price (4)
life_clothing_purchase = [-1,-1,-1,-1,-1];
/*
*****************************
****** Weight Variables *****
*****************************
*/
life_maxWeight = 50; //Identifies the max carrying weight (gets adjusted throughout game when wearing different types of clothing).
life_maxWeightT = 100; //Static variable representing the players max carrying weight on start.
life_carryWeight = 0; //Represents the players current inventory weight (MUST START AT 0)./*
*****************************
****** Life Variables *******
*****************************
*/
life_net_dropped = false;
life_hit_explosive = false;
life_siren_active = false;
life_bank_fail = false;
life_use_atm = true;
life_is_arrested = false;
life_delivery_in_progress = false;
life_action_in_use = false;
life_thirst = 100;
life_hunger = 100;
life_battery = 50;
__CONST__(life_paycheck_period,10); //Five minutes
life_cash = 0;
__CONST__(life_impound_car,2500);
__CONST__(life_impound_boat,1000);
__CONST__(life_impound_air,7500);
life_istazed = false;
life_my_gang = ObjNull;
life_drugged_cocaine = -1;
life_drugged_cocaine_duration = 10;
life_drugged_weed = -1;
life_drugged_weed_duration = 3;
life_fadeSound = false;life_vehicles = [];
bank_robber = [];
switch (playerSide) do
{
case west:
{
life_atmcash = 10000; //Starting Bank Money
life_paycheck = 2000; //Paycheck Amount
};
case civilian:
{
life_atmcash = 10000; //Starting Bank Money
life_paycheck = 850; //Paycheck Amount
};case independent: {
life_atmcash = 10000;
life_paycheck = 1750;
};
};/*
Master Array of items?
*/
life_vShop_rentalOnly = ["I_MRAP_03_hmg_F"];
__CONST__(life_vShop_rentalOnly,life_vShop_rentalOnly); //These vehicles can never be bought and only 'rented'. Used as a balancer & money sink. If you want your server to be chaotic then fine.. Remove it..life_inv_items =
[
"life_inv_oilu",
"life_inv_oilp",
"life_inv_heroinu",
"life_inv_heroinp",
"life_inv_cannabis",
"life_inv_marijuana",
"life_inv_apple",
"life_inv_rabbit",
"life_inv_salema",
"life_inv_ornate",
"life_inv_mackerel",
"life_inv_tuna",
"life_inv_mullet",
"life_inv_catshark",
"life_inv_turtle",
"life_inv_fishingpoles",
"life_inv_water",
"life_inv_donuts",
"life_inv_turtlesoup",
"life_inv_coffee",
"life_inv_fuelF",
"life_inv_fuelE",
"life_inv_pickaxe",
"life_inv_copperore",
"life_inv_ironore",
"life_inv_ironr",
"life_inv_copperr",
"life_inv_sand",
"life_inv_salt",
"life_inv_saltr",
"life_inv_glass",
"life_inv_tbacon",
"life_inv_lockpick",
"life_inv_redgull",
"life_inv_peach",
"life_inv_diamond",
"life_inv_coke",
"life_inv_cokep",
"life_inv_diamondr",
"life_inv_spikeStrip",
"life_inv_rock",
"life_inv_cement",
"life_inv_goldbar",
"life_inv_blastingcharge",
"life_inv_boltcutter",
"life_inv_defusekit",
"life_inv_storagesmall",
"life_inv_storagebig",
"life_inv_painkillers",
"life_inv_morphium",
"life_inv_zipties",
"life_inv_wine",
"life_inv_grapes",
"life_inv_methu",
"life_inv_methp",
"life_inv_battery",
"life_inv_mauer",
"life_inv_cornmeal",
"life_inv_beerp",
"life_inv_whiskey",
"life_inv_rye",
"life_inv_hops",
"life_inv_yeast",
"life_inv_bottles",
"life_inv_bottledshine",
"life_inv_bottledbeer",
"life_inv_bottledwhiskey",
"life_inv_moonshine",
"life_inv_mash",
"life_inv_puranium",
"life_inv_ipuranium",
"life_inv_uranium1",
"life_inv_uranium2",
"life_inv_uranium3",
"life_inv_uranium4",
"life_inv_uranium",
"life_inv_kidney",
"life_inv_scalpel",
"life_inv_laptop"
];//Setup variable inv vars.
{missionNamespace setVariable[_x,0];} foreach life_inv_items;
//Licenses [license var, civ/cop]
life_licenses =
[
["license_cop_air","cop"],
["license_cop_swat","cop"],
["license_cop_cg","cop"],
["license_civ_driver","civ"],
["license_civ_air","civ"],
["license_civ_heroin","civ"],
["license_civ_marijuana","civ"],
["license_civ_gang","civ"],
["license_civ_boat","civ"],
["license_civ_oil","civ"],
["license_civ_dive","civ"],
["license_civ_truck","civ"],
["license_civ_gun","civ"],
["license_civ_rebel","civ"],
["license_civ_coke","civ"],
["license_civ_diamond","civ"],
["license_civ_copper","civ"],
["license_civ_iron","civ"],
["license_civ_sand","civ"],
["license_civ_salt","civ"],
["license_civ_cement","civ"],
["license_civ_grapes","civ"],
["license_civ_moonshine","civ"],
["license_civ_meth","civ"],
["license_med_air","med"],
["license_civ_home","civ"],
["license_med_adac","med"],
["license_civ_stiller","civ"],
["license_civ_liquor","civ"],
["license_civ_bottler","civ"],
["license_civ_uranium","civ"]
];//Setup License Variables
{missionNamespace setVariable[(_x select 0),false];} foreach life_licenses;life_dp_points = ["dp_1","dp_2","dp_3","dp_4","dp_5","dp_6","dp_7","dp_8","dp_9","dp_10","dp_11","dp_12","dp_13","dp_14","dp_15","dp_15","dp_16","dp_17","dp_18","dp_19","dp_20","dp_21","dp_22","dp_23","dp_24","dp_25"];
//[shortVar,reward]
life_illegal_items = [["heroinu",2500],["heroinp",5000],["cocaine",3000],["cocainep",6000],["methu",4000],["methp",8000],["marijuana",3500],["ipuranium",10000],["turtle",5000],["blastingcharge",10000],
["moonshine",6500],["boltcutter",1000],["bottledshine",6500],["kidney",12500],["scalpel",5000],["mash",6500],["spikeStrip",1500]];/*
Sell / buy arrays
*/
sell_array =
[
["apple",50],
["heroinu",2250],
["heroinp",4500],
["salema",45],
["ornate",40],
["mackerel",175],
["tuna",700],
["mullet",250],
["catshark",300],
["rabbit",65],
["oilp",2250],
["turtle",5750],
["water",0],
["coffee",0],
["turtlesoup",4500],
["donuts",0],
["marijuana",3000],
["tbacon",25],
["lockpick",750],
["pickaxe",1000],
["redgull",750],
["peach",65],
["cocaine",2500],
["cocainep",5000],
["diamond",1500],
["diamondc",3000],
["iron_r",1500],
["copper_r",1000],
["salt_r",2500],
["glass",1500],
["fuelF",0],
["spikeStrip",0],
["cement",1000],
["wine",1000],
["grapes",70],
["methu",1875],
["methp",3750],
["battery",50],
["defusekit",0],
["boltcutter",2500],
["blastingcharge",10000],
["goldbar",90000],
["painkillers",100],
["morphium",100],
["zipties",5],
["mauer",0],
["bottledshine",3000],
["bottledwhiskey",1500],
["bottledbeer",750],
["moonshine",1000],
["whiskey",1250],
["beerp",550],
["mash",500],
["rye",2000],
["hops",1800],
["yeast",2000],
["cornmeal",200],
["bottles",50],
["uranium",10000],
["kidney",9000],
["scalpel",1000],
["lappi",10]
];
__CONST__(sell_array,sell_array);buy_array =
[
["apple",65],
["rabbit",75],
["salema",55],
["ornate",50],
["mackerel",200],
["tuna",900],
["mullet",300],
["catshark",350],
["water",10],
["turtle",15000],
["turtlesoup",15000],
["donuts",10],
["coffee",10],
["tbacon",75],
["lockpick",4000],
["pickaxe",1200],
["redgull",1000],
["fuelF",850],
["peach",70],
["spikeStrip",10],
["moonshine",9000],
["wine",4000],
["grapes",95],
["battery",100],
["defusekit",10],
["boltcutter",8000],
["blastingcharge",50000],
["painkillers",500],
["morphium",1500],
["zipties",500],
["storagesmall",125000],
["storagebig",250000],
["mauer",10],
["bottledshine",12000],
["bottledwhiskey",5500],
["bottledbeer",1250],
["moonshine",7500],
["whiskey",5500],
["beerp",5000],
["cornmeal",500],
["mash",2500],
["bottles",100],
["puranium",1000],
["ipuranium",9000],
["kidney",15000],
["scalpel",7500],
["lappi",350000]
];
__CONST__(buy_array,buy_array);life_weapon_shop_array =
[
["hgun_P07_snds_F",0],
["hgun_P07_F",0],
["hgun_Rook40_F",0],
["hgun_Pistol_heavy_01_F",0],
["SMG_01_F",0],
["arifle_sdar_F",0],
["arifle_Mk20C_F",0],
["arifle_TRG21_F",0],
["arifle_TRG20_F",0],
["arifle_Katiba_F",0],
["arifle_Katiba_C_F",0],
["arifle_MXC_Black_F",0],
["arifle_MX_Black_F",0],
["arifle_MXM_Black_F",0],
["arifle_MXC_F",0],
["arifle_MX_F",0],
["arifle_MXM_F",0],
["SMG_02_F",0],
["srifle_LRR_LRPS_F",0],
["srifle_EBR_F",0],
["arifle_MX_SW_Black_F",0],
["arifle_MX_SW_F",0],
["LMG_Zafir_F",0],
["srifle_GM6_F",0],["muzzle_snds_M",0],
["muzzle_snds_L",0],
["muzzle_snds_H",0],
["optic_Aco_smg",0],
["optic_ACO_grn",0],
["optic_Aco",0],
["optic_Arco",0],
["optic_Hamr",0],
["optic_Holosight",0],
["optic_Holosight_smg",0],
["optic_SOS",0],
["optic_LRPS",0],
["optic_MRCO",0],
["optic_DMS",0],
["optic_NVS",0],
["acc_pointer_IR",0],
["acc_flashlight",0],
["optic_Yorris",0],["HandGrenade_Stone",0],
["Rangefinder",0],
["Binocular",0],
["ItemGPS",0],
["ToolKit",0],
["FirstAidKit",0],
["Medikit",0],
["NVGoggles",0],
["NVGoggles_OPFOR",0],
["ItemMap",0],
["ItemCompass",0],
["ItemWatch",0],
["DemoCharge_Remote_Mag",0],
["SLAMDirectionalMine_Wire_Mag",0],
["MineDetector",0],["5Rnd_127x108_Mag",0],
["5Rnd_127x108_APDS_Mag",0],
["150Rnd_762x51_Box",0],
["100Rnd_65x39_caseless_mag",0],
["7Rnd_408_Mag",0],
["20Rnd_762x51_Mag",0],
["30Rnd_45ACP_Mag_SMG_01",0],
["30Rnd_9x21_Mag",0],
["30Rnd_556x45_Stanag",0],
["20Rnd_762x51_Mag",0],
["30Rnd_65x39_caseless_green",0],
["16Rnd_9x21_Mag",0],
["6Rnd_45ACP_Cylinder",0],
["20Rnd_556x45_UW_mag",0],
["9Rnd_45ACP_Mag",0],
["11Rnd_45ACP_Mag",0],
["30Rnd_556x45_Stanag_Tracer_Red",0]
];
__CONST__(life_weapon_shop_array,life_weapon_shop_array);life_garage_prices =
[
["B_QuadBike_01_F",500],
["C_Hatchback_01_F",1000],
["C_Offroad_01_F",3000],
["B_G_Offroad_01_F",4000],
["C_SUV_01_F",5500],
["C_Van_01_transport_F",8000],
["C_Hatchback_01_sport_F",10000],
["C_Van_01_fuel_F",5000],
["I_Heli_Transport_02_F",15750],
["C_Kart_01_Blu_F",2500],
["C_Kart_01_Fuel_F",2500],
["C_Kart_01_Vrana_F",2500],
["C_Kart_01_Red_F",2500],
["C_Van_01_box_F",6000],
["I_Truck_02_transport_F",15000],
["I_Truck_02_covered_F",12500],
["B_Truck_01_transport_F",17500],
["B_Truck_01_box_F",35750],
["O_MRAP_02_F",50000],
["B_Heli_Light_01_F",15000],
["O_Heli_Light_02_unarmed_F",25000],
["C_Rubberboat",1000],
["C_Boat_Civil_01_F",5000],
["B_Boat_Transport_01_F",7500],
["C_Boat_Civil_01_police_F",8500],
["B_Boat_Armed_01_minigun_F",15000],
["B_SDV_01_F",30000],
["B_MRAP_01_F",15000],
["I_MRAP_03_F",60000],
["O_Heli_Light_02_F",15000],
["I_Heli_light_03_unarmed_F",15000],
["O_Truck_03_covered_F",15000],
["O_Truck_03_transport_F",20000],
["I_Truck_02_box_F",25000],
["O_Truck_03_device_F",60000],
["O_Heli_Transport_04_F",25000],
["B_Heli_Transport_03_F",10000],
["O_Heli_Transport_04_box_F",12000]
];
__CONST__(life_garage_prices,life_garage_prices);life_garage_sell =
[
["B_Quadbike_01_F",1000],
["C_Hatchback_01_F",4500],
["C_Offroad_01_F",6500],
["C_Kart_01_Blu_F",2500],
["C_Kart_01_Fuel_F",2500],
["C_Kart_01_Vrana_F",2500],
["C_Kart_01_Red_F",2500],
["B_G_Offroad_01_F",3500],
["C_SUV_01_F",15000],
["C_Van_01_transport_F",25000],
["C_Hatchback_01_sport_F",7500],
["C_Van_01_fuel_F",3850],
["I_Heli_Transport_02_F",125000],
["C_Van_01_box_F",35000],
["I_Truck_02_transport_F",49800],
["I_Truck_02_covered_F",25000],
["B_Truck_01_transport_F",135000],
["B_Truck_01_box_F",150000],
["O_MRAP_02_F",65000],
["B_Heli_Light_01_F",57000],
["O_Heli_Light_02_unarmed_F",72500],
["C_Rubberboat",950],
["C_Boat_Civil_01_F",6800],
["B_Boat_Transport_01_F",850],
["C_Boat_Civil_01_police_F",4950],
["B_Boat_Armed_01_minigun_F",21000],
["B_SDV_01_F",45000],
["B_MRAP_01_F",20000],
["I_MRAP_03_F",50000],
["O_Heli_Light_02_F",75000],
["I_Heli_light_03_unarmed_F",15000],
["O_Truck_03_transport_F",1000],
["O_Truck_03_covered_F",10],
["I_Truck_02_box_F",250000],
["O_Truck_03_device_F",200000],
["O_Heli_Transport_04_F",200000],
["B_Heli_Transport_03_F",10000],
["O_Heli_Transport_04_box_F",100000]
];
__CONST__(life_garage_sell,life_garage_sell);
Core/init.sqfSpoiler anzeigen
#include <macro.h>
/*
Master client initialization file
*/
life_firstSpawn = true;
life_session_completed = false;
private["_handle","_timeStamp"];
0 cutText["Setting up client, please wait...","BLACK FADED"];
0 cutFadeOut 9999999;
_timeStamp = diag_tickTime;
diag_log "------------------------------------------------------------------------------------------------------";
diag_log "--------------------------------- Starting Altis Life Client Init ----------------------------------";
diag_log "------------------------------------------------------------------------------------------------------";
waitUntil {!isNull player && player == player}; //Wait till the player is ready
[] call compile PreprocessFileLineNumbers "core\clientValidator.sqf";
//Setup initial client core functions
diag_log "::Life Client:: Initialization Variables";
[] call compile PreprocessFileLineNumbers "core\configuration.sqf";
diag_log "::Life Client:: Variables initialized";
diag_log "::Life Client:: Setting up Eventhandlers";
[] call life_fnc_setupEVH;
diag_log "::Life Client:: Eventhandlers completed";
diag_log "::Life Client:: Setting up user actions";
[] call life_fnc_setupActions;
diag_log "::Life Client:: User actions completed";
diag_log "::Life Client:: Waiting for server functions to transfer..";
waitUntil {(!isNil {TON_fnc_clientGangLeader})};
diag_log "::Life Client:: Received server functions.";
0 cutText ["Waiting for the server to be ready...","BLACK FADED"];
0 cutFadeOut 99999999;
diag_log "::Life Client:: Waiting for the server to be ready..";
waitUntil{!isNil "life_server_isReady"};
waitUntil{(life_server_isReady OR !isNil "life_server_extDB_notLoaded")};
if(!isNil "life_server_extDB_notLoaded") exitWith {
diag_log "::Life Client:: Server did not load [lexicon]extDB[/lexicon]";
999999 cutText ["The server-side extension [lexicon]extDB[/lexicon] was not loaded into the engine, report this to the server admin.","BLACK FADED"];
999999 cutFadeOut 99999999;
};
[] call SOCK_fnc_dataQuery;
waitUntil {life_session_completed};
0 cutText["Finishing client setup procedure","BLACK FADED"];
0 cutFadeOut 9999999;//diag_log "::Life Client:: Group Base Execution";
[] spawn life_fnc_escInterupt;switch (playerSide) do
{
case west:
{
_handle = [] spawn life_fnc_initCop;
waitUntil {scriptDone _handle};
};
case civilian:
{
//Initialize Civilian Settings
_handle = [] spawn life_fnc_initCiv;
waitUntil {scriptDone _handle};
};
case independent:
{
//Initialize Medics and blah
_handle = [] spawn life_fnc_initMedic;
waitUntil {scriptDone _handle};
};
};// Init automatically saving gear
[] spawn life_fnc_autoSave;player setVariable["restrained",false,true];
player setVariable["Escorting",false,true];
player setVariable["transporting",false,true];
player setVariable["missingOrgan",false,true];//sets variables to false on start
player setVariable["hasOrgan",false,true];
diag_log "Past Settings Init";
[] execFSM "core\fsm\client.fsm";
diag_log "Executing client.fsm";
waitUntil {!(isNull (findDisplay 46))};
diag_log "Display 46 Found";
(findDisplay 46) displayAddEventHandler ["KeyDown", "_this call life_fnc_keyHandler"];
player addRating 99999999;
diag_log "------------------------------------------------------------------------------------------------------";
diag_log format[" End of SealDrop Altis Life Client Init :: Total Execution Time %1 seconds ",(diag_tickTime) - _timeStamp];
diag_log "------------------------------------------------------------------------------------------------------";
life_sidechat = true;
[[player,life_sidechat,playerSide],"TON_fnc_managesc",false,false] spawn life_fnc_MP;
0 cutText ["","BLACK IN"];
[] call life_fnc_hudSetup;
LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler;
LIFE_ID_RevealObjects = ["LIFE_RevealObjects","onEachFrame","life_fnc_revealObjects"] call BIS_fnc_addStackedEventHandler;
[] call life_fnc_settingsInit;
player setVariable["steam64ID",getPlayerUID player];
player setVariable["realname",profileName,true];
life_fnc_moveIn = compileFinal
"
player moveInCargo (_this select 0);
";// Get rid of the damn Fog, fast fix
[] spawn {
while {true} do {
uiSleep 600;
60 setFog 0;
};
};life_fnc_garageRefund = compileFinal
"
_price = _this select 0;
_unit = _this select 1;
if(_unit != player) exitWith {};
life_atmcash = life_atmcash + _price;
";[] execVM "core\init_survival.sqf";
[] execVM "core\initHTB.sqf";__CONST__(life_paycheck,life_paycheck); //Make the paycheck static.
player enableFatigue (__GETC__(life_enableFatigue));
init.sqfSpoiler anzeigen
enableSaving [false, false];
enableEnvironment false;X_Server = false;
X_Client = false;
X_JIP = false;
StartProgress = false;if(!isDedicated) then { X_Client = true;};
//Exec Scripts and more...
life_versionInfo = "Altis Life RPG";
[] execVM "briefing.sqf"; //Load Briefing
[] execVM "KRON_Strings.sqf"; //Load the Server Strings
[] execVM "script\fastrope.sqf"; //Load Fastrope
[] execVM "script\teargas.sqf"; //Load Teargas Script for Cops
[] execVM "script\savezone.sqf"; //Load the Savezones
[] execVM "script\fn_statusBar.sqf"; //Load the Statusbar[] spawn {
while{true} do {
uiSleep 10;
200 setFog 0;
uiSleep 590;
};
};
[] spawn {
while{true} do {
uiSleep 10;
200 setRain 0;
uiSleep 590;
};
};
//Performance
setTerrainGrid 40;
setViewDistance 1000;
setObjectViewDistance [800,50];MAC_fnc_switchMove = {
private["_object","_anim"];
_object = _this select 0;
_anim = _this select 1;
_object switchMove _anim;
};if(isDedicated && isNil("life_ATMhacked")) then
{
life_ATMhacked = 0;
publicVariable "life_ATMhacked";
diag_log format["life_ATMhacked: %1",life_ATMhacked];
}; -
Bzw. Hau doch bitte mal hier rein:
- core\configuration.sqf
- core\init.sqf
- init.sqf
- functions.h
Functions.h
[spoiler][class Socket_Reciever
{
tag = "SOCK";
class SQL_Socket
{
file = "core\session";
class requestReceived {};
class dataQuery {};
class insertPlayerInfo {};
class updateRequest {};
class syncData {};
class updatePartial {};
};
};class Life_Client_Core
{
tag = "life";class Master_Directory
{
file = "core";
class setupActions {};
class setupEVH {};
class initCiv {};
class initCop {};
class initMedic {};
class welcomeNotification {};
};class MiniGames
{
file = "core\minigames";
class bootVerleih {};
};class Admin
{
file = "core\admin";
class admininfo {};
class adminid {};
class admingetID {};
class adminMenu {};
class supportMenu {};
class adminQuery {};
class adminSpectate {};
class adminTeleport {};
class adminTpHere {};
class supportQuery {};
class supportInfo {};
};class anstrich
{
file = "core\repaint";
class repaintMenu {};
class repaintColor {};
class repaintVehicle {};
};class economy
{
file = "core\economy";
class virt_updatePrice {};
class addsubstract {};
class openEconomy {};
class virt_updateEconomy {};
};class Medical_System
{
file = "core\medical";
class onPlayerKilled {};
class onPlayerRespawn {};
class respawned {};
class revivePlayer {};
class revived {};
class medicMarkers {};
class requestMedic {};
class medicRequest {};
class deathScreen {};
class medicLoadout {};
class medicLights {};
class medicSiren {};
class resetMedic {};
};class Actions
{
file = "core\actions";
class buyLicense {};
class chemlightUse {};
class heal {};
class gather {};
class healHospital {};
class pushVehicle {};
class repairTruck {};
class serviceChopper {};
class serviceTruck {};
class catchFish {};
class catchTurtle {};
class dpFinish {};
class dropFishingNet {};
class getDPMission {};
class postBail {};
class processAction {};
class sellOil {};
class suicideBomb {};
class arrestAction {};
class escortAction {};
class impoundAction {};
class pulloutAction {};
class putInCar {};
class stopEscorting {};
class restrainAction {};
class searchAction {};
class searchVehAction {};
class unrestrain {};
class pickupItem {};
class pickupMoney {};
class ticketAction {};
class pumpRepair {};
class packupSpikes {};
class storeVehicle {};
class robAction {};
class sellTurtle {};
class sellGoldBars {};
class captureHideout {};
class surrender {};
class removeWeaponAction{};
class packupmauer {};
class processActionDual {};
class processActionLsd {};
class takeOrgans {};
class sitDown {};
class robShops {};
class craftAction {};
class blackjack {};
};class Special
{
file = "core\special";
class openEmpMenu {};
class isEmpOperator {};
class scanVehicles {};
class warnVehicle {};
class empVehicle {};
class vehicleWarned {};
class vehicleEmpd {};
};class Housing
{
file = "core\housing";
class buyHouse {};
class getBuildingPositions {};
class houseMenu {};
class lightHouse {};
class lightHouseAction {};
class sellHouse {};
class initHouses {};
class copBreakDoor {};
class raidHouse {};
class lockupHouse {};
class copHouseOwner {};
class lockHouse {};
};class Config
{
file = "core\config";
class licensePrice {};
class vehicleColorCfg {};
class vehicleColorStr {};
class vehicleListCfg {};
class licenseType {};
class eatFood {};
class varHandle {};
class varToStr {};
class impoundPrice {};
class itemWeight {};
class taxRate {};
class virt_shops {};
class vehShopLicenses {};
class vehicleAnimate {};
class weaponShopCfg {};
class vehicleWeightCfg {};
class houseConfig {};
class craftCfg {};//Clothing Store Configs
class clothing_cop {};
class clothing_bruce {};
class clothing_reb {};
class clothing_dive {};
class clothing_medic {};
class clothing_donator {};
};class Player_Menu
{
file = "core\pmenu";
class wantedList {};
class wantedInfo {};
class wantedMenu {};
class pardon {};
class giveItem {};
class giveMoney {};
class p_openMenu {};
class p_updateMenu {};
class removeItem {};
class useItem {};
class cellphone {};
class keyMenu {};
class keyGive {};
class keyDrop {};
class s_onSliderChange {};
class updateViewDistance {};
class settingsMenu {};
class settingsInit {};
class wantedadd2 {};
class wanted2 {};
class smartphone {};
class newMsg {};
class showMsg {};
class revokeLicense {};
class craft {};
class craft_update {};
};class Functions
{
file = "core\functions";
class calWeightDiff {};
class fetchCfgDetails {};
class handleInv {};
class hudSetup {};
class hudUpdate {};
class tazeSound {};
class animSync {};
class simDisable {};
class keyHandler {};
class dropItems {};
class handleDamage {};
class numberText {};
class handleItem {};
class accType {};
class receiveItem {};
class giveDiff {};
class receiveMoney {};
class playerTags {};
class clearVehicleAmmo {};
class pulloutVeh {};
class nearUnits {};
class actionKeyHandler {};
class playerCount {};
class fetchDeadGear {};
class loadDeadGear {};
class isnumeric {};
class escInterupt {};
class onTakeItem {};
class fetchVehInfo {};
class pushObject {};
class onFired {};
class revealObjects {};
class nearestDoor {};
class inventoryClosed {};
class inventoryOpened {};
class isUIDActive {};
class callCellPhone {};
class UnlockCarSound {};
class LockCarSound {};
class stripDownPlayer {};
class saveGear {};
class loadGear {};
class autoSave {};
class emptyFuel {};
class fatigueReset {};
class introCam {};
class fadeSound {};
};class Network
{
file = "core\functions\network";
class broadcast {};
class MP {};
class MPexec {};
class netSetVar {};
class corpse {};
class jumpFnc {};
class soundDevice {};
class setFuel {};
class setTexture {};
class say3D {};
};class Civilian
{
file = "core\civilian";
class jailMe {};
class jail {};
class tazed {};
class knockedOut {};
class knockoutAction {};
class robReceive {};
class robPerson {};
class removeLicenses {};
class demoChargeTimer {};
class civInteractionMenu {};
class removeWeapons {};
class civLoadout {};
class hasOrgan {};
};class Vehicle
{
file = "core\vehicle";
class colorVehicle {};
class openInventory {};
class lockVehicle {};
class vehicleOwners {};
class vehStoreItem {};
class vehTakeItem {};
class vehInventory {};
class vInteractionMenu {};
class vehicleWeight {};
class deviceMine {};
class addVehicle2Chain {};
};class Cop
{
file = "core\cop";
class copMarkers {};
class copLights {};
class vehInvSearch {};
class copSearch {};
class bountyReceive {};
class searchClient {};
class restrain {};
class ticketGive {};
class ticketPay {};
class ticketPrompt {};
class copSiren {};
class spikeStripEffect {};
class radar {};
class questionDealer {};
class copInteractionMenu {};
class sirenLights {};
class licenseCheck {};
class licensesRead {};
class repairDoor {};
class doorAnimate {};
class fedCamDisplay {};
class copLoadout {};
class breathalyzer {};
class copSiren2 {};
class ticketPaid {};
class copEnter {};
class copOpener {};
class radarCam {};
class showArrestDialog {};
class arrestDialog_Arrest {};
};class Gangs
{
file = "core\gangs";
class initGang {};
class createGang {};
class gangCreated {};
class gangMenu {};
class gangKick {};
class gangLeave {};
class gangNewLeader {};
class gangUpgrade {};
class gangInvitePlayer {};
class gangInvite {};
class gangDisband {};
class gangDisbanded {};
class gangMarkers {};
};class Shops
{
file = "core\shops";
class atmMenu {};
class buyClothes {};
class changeClothes {};
class clothingMenu {};
class clothingFilter {};
class vehicleShopMenu {};
class vehicleShopLBChange {};
class vehicleShopBuy {};
class weaponShopFilter {};
class weaponShopMenu {};
class weaponShopSelection {};
class weaponShopBuySell {};
class virt_buy {};
class virt_menu {};
class virt_update {};
class virt_sell {};
class chopShopMenu {};
class chopShopSelection {};
class chopShopSell {};
class licenses {};
class slotmachine {};
class slotSpin {};
};class Items
{
file = "core\items";
class pickaxeUse {};
class lockpick {};
class spikeStrip {};
class jerryRefuel {};
class flashbang {};
class boltcutter {};
class blastingCharge {};
class defuseKit {};
class storageBox {};
class mauer {};
class drinkbeer {};
class drinkmoonshine {};
class drinkwhiskey {};
class useHeroin {};
class useKokain {};
class useMarihuana {};
class weedSmoke {};
};class Dialog_Controls
{
file = "dialog\function";
class setMapPosition {};
class displayHandler {};
class spawnConfirm {};
class spawnMenu {};
class spawnPointCfg {};
class spawnPointSelected {};
class progressBar {};
class impoundMenu {};
class unimpound {};
class sellGarage {};
class bankDeposit {};
class bankWithdraw {};
class bankTransfer {};
class garageLBChange {};
class safeInventory {};
class safeOpen {};
class safeTake {};
class safeFix {};
class vehicleGarage {};
class gangDeposit {};
};
class Auktionshaus
{
file = "core\Auktionshaus";
class CAH_Sell {};
class CAH_Buy {};
class CAH_reciever {};
class CAH_getPlayerObj {};
class CAH_loadOffers {};
class CAH_loadInventory {};
class CAH_fetchDetails {};
class CAH_loggedIn {};
};
class Ausweis
{
file = "script\Ausweis";
class Lizenzsehen {};
class Lizenzzeigen {};
};
class hacking
{
file = "core\HackTheBank";
class hackthebank {};
class fedCamHacked {};
class lappi {};
class packupLappi {};
class randomRound {};
};
};/spoiler]
-
Der Letzte Spoiler ist ein wenig buggy aber, gehört das da so hin?
class packupLappi {};class randomRound {};[color=#FF0000][b]};};[/b][/color]
-
Der Letzte Spoiler ist ein wenig buggy aber, gehört das da so hin?
class packupLappi {};
class randomRound {};
[color=#FF0000][b]};
};[/b][/color]um Es Besser Zur Sehen.
-
Was genau meint ihr mit "gehört das da so hin?"In der functions.h wird eine neue Class erstellt, so wie ich es geschrieben habe.
Jedoch würde ein Fehler dort, nicht dazu führen, das der Laptop im Markt nicht erscheint.
Eher dazu, dass das Script nicht richtig läuft, oder im schlimmsten fall mehrere scripte.Wie 'DerOnkel' schon sagte, "config, varhandle, vartostr, virtshop und ggf, itemweight her"
Es ist ein z-Item welches im Shop nicht angezeigt wird.
Allerdings scheinen deine Zeilen korrekt zu sein. (nach erster Begutachtung - keine typo etc.)Leider habe ich derzeit keinen Server installiert, um mir deinen Fehler genauer anzusehen.
Was ich dir (allerdings erst am Wochenende) anbieten könnte, wäre eine Teamviewer Sitzung, dann schaue ich mir dies genauer an.
Ist dir aber überlassen.
Falls du den Fehler vorher findest, solltest du aber deinen Lösungsweg posten, für diejenigen, die evtll den selben Fehler haben. -
Würdest du dir das ende von seiner Function.h in dem Spoiler anschauen würdest du sehen das die Syntax ein wenig Verschwunden ist was mich kirre gemacht hat daher die Frage. aber egal. BTT bitte.
-
Hi, erstmal möchte ich sagen das dies ein top Script ist! Nun aber eine kleine frage, ich habe beim Markt keinen Laptop. Bin noch ein paar male die Anleitung durchgegangen aber habe nichts gefunden. Könnte mir da wer helfen?
-
schau mal auf Seite 3, da wurde es noch einmal genau erklärt.
-
Okay danke, aber hat mir jetzt auch nicht wirklich geholfen. Ich habe den "lappi" jetzt "Laptop" genannt aber mehr finde ich jetzt auch nicht wieso es nicht erscheint. Am Ende von Seite 3, steht ja von stolzerrabe ob wer vllt die Lösung posten könnte wenn wer den Fehler behoben hat. Also hat ihn denke ich keiner behoben was ich eig. schade finde
-
zeig mal deine core/config/fn_virtShops.sqf
-
zeig mal deine core/config/fn_virtShops.sqf
Spoiler anzeigen
/*
File: fn_virt_shops.sqf
Author: Bryan "Tonic" Boardwine
Description:
Config for virtual shops.
*/
private["_shop"];
_shop = _this select 0;switch (_shop) do
{
case "market": {["Markt",["water","rabbit","apple","storagebig","wine","storagesmall","bottledbeer","bottledwhiskey","redgull","battery","tbacon","lockpick","pickaxe","zipties","peach","boltcutter","blastingcharge","henraw","roosterraw","goatraw","sheepraw","rabbitraw","laptop"]]};
case "rebel": {["Rebel Market",["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","boltcutter","blastingcharge"]]};
case "gang": {["Gang Market", ["water","rabbit","apple","redgull","tbacon","lockpick","pickaxe","fuelF","peach","blastingcharge","boltcutter"]]};
case "wongs": {["Wong's Food Cart",["turtlesoup","turtle","moonshine"]]};
case "coffee": {["Stratis Coffee Club",["coffee","donuts"]]};
case "heroin": {["Drug Dealer",["cocainep","heroinp","marijuana","methp"]]};
case "fishmarket": {["Altis Fish Market",["salema","ornate","mackerel","mullet","tuna","catshark"]]};
case "glass": {["Altis Glass Dealer",["glass"]]};
case "iron": {["Altis Industrial Trader",["iron_r","copper_r"]]};
case "diamond": {["Diamond Dealer",["diamond","diamondc"]]};
case "salt": {["Salt Dealer",["salt_r"]]};
case "cop": {["Cop Item Shop",["donuts","coffee","spikeStrip","mauer","battery","painkillers","redgull","defusekit"]]};
case "cement": {["Cement Dealer",["cement"]]};
case "beer": {["Schnaps Laden",["wine"]]};
case "pharmacy": {["Apotheke",["painkillers","morphium","scalpel","kidney"]]};
case "medic": {["Arztbedarf",["apple","donuts","coffee","battery","redgull","fuelF"]]};
case "speakeasy": {["Speakeasy's",["bottledbeer","bottledwhiskey","bottledshine"]]};
case "bar": {["The Lounge",["bottles","cornmeal"]]};
case "uranium": {["Marchand Uranium",["uranium","puranium"]]};
}; -