Jump to content

pangea

Member
  • Posts

    35
  • Joined

  • Last visited

Posts posted by pangea

  1. ok ty mate

     

    still does not work, i guess Land_FuelStation_Build_F, Land_FuelStation_Feed_F, Land_fs_feed, as well as Land_CarService_F are not the right IDs for Chernarus.. 

    but thanks for your help, i hope i will figure this out.. 

  2. i've have read it, and i guess you mean this:

     

    By default, this will only work with "Land_CarService_F" building types, but you can add any building/vehicle type you like in the array on line 8 of service_point.sqf, like this:

     

    Like I wrote before, I'm using Chernarus as map, I have to put there the Chernarus fuelstation building ID. Not the Altis one. I just dont know how to get this building ID

     

    or am i wrong?

  3. nice work, thank you for sharing!

     

    i run chernarus, and this

     

    _servicePointClasses = [["Land_FuelStation_Build_F"],["Land_FuelStation_Feed_F"],["Land_fs_feed_F"]]; // service point classes (can be house, vehicle and unit classes)

     

    doesnt work... whats the building ID for the fuelstation? is there a key to get this ingame (as in arma 2 key I) ?

  4. hi mates!

     

    nice work zupa!

     

    i tried to put everything in a seperate folder, so i can handle the bec exeptions (scripts.txt) better. but i always got some errors:

     

    21:39:49 Warning Message: Script ZHB\fn_loopHud.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_initVariables.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_activateSettings.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_comboBoxes.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_disableHud.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_handleKey.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_openHudBuilder.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_toggleHud.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_toggleTextHud.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_bindKey.sqf not found
    21:39:49 Warning Message: Script ZHB\fn_init.sqf not found

     
    i've changed everything in the description.ext to that folder 
     

    //Zupas Hud Builder
    #include "Custom\ZHB\ZHudBuilder.hpp"
    class RscTitles
    {
    #include "Custom\ZHB\ZHud.hpp"
    };
    class CfgFunctions 
    {
    #include "Custom\ZHB\ZHB_Functions.hpp"
    };

     

    and i've looked in every file, if i had to change anything.

     

    anyone any ideas why im still getting this errors? did i missed something?

     

    ok, i guess i found it.

     

    fn_initVariables.sqf line 14

    Z_HUD_imageFolder = "custom\ZHB\gui\"; 

     

    and

     

    ZHB_Functions.hpp line 6

    file = "Custom\ZHB";

  5. It  happens when someone wears a guilly suit, then the humanity doubles... anyone got a solution?

     

     

    /edit 

     

    It has definity something to do with changing clothes. Doesnt happens everytime, but we figured out, that if you change your clothes to hero or bandit cloths (like a ghilly) and relog, it can be that your humanity doubles...

    Really annoying, I have to look into the database everyday and change it..

    I would donate a few € if someone can figure out a solution!

     

    /edit2

     

    A player has changed his skin, and I got this error in the server.rpt

     

    14:03:20 "ERROR: server_playerSync: Cannot Sync Player XXX [99]. Position in debug! [-7239.93,19539.1,0.285675]"

     

    after relogging his humanity doubled

     

    /edit3

     

    We reproduced it again

    Here is my serverrpt

     

     

     

    12:55:51 "EPOCH SERVERTRADE: Player: XXX (YYY) bought a Skin_Functionary1_EP1_DZ in/at trader city Stary for 2000x Euro"
    12:56:06 "infiSTAR.de PVAH_WriteLog: B 1-1-E:3 (Pangea) REMOTE Pangea Spectating XXX"
    12:56:08 Server: Object 5:152 not found (message 93)
    12:56:08 Server: Object 5:151 not found (message 85)
    12:56:08 Server: Object 5:5 not found (message 89)
    12:56:09 Server: Object info 5:5 not found during Changing Owner
    12:56:09 Server: Object info 5:4 not found during Changing Owner
    12:56:09 Server: Object info 5:151 not found during Changing Owner
    12:56:09 Server: Object info 5:153 not found during Changing Owner
    12:56:10 "infiSTAR.de Log: XXX(YYY) - Left SafeZone @063075"
    12:56:10 "infiSTAR.de Log: XXX(YYY) - Entered SafeZone @063075"
    12:56:16 "CLEANUP: Deleted 2 Animals out of 4"
    12:56:16 "TIME SYNC: Local Time set to [2013,8,3,13,56]"
    12:56:34 "infiSTAR.de PlayerDisconnected: _uid: YYY _name: XXX"
    12:56:34 "get: STRING (XXX), sent: STRING (XXX)"
    12:56:34 "DISCONNECT: XXX (XXX) Object: B 1-1-G:1 (FLaMe x Griaffe) REMOTE, _characterID: 96 at loc [6358.63,7783.08,0.00149536]"
    12:56:34 Server: Update of object 2:4292 arrived from nonowner
    12:56:34 Client: Remote object 5:0 not found
    12:56:34 Client: Remote object 5:147 not found
    12:56:34 Client: Remote object 5:148 not found
    12:56:34 Client: Remote object 5:149 not found
    12:57:08 "infiSTAR.de PlayerConnected: ["XXX","XXX"]"
    12:57:12 Server: Object 5:163 not found (message 94)
  6.  

    What about the Defines between Plot and Coins .. can the co exist or do they need modified  .. in other words .. no conflicts ??

    #include "plotManagement\defines.hpp"

     

    #include "ZSC\config\ZSCdefines.hpp"

     

    and the fn_selfActions.sqf .. modify zuppa's in the ZSC folder or the self actions in the dayz code ??   

     

    i have merged the defines and took the plot fn_selfactions and just copied everything needed in it

     

    /edit i took my defines.hpp from dzgm and merged it with all my scripts. coexist is not possible, the server will not let you login if something is double-defined. merge it, and comment every line is the best option i guess

  7. 2. I have setup some AI as non-traders for exchanging certain items for others "i.e. Oil for Gems" I keep getting the option to give them money. I want to remove this action.

     

    Got the same problem, but only with a few skins. for example:

     

    UN_CDF_Soldier_Officer_EP1 works

    UN_CDF_SOLDIER_Light_EP1 only gives money option

     

    i would say, try some other skins that are not used.

     

    fuzzymonkey perhaps you can help me with my trader? ive got 2 special traders, and i want them to list several items for gems. item->gems. so ive got these files:

     

    trader1.sql

     

    class Category_900 //trader1
    {
    class KA137_PMC {type = "trade_any_vehicle_old";buy[] ={8,"ItemRuby"};sell[] ={3,"ItemRuby"};};
    class KA137_MG_PMC {type = "trade_any_vehicle_old";buy[] ={12,ItemRuby"};sell[] ={4,"ItemRuby"};};
    };

     
    then i copied trade_any_vehicle_old.sqf from dayzcode/whatever to the right zsc folder and linked it in zsc/gold/player_tradermenu.sqf (line 44-50):
     

    if (_type == "trade_weapons") then {
    _typeNum = 3;
    } else { 
    if (_type in ["trade_backpacks", "trade_any_vehicle", "trade_any_vehicle_free","trade_any_vehicle_old", "trade_any_boat", "trade_any_bicycle"]) then { //added trade_any_vehicle_old 
    _typeNum = 2;
    };
    };

     
    as far as i see, buying and selling for rubys works, BUT the trader lists them for euro.. how can i change it just for this trader?
     
    i hope you all understand what i mean, my english is not very good ;)
     
    /edit 
     
    so i found this code in player_trade_menu.sqf
     

    TraderDialogShowPrices = {
    private ["_index", "_item"];
     
    _index = _this select 0;
     
    if (_index < 0) exitWith {};
     
    while {count TraderItemList < 1} do { sleep 1; };
     
    _item = TraderItemList select _index;
    _qty = {_x == (_item select 3)} count magazines player;
     
    ctrlSetText [TraderDialogBuyPrice, format["%1 %2", [_item select 2] call BIS_fnc_numberText, CurrencyName]];
    ctrlEnable [TraderDialogBuyBtn, true];
    ctrlSetText [TraderDialogSellPrice, format["%1 %2", [_item select 5] call BIS_fnc_numberText, CurrencyName]];
    };

     
    i was wondering if i could do something like this:
     

    if _target = specialtrader1 or specialtrader2 then 
     
    ctrlSetText [TraderDialogBuyPrice, format["%1 %2", [_item select 2] call BIS_fnc_numberText, CurrencyNameGem]];
    ctrlEnable [TraderDialogBuyBtn, true];
    ctrlSetText [TraderDialogSellPrice, format["%1 %2", [_item select 5] call BIS_fnc_numberText, CurrencyNameGem]];
     
    else
     
    ctrlSetText [TraderDialogBuyPrice, format["%1 %2", [_item select 2] call BIS_fnc_numberText, CurrencyName]];
    ctrlEnable [TraderDialogBuyBtn, true];
    ctrlSetText [TraderDialogSellPrice, format["%1 %2", [_item select 5] call BIS_fnc_numberText, CurrencyName]];

     

    and set a variable curencynamegem=Ruby 

     

    this is not a correct code, just an idea

  8. very nice script :D  but after i installed it, my custom traders dont list any items..any ideas?

     

    epoch chernarus 1.0.5.1.

     

    and this is my servertrader.sql 

     

    serverTraders = ["UN_CDF_Soldier_EP1","TK_Soldier_EP1","US_Soldier_Pilot_EP1", "RU_Functionary1","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Soldier_GL_M16A2_PMC","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2"];
     
    // Hero Special Trader
    menu_UN_CDF_Soldier_EP1 = [
    [["Special Weapons",800],["Special Ammunition",801],["Special Vehicles",802],["Special Skins",803],["Special Misc",804]],
    [],
    "superhero"
    ];
    // Bandit Special Trader
    menu_TK_Soldier_EP1 = [
    [["Special Weapons",800],["Special Ammunition",801],["Special Vehicles",802],["Special Skins",803],["Special Misc",804]],
    [],
    "superhostile"
    ];
     
    menu_RU_Functionary1 = [
    [["Ammunition",478],["Clothes",575],["Helicopter Armed",493],["Military Armed",562],["Trucks Armed",479],["Weapons",477],["Money",700]],
    [],
    "hero"
    ];
    menu_RU_Citizen3 = [
    [["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns And Single Shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612]],
    [],
    "neutral"
    ];
    menu_Rocker4 = [
    [["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns And Single Shot",641],["Sniper Rifle",640],["Submachine Guns",642]],
    [],
    "neutral"
    ];
    menu_Profiteer4 = [
    [["Bikes And Atv",587],["Buses And Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591]],
    [],
    "neutral"
    ];
    menu_Rita_Ensler_EP1 = [
    [["Backpacks",496],["Clothes",497],["Cooked Meats",580],["Drinks",498],["Packaged Food",579]],
    [["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Copper Bar",101]],
    "neutral"
    ];
    menu_CIV_EuroMan01_EP1 = [
    [["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns And Single Shot",641],["Sniper Rifle",640],["Submachine Guns",642]],
    [],
    "neutral"
    ];
    menu_CIV_EuroMan02_EP1 = [
    [["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns And Single Shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612]],
    [],
    "neutral"
    ];
    menu_TK_GUE_Soldier_5_EP1 = [
    [["Building Supplies",508],["Toolbelt Items",510],["Vehicle Parts",509],["Money",700]],
    [],
    "neutral"
    ];
    menu_GUE_Soldier_MG = [
    [["Ammunition",577],["Clothing",575],["Helicopter Armed",512],["Military Armed",569],["Trucks Armed",534],["Weapons",627],["Money",700]],
    [],
    "hostile"
    ];
    menu_Worker2 = [
    [["Airplanes",517],["Helicopter Unarmed",519]],
    [],
    "neutral"
    ];
    menu_Worker3 = [
    [["Bikes And Atv",587],["Buses And Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591]],
    [],
    "neutral"
    ];
    menu_GUE_Woodlander2 = [
    [["Black Market Weapons",526],["Black Market Ammo",527],["Explosives",529]],
    [],
    "neutral"
    ];
    menu_Woodlander1 = [
    [["Building Supplies",508],["Toolbelt Items",510],["Vehicle Parts",509],["Money",700]],
    [],
    "neutral"
    ];
    menu_UN_CDF_Soldier_Pilot_EP1 = [
    [["Bikes And Atv",587],["Buses And Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591]],
    [],
    "neutral"
    ];
    menu_RU_WorkWoman1 = [
    [["Backpacks",496],["Clothes",497],["Cooked Meats",580],["Drinks",498],["Packaged Food",579]],
    [["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Copper Bar",101]],
    "neutral"
    ];
    menu_Dr_Annie_Baker_EP1 = [
    [["Chemlites / Flares",669],["Medical Supplies",670],["Smoke Grenades",671]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
    ];
    menu_TK_CIV_Takistani04_EP1 = [
    [["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns And Single Shot",641],["Sniper Rifle",640],["Submachine Guns",642]],
    [],
    "neutral"
    ];
    menu_Pilot_EP1 = [
    [["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns and Single Shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612]],
    [],
    "neutral"
    ];
    menu_RU_Citizen4 = [
    [["Wholesale",636]],
    [],
    "neutral"
    ];
    menu_RU_WorkWoman5 = [
    [["Backpacks",496],["Clothes",497],["Cooked Meats",580],["Drinks",498],["Packaged Food",579]],
    [["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Copper Bar",101]],
    "neutral"
    ];
    menu_RU_Citizen1 = [
    [["Wholesale",636]],
    [],
    "neutral"
    ];
    menu_RU_Villager3 = [
    [["Boats Armed",673],["Boats Unarmed",672]],
    [],
    "neutral"
    ];
    menu_TK_CIV_Takistani04_EP1 = [
    [["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns and Single Shot",641],["Sniper Rifle",640],["Submachine Guns",642]],
    [],
    "neutral"
    ];
    menu_Pilot_EP1 = [
    [["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns and Single Shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612]],
    [],
    "neutral"
    ];
    menu_RU_Profiteer4 = [
    [["Bikes And Atv",587],["Buses And Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591]],
    [],
    "neutral"
    ];
    menu_Woodlander3 = [
    [["Building Supplies",508],["Toolbelt Items",510],["Vehicle Parts",509],["Money",700]],
    [],
    "neutral"
    ];
    menu_Dr_Hladik_EP1 = [
    [["Chemlites / Flares",669],["Medical Supplies",670],["Smoke Grenades",671]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
    ];
    menu_Doctor = [
    [["Chemlites / Flares",669],["Medical Supplies",670],["Smoke Grenades",671]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
    ];
    menu_HouseWife1 = [
    [["Boats Armed",673],["Boats Unarmed",672]],
    [],
    "neutral"
    ];

     
     
    after looking into all the files i think i got it..
     
    Custom Trader:
     
    1. Open mission\ZSC\config\cfgServerTrader.hpp and add this at the bottom above }; 

    #include "Category\newtrader.hpp"

     
    2. create a file in mission\ZSC\config\category, in this example "newtrader.hpp"
    2.1. copy this into newtrader.hpp

    class Category_XXX 
    {
    class ITEMCLASSNAME {type = "trade_XYZ";buy[] ={AAA,"Coins"};sell[] ={BBB,"Coins"};};
    class ITEMCLASSNAME {type = "trade_XYZ";buy[] ={AAA,"Coins"};sell[] ={BBB,"Coins"};};
    };

    2.2 
    replace XXX with a number (i recommend 1000+)
    replace ITEMCLASSNAME with the classname
    replace XYZ with "weapons/items/any_vehicle/backpacks" depends on which item you want to add
    replace AAA a number (buy)
    replace BBB with a number (sell)
    2.3
    add as much items as you want, just copy the line and do 2.2. again
    3. open your server_trader and add your trader (look at my servertrader.sql in this post and dont forget to add the skin in the first line)
    4. create a trader (just google it)
     
     
  9. I have managed to get the farms and map markers to spawn in but I am faced with a pretty odd problem...

     

    Every single time I join my server my player falls on the floor rolling around and I'm stoned seen all those pretty colors.. any idea what could cause me to be stoned the second I join the server every time?

    So, what did you to get spawns? there are still no spawns, and nothing in the rpt

     

    /fixed

     

    just some typos.....classic

  10. I feel like sharing.

    	serverRuleArray = ['']; //16 Max
    	
    	serverRules =
    	{
    		'Server Rules:' hintC serverRuleArray;
    		clearhint = (findDisplay 72) displayAddEventHandler ['unload','_this spawn {hintSilent ""; (_this select 0) displayRemoveEventHandler ["unload",clearhint];};'];
    	};
    	
    	[] spawn
    	{
    		disableSerialization;
    		private ['_display','_button'];
    		while {true} do {
    			waitUntil {!isNull (findDisplay 49)};
    			_display = (findDisplay 49);
    
    			_button = _display displayCtrl 103;
    			_button ctrlEnable true;
    			_button ctrlSetTextColor [1,1,1,1];
    			_button ctrlSetText 'Server Rules';
    			_button buttonSetAction '[] spawn {waitUntil {(isNull (findDisplay 49))}; call serverRules;};';
    			_button ctrlCommit 0;
    			
    			waitUntil {isNull (findDisplay 49)};
    		};
    	};
    

    Replaces the top button on the escape menu with 'Server Rules'. Displays server rules when clicked.

     

    Hey there, cant get it started.. Would you mind to write a quick tutorial or something? 

  11. Hey there!

     

    I'm trying to get this working for non-admins (for admins its working fine). Cant find  any "vehicles = ..." in the ah.sql and there are no setmarker... too.. Any ideas?

     

     

    createMarkerLocal='no'; setMarkerShapeLocal='no'; setMarkerTypeLocal='no'; setMarkerColorLocal='no'; setMarkerSizeLocal='no'; setMarkerTextLocal='no';

    Then search for this line: vehicles = [vehicle player]; Replace it with this: vehicles = vehicles;

×
×
  • Create New...