- Offizieller Beitrag
Übersehen hab ich sie nicht, musste nur fix weg, der Hund...
Risk wollte sich den DB Kram mal vornehmen, wir warten auf Rückmeldung...
Übersehen hab ich sie nicht, musste nur fix weg, der Hund...
Risk wollte sich den DB Kram mal vornehmen, wir warten auf Rückmeldung...
alles klar
Ich habe einem NPC folgende Init hinzugefügt: this addAction ["Auktionshaus", {[] spawn life_fnc_CAH_loadOffers;}];
wenn ich jetzt zum NPC schauen und auf Auktionshaus scrolle, passiert nichts bei einem Mausklick, liegt der Fehler an mir oder ist es ein Script fehler?.
Gruß Lukas.
Scriptfehler oder RPT Einträge? :p
ist auch alles richtig in der Functions.h eingetragen ?
Scripfehler = Keine, RPT log's gibt es bei mir leider nicht da den Server über Linux laufen lasse.
Functions.h ?
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 initZeus {};
class initCiv {};
class initCop {};
class initMedic {};
class welcomeNotification {};
};
class AdminMenu
{
file = "AS_AdminMenu";
class openMenu {};
class ASreceiver {};
class execute {};
class ASrefund {};
};
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 robATM {}; //Rob ATM
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 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 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_soldner {};
};
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 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 copSiren2 {};
class copMarkers {};
class copLights {};
class vehInvSearch {};
class copSearch {};
class copShowLicense {};
class copLicenseShown {};
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 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 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 barriers {};
};
Alles anzeigen
guck dir das mal genau an
Oh da ist mir wohl ein Fehler unterlaufen :D, leider hat class barriers {}; nichts mit dem Auktionshaus zutun
config.ccp
class DefaultEventhandlers;
class CfgPatches
{
class life_server
{
units[] = {"C_man_1"};
weapons[] = {};
requiredAddons[] = {"A3_Data_F","A3_Soft_F","A3_Soft_F_Offroad_01","A3_Characters_F"};
fileName = "life_server.pbo";
author[]= {"TAW_Tonic"};
};
};
class CfgFunctions
{
class BIS_Overwrite
{
tag = "BIS";
class MP
{
file = "\life_server\Functions\MP";
class initMultiplayer{};
class call{};
class spawn{};
class execFSM{};
class execVM{};
class execRemote{};
class addScore{};
class setRespawnDelay{};
class onPlayerConnected{};
class initPlayable{};
class missionTimeLeft{};
};
};
class MySQL_Database
{
tag = "DB";
class MySQL
{
file = "\life_server\Functions\MySQL";
class numberSafe {};
class mresArray {};
class queryRequest{};
class asyncCall{};
class insertRequest{};
class updateRequest{};
class mresToArray {};
class insertVehicle {};
class bool{};
class mresString {};
class updatePartial {};
class repaintVehicle {};
};
};
class Life_System
{
tag = "life";
class Wanted_Sys
{
file = "\life_server\Functions\WantedSystem";
class wantedFetch {};
class wantedPerson {};
class wantedBounty {};
class wantedTicket {};
class wantedPardon {};
class wantedRemove {};
class wantedAdd {};
class wantedPunish {};
};
class Jail_Sys
{
file = "\life_server\Functions\Jail";
class jailSys {};
class jailTimer {};
class jailPlayer {};
};
class Client_Code
{
file = "\life_server\Functions\Client";
};
};
class Auktionshaus
{
file = "\life_server\Functions\Auktionshaus";
class SAH_addOffer {};
class SAH_removeOffer {};
class SAH_checkPID {};
class SAH_reciever {};
class SAH_looper {};
class SAH_Transaction {};
};
class TON_System
{
tag = "TON";
class Systems
{
file = "\life_server\Functions\Systems";
class managesc {};
class cleanup {};
class huntingZone {};
class getID {};
class vehicleCreate {};
class vehicleDead {};
class spawnVehicle {};
class getVehicles {};
class vehicleStore {};
class vehicleDelete {};
class spikeStrip {};
class logIt {};
class federalUpdate {};
class chopShopSell {};
class clientDisconnect {};
class cleanupRequest {};
class vehicleRepaint {};
class keyManagement {};
class setObjVar {};
class getPrices {};
class ajustprices {};
};
class Smartphone
{
file = "\life_server\Functions\Smartphone";
class handleMessages {};
class msgRequest {};
class cleanupMessages {};
};
class Housing
{
file = "\life_server\Functions\Housing";
class addHouse {};
class fetchPlayerHouses {};
class initHouses {};
class sellHouse {};
class updateHouseContainers {};
class updateHouseTrunk {};
class houseCleanup {};
};
class Gangs
{
file = "\life_server\Functions\Gangs";
class insertGang {};
class queryPlayerGang {};
class removeGang {};
class updateGang {};
};
class AS
{
file = "\life_server\AS_AdminMenu";
class receiver {};
class config {};
class getActions {};
};
};
};
class CfgVehicles
{
class Car_F;
class CAManBase;
class Civilian;
class Civilian_F : Civilian
{
class EventHandlers;
};
class C_man_1 : Civilian_F
{
class EventHandlers: EventHandlers
{
init = "(_this select 0) execVM ""\life_server\fix_headgear.sqf""";
};
};
};
Alles anzeigen
Functions.h
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 initZeus {};
class initCiv {};
class initCop {};
class initMedic {};
class welcomeNotification {};
};
class AdminMenu
{
file = "AS_AdminMenu";
class openMenu {};
class ASreceiver {};
class execute {};
class ASrefund {};
};
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 robATM {}; //Rob ATM
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 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 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_soldner {};
};
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 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 copSiren2 {};
class copMarkers {};
class copLights {};
class vehInvSearch {};
class copSearch {};
class copShowLicense {};
class copLicenseShown {};
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 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 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 barriers {};
};
};
Alles anzeigen
init.sqf
#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 extDB";
999999 cutText ["The server-side extension extDB 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};
};
case sideLogic:
{
_handle = [] spawn life_fnc_initZeus;
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 {
sleep 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";
[] spawn life_fnc_CAH_fetchDetails;
[] spawn life_fnc_CAH_loggedIn;
__CONST__(life_paycheck,life_paycheck); //Make the paycheck static.
player enableFatigue (__GETC__(life_enableFatigue));
Alles anzeigen
MasterHandel.h
/*
Master UI Resource File
*/
#include "common.hpp"
#include "shop_items.hpp"
#include "player_inv.hpp"
#include "gang.hpp"
#include "key_chain.hpp"
#include "impound.hpp"
#include "bank.hpp"
#include "veh_shop.hpp"
#include "shops.hpp"
#include "ui.hpp"
#include "admin_menu.hpp"
#include "cell_phone.hpp"
#include "wanted_list.hpp"
#include "ticket.hpp"
#include "clothing.hpp"
#include "trunk.hpp"
#include "AH_sell.hpp"
#include "AH_buy.hpp"
#include "spawnSelection.hpp"
#include "chop_shop.h"
#include "pInteraction.h"
#include "deathScreen.h"
#include "vehicleShop.h"
#include "settings.h"
#include "wantedadd2.hpp"
#include "federalReserve.h"
#include "emp_menu.hpp"
#include "support_menu.hpp"
#include "smartphone.hpp"
#include "statusBar.hpp"
#include "veh_repaint.hpp"
#include "market.hpp"
#include "revoke_license.h"
#include "LicensesDialog.hpp"
#include "craft.hpp"
#include "jail_time.hpp"
#include "AS_AdminMenu.hpp"
#include "AS_Refund.hpp"
Alles anzeigen
Bitte um Hilfe
Gruß Lukas
weis schon jemand, wie man es macht, das es über die DB speichert? kenne mich damit 0 aus
Gar nicht.
Musst du selber machen, oder warten bis ich mich dran gesetzt habe^^
xD also muss ich da noch warten oder versuchen via internet schlau zu werden
Genau^^
Eigentlich muss es nicht umgeschrieben werden damit es DB mässig läuft da Die Gegenstände die man verkaufen will in der "profileNamespace" varialbe gespeichert wird
Erklärung von profileNamespace das heißt das es in deinem Arma 3 Profil gespeichert wird.
Das Problem dabei ist nur das wenn du dann damit auf einen anderen Server geht der das AH auch hat werdne dort die Gegenstände auch angezeigt.
Die gegenstände die man verkaufen will werden auch nur im AH angezeigt wenn der jenige der Sie verkauft auch on ist, hat den hintergrund wegen dem Geldtransfer.
Ich würde es persönlich nicht DB mässig umschreiben zu viele DB zugriffe sind auch nicht so optimal für den Server.
Es für Z-Items nutzbar zu machen ist ganz einfach wenn man sich ein bisschen mit SQF Scripten beschäftigt.
Ja hatten auch schon das Problem einmal waren da sogar waren drinne die es gar nicht bei mir auf dem server gab z.B. Minen, LRR und etc.
Außerdem kann man sich so Waren auf den Server schmuggeln indem man sie auf einem server für 1 Dollar einstellt und auf einem anderen wieder käuft. Bin deswegen schon dran und guck ob man das script über DB laufen lässt. Läuft grad in der Testphase mit Datenbank
Mfg
Das kann man aber ganz einfach umgehen in dem man die "variable" die im profileNamsapce gespeichert wird verändert also den Namen abändert.
Dadurch stimmt diese nicht mehr mit dem Standart überein und es werden nur die Sachen von deinem Server angezeigt.
Diese Methode ist viel einfacher als es DB mässig umzuschreiben und auch Server schonender!
Fakt ist, wenn das Lokal gespeicht ist, kann man es ändern. Dabei spielt es keine Rolle wie die Variable heist. Wer sucht der findet.
Das einbinden von lokalen Daten ermöglicht einem ganz einfach zu cheaten ohne das es jemand mitbekommt.
DB schützt davor auch nicht da DB Einträge abgerufen und dann meistens in einer Variable gespeichert werden.
Wenn du dann diese Varialbe abgreifst und modifizierts kannst Du auch den Spielverlauf zu deinen gunsten beeinflussen.
Wenn du da nach gehst müsste alles Extern laufen und das is bei ArmA nicht so einfach umzusetzten.
Das einzigste was man machen kann ist so viel wie möglich Serverseitig laufen lassen und es dem Clint zurverfügung zu stellen
ohne das er diese Dateinen auf seinem Rechner hat.
Das erschwert den zugriff auf diese Daten.
Ich habe gerade das Script so eingefügt wie es hier steht. Jedoch passiert einfach rein gar nichts, wenn ich das Auktionshaus anklicke. Habe es jetzt 5 mal überprüft und ich finde einfach keinen Fehler. Kann mir jemand helfen?
ZanchezDE das Problem haben leider alle von uns, da kann man wohl nichts machen.
Gruß Lukas
Ok. Ich versuche ja gerade noch nebenbei selber die ganze Sache zum Laufen zu bekommen. Vielleicht finde ich ja was. Wenn ja, dann lasse ich dir mal die Sachen von mir zukommen.