Jump to content

KoTaS

Member
  • Posts

    80
  • Joined

  • Last visited

Posts posted by KoTaS

  1. Iam glad you found even more solutions for fellow server owners :)

    This one is my check_wallet.sqf and its modded for my server, but what it does is check in dead player body / Dead AI's for coins and if it has 0 coins it will give "Wallet is empty" message and exits the further script code so he wont bug coins with 0 again as mentioned in this topic with AI's

    Spoiler
    
    private ["_body", "_hisMoney", "_myMoney"];
    
    _body = _this select 3;
    _walletCheck = _body getVariable ["cashMoney",0];
    _PlayerNear = _body call dze_isnearest_player;
    
    if (_walletCheck == 0) exitWith {cutText ["Wallet is empty.", "PLAIN DOWN"];};
    if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]};
    
    _name = _body getVariable ["bodyName","unknown"];
    _hisMoney = _body getVariable ["cashMoney",0];
    _myMoney = player getVariable ["cashMoney",0];
    _myMoney = _myMoney + _hisMoney;
    _body setVariable ["cashMoney", 0 , true];
    
    player setVariable ["cashMoney", _myMoney , true];
    
    systemChat format ['You took %1 Credits, From: %2 !',_hisMoney,_name];
    sleep 2;
    
    _cid =	player getVariable ["CharacterID","0"];
    _cashMoney = player getVariable ["cashMoney",0];
    
    if(_cashMoney > 0) then{
    
    } else {
    
    _cashMoney = 0;
    
    };

     

     

     

  2. Have dirty fix for all this :)

    fn_selfActions.sqf - Find following:

    if (_isMan && !_isZombie && !_isAnimal) then {
    			_player_studybody = true;
    		}

    Replace to this:

    
    if (_isMan && !_isZombie && !_isAnimal && _ownerID != "0") then {
    			_player_studybody = true;
    		}

    And this is my check_wallet.sqf

    private ["_body", "_hisMoney", "_myMoney", "_killsH", "_test2", "_headShots", "_test","_playeridke","_humanity"];
    
    _body = _this select 3;
    _walletCheck = _body getVariable ["cashMoney",0];
    _PlayerNear = _body call dze_isnearest_player;
    
    if (_walletCheck == 0) exitWith {cutText [format["Wallet is empty."], "PLAIN DOWN"]};
    if (_PlayerNear) exitWith {cutText [localize "str_pickup_limit_4", "PLAIN DOWN"]};
    
    _name = _body getVariable ["bodyName","unknown"];
    _hisMoney = _body getVariable ["cashMoney",0];
    _myMoney = player getVariable ["cashMoney",0];
    _myMoney = _myMoney + _hisMoney;
    _body setVariable ["cashMoney", 0 , true];
    
    player setVariable ["cashMoney", _myMoney , true];
    
    systemChat format ['You took %1 Credits, From: %2 !',_hisMoney,_name];
    sleep 2;
    
    _cid =	player getVariable ["CharacterID","0"];
    _cashMoney = player getVariable ["cashMoney",0];
    
    if(_cashMoney > 0) then{
    
    } else {
    
    _cashMoney = 0;
    
    };

     

  3.  

    Yes, I certainly did.

     

    You need to add those filters to line 5. This one:

    5 "PVDZE_" !"PVDZE_player" !="PVDZE_send" !="PVDZE_log_lockUnlock" !="PVDZE_Server_Simulation" !="PVDZE_veh_Update" !="PVDZE_plr_GutBody" !="PVDZE_plr_GutBodyZ" !="PVDZE_veh_Lock" !="PVDZE_plr_DeathB" !="PVDZE_maintainArea" !="PVDZE_obj_Publish" !="PVDZE_obj_Swap" !="PVDZE_plr_Save" !="PVDZE_obj_Delete" !="PVDZE_obj_Trade" !="PVDZE_veh_Publish2" !="PVDZE_zed_Spawn" !="PVDZE_plr_Died" !="PVDZE_plr_TradeMenu" !="PVDZE_veh_Upgrade" !="PVDZE_atp" !="PVDZE_plr_Login" !="PVDZE_plr_Login2" !="PVDZE_plr_LoginRecord" !="PVDZE_plr_DeathBResult" !="PVDZE_veh_SFix" !="PVDZE_plr_Hit" !="PVDZE_plr_HitV" !="PVDZE_veh_SFuel" !="PVDZE_plr_HideBody" !="PVDZE_plr_Morph" !="PVDZE_veh_Publish" !="PVDZE_plr_Characters" !="PVDZE_lockVault" !="PVDZE_obj_setlocalVars" !="PVDZE_obj_getlocalVars" !="PVDZE_bank_Save"
    

     

     

    Bummer, and why i did read PVDZE_ in front of storeVehicle

     

    Working like a charm

  4. Iam try to add them filters at the end, and tell you the results

     

    Edit: Still kicks from server

    #3 "PVDZE_queryGarageVehicle" = [<NULL-object>]

    Here is my entire file

     

    //new
    5 "" !="currentInvites" !"cad_pvar_s" !="axeLampObjects" !="dayzHeliEvac" !="HCrequest_spawnRCV" !="HCsignalRCV" !="HCsignal" !="HClist" !="HCdo_spawn" !="HCrequest_spawn" !="clothesTaken" !="PVOZ_EPOCH_SAFEZONE" !="customRemoteMessage" !="DZAI_SMS" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="norrinRAlie" !="BIS_effects_gepv" !="dayzPlayerLogin" !="dayzPlayerLogin2" !"PVAHR_" !="PVAH_AdminReq" !="PVAH_WriteLogReq" !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle" 
    5 "norrn" !="norrnRACarUp" !="norrnRAPicUp" !="norrnRaDrag" !="norrnR180" !="norrnRalie" !="norrnRLact" !="norrnRALW" !="norrnRDead"
    5 "usec" !="usecMorphine" !="usecBandage" !="usecBleed"
    5 "PVDZE_" !"PVDZE_player" !="PVDZE_send" !="PVDZE_log_lockUnlock" !="PVDZE_Server_Simulation" !="PVDZE_veh_Update" !="PVDZE_plr_GutBody" !="PVDZE_plr_GutBodyZ" !="PVDZE_veh_Lock" !="PVDZE_plr_DeathB" !="PVDZE_maintainArea" !="PVDZE_obj_Publish" !="PVDZE_obj_Swap" !="PVDZE_plr_Save" !="PVDZE_obj_Delete" !="PVDZE_obj_Trade" !="PVDZE_veh_Publish2" !="PVDZE_zed_Spawn" !="PVDZE_plr_Died" !="PVDZE_plr_TradeMenu" !="PVDZE_veh_Upgrade" !="PVDZE_atp" !="PVDZE_plr_Login" !="PVDZE_plr_Login2" !="PVDZE_plr_LoginRecord" !="PVDZE_plr_DeathBResult" !="PVDZE_veh_SFix" !="PVDZE_plr_Hit" !="PVDZE_plr_HitV" !="PVDZE_veh_SFuel" !="PVDZE_plr_HideBody" !="PVDZE_plr_Morph" !="PVDZE_veh_Publish" !="PVDZE_plr_Characters" !="PVDZE_lockVault" !="PVDZE_obj_setlocalVars" !="PVDZE_obj_getlocalVars" !="PVDZE_bank_Save"
    5 "PVAHR_" !"PVAHR_0_"
    1 "PVAH"
    5 "remExFP" !="\"remExFP\" = \[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]" !"\[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]"
    5="player"
    5="server"
    5 "fnc_plyrHit"
    5 "AntiHack"
  5. instead of making a new line, add it to the end of the firs filter like this

     

    5 "" !="owner_B1" !="owner_B2" !="owner_B3" !="owner_H1" !="owner_H2" !="owner_H3" !="owner_SG" !="owner_LG" !="owner_KING" !="owner_SH" !="OriginsLockUnlock" !"admin_Log" "!"axeLampObjects" !"currentInvites" !"DZE_WMOD_INVENTORY" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !"cad_pvar_s" !="drn_AskServerDynamicWeatherEventArgs" !="BIS_effects_gepv" !="PVDZ_Server_Simulation" !="PVDZE_spawnEvent" !="PVDZE_spawnEvent" !="toClient" !="usageLogger" !="useBroadcaster" !="baseExporter" !="getPlayerName" !="diagLogr" !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle" 

     

     

    This is how its looks the first line of mine

    //new
    5 "" !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle" !="currentInvites" !"cad_pvar_s" !="axeLampObjects" !="dayzHeliEvac" !="HCrequest_spawnRCV" !="HCsignalRCV" !="HCsignal" !="HClist" !="HCdo_spawn" !="HCrequest_spawn" !="clothesTaken" !="PVOZ_EPOCH_SAFEZONE" !="customRemoteMessage" !="DZAI_SMS" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="norrinRAlie" !="BIS_effects_gepv" !="dayzPlayerLogin" !="dayzPlayerLogin2" !"PVAHR_" !="PVAH_AdminReq" !="PVAH_WriteLogReq"
  6. Encounter another issues, when selling any vehicle key do not delete from toolbelt, also vehicle deletes, but where the vehicle was parked before sale you get options for it on scroll menu.

     

    Also, there is some major delays for buying vehicles and for any items, red arrow stays for some seconds, and then vehicle spawns, or other times don't spawn at all, but appears after server restart.

     

    Iam very noob on this coin system, before had regular epoch currency and never had such issues, now then there is no MySQL Traders only .hpp problems appears such stated above. 

     

    Thanks for your time and reading my post, hope understand the problem ill be very happy if some one comes up with some solutions.

  7.  

    Is anyone getting kick from server for trying to access virtual garage?

    Did added these in to publicvariable.txt

    //new
    5 "" !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle"
     
    But still kicks from server
    #3 "PVDZE_queryGarageVehicle" = [<NULL-object>]

     

     

     

    Anyone, got solution for this?

  8. Has this code in player_storeVehicle.sqf

    _added = false;if (!_wogear) then {
    _added = [player, Pricegear] call SC_fnc_removeCoins;
    } else {_added = true;};
    Pricegear = nil;
    
    
    if(!_added) exitWith {cutText ["You don't have enough money.", "PLAIN DOWN"];};

    But this is used for Coins System, and iam not using coins, so some how must rewrite this to use golds from epoch

  9. I still dont get it, how do you build a garage? What file from mission side activate the build? Please anyone  :unsure:

     

    Or you have to use these class name to spawn a garage?

    "Land_MBG_Garage_Single_D","Land_MBG_Garage_Single_A","Land_MBG_Garage_Single_B","Land_MBG_Garage_Single_C"

    If yes, then how to make it so when player build one of them then save on to database? Just add them in to trader so they can buy it?

     

    Sorry for such noob questions, but this might help some one else too

  10. Add these for all spawned vehicles from mission, if using Infistar on your server...

    This makes sure that any vehicle have an ID so Infistar wont kick/ban/delete for that matter :)

    In compile folder look for heli_para.sqf, heli_patrol.sqfvehicle_patrol.sqfcustom_publish_vehicle.sqf, spawn_static.sqf

     

    This bellow peace of code for vehicle_patrol.sqf

    private ["......","......","......","_vehicleID"] - Only  ,"_vehicleID" at end of private.
    
    _vehicle                = createVehicle [_veh_class, [(_startingpos select 0),(_startingpos select 1), 0], [], 0, "CAN_COLLIDE"]; - Under this add following
    _vehicleID              = str(round(random 999999));
    _vehicle                setVariable ["ObjectID", _vehicleID, true];
    _vehicle                setVariable ["ObjectUID", _vehicleID, true];
    

    Cheers

  11. My findings are....  After you change skin and abort from game and login back the game gives you double of humanity.

     

    Example: 2500  skin changes

                    5000 after join server

                    5000  skin changes

                  10000 join server again.... and keeps doubling every time you do this skin change and relog server

     

    This only happens for 2nd and 3rd char selector, nothing like this for 1st char

  12. Most likely problems are with these actual files, but iam no  guru guy so cannot fix, or know how does this works.

     

    player_humanityMorph.sqf

    player_switchModel.sqf

    player_wearClothes.sqf

     

    And this keeps happening with and without that FIX posted above

     

    Also merged 1.0.4.2 and 1.0.5.1 epoch version, only differences are forEach and count. Also some other changes, but i cant see anything related to humanity

×
×
  • Create New...