Jump to content

ZeroK00L

Member
  • Posts

    168
  • Joined

  • Last visited

Posts posted by ZeroK00L

  1. Hey all,

     

     Looking to edit the Map Screen Briefing section to include server Rules, Info, Tips, Etc. I know Altis Life RPG has a brieifing.sqf and Wasteland does as well. Did the Epoch Devs disable this feature? If so can I re-enable it? Thanks for any help or advice!

     

    Zero

  2. Horbin,

     

     Nice work on this AI Mod! I am setting it up to run on a Test Server with HC. All is good, HC stuff is set up and works fine. Only question I have is how long does it take for that TestMission1 to spawn? I started up the server and been sitting here for 45 minutes hoping it will trigger so I can verify it works. Thanks for your help and hard work!

     

    Zero

  3. Great idea and I have this on my sever already, but I use the isKindof command in fn_selfactions.sqf for the vending action. Try this as a vend.sqf:

    private ["_hasCash"];
    
    _hasCash = "ItemTinBar" in magazines player;
    
    if (!_hasCash) exitWith {cutText [format["You have no TinBars"], "PLAIN DOWN"];};
    
    if (_hasCash) then
        {
        player playActionNow "PutDown";
        sleep 3;
        player removeMagazine "ItemTinBar";
        player addMagazine "ItemSodaOrangeSherbet";
        sleep 0.01;
        titleText ["Soda dispensed, you drop it into your pocket", "PLAIN DOWN"];titleFadeOut 5;
    };
    

    This will take 1 tin bar to get a can of orange sherbet.

     

     

     

    Here's an updated one for random drink. Haven't tested but pretty sure it will work. Added it to the one requiring tin bar.

    private ["_hasCash","_random"];
    
    _hasCash = "ItemTinBar" in magazines player;
    _random = round(random(8));
    
    if (!_hasCash) exitWith {cutText [format["You have no TinBars"], "PLAIN DOWN"];};
    
    if (_hasCash) then
        {
        player playActionNow "PutDown";
        sleep 3;
        player removeMagazine "ItemTinBar";
        switch (_random) do {    
            case 0 :{
                player addMagazine "ItemSodaOrangeSherbet";
            };
            case 1 :{
                player addMagazine "ItemSodaLvg";
            };
            case 2 :{
                player addMagazine "ItemSodaClays";
            };
            case 3 :{
                player addMagazine "ItemSodaSmasht";
            };
            case 4 :{
                player addMagazine "ItemSodaPepsi";
            };
            case 5 :{
                player addMagazine "ItemSodaMdew";
            };
            case 6 :{
                player addMagazine "ItemSodaCoke";
            };
            case 7 :{
                player addMagazine "ItemSodaLemonade";
            };
            case 8 :{
                player addMagazine "ItemSodaRabbit";
            };
        };
        sleep 0.01;
        titleText ["Soda dispensed, you drop it into your pocket", "PLAIN DOWN"];titleFadeOut 5;
    };
    

     

    Nice! Thanks for contributing!

     

    Zero

  4. Hi all! Thought I would share a simple little script I put together. I am by no means a professional and this probably could be cleaner and better written but it works and is a cool little addition. This script is also a simple example of what can be accomplished with your server. Start with small scripting projects and have fun learning. So here it is. I studied the code from a few others and threw this together..

     

    Add this code to your fn_selfactions.sqf at the very bottom...

    //------------------------------------------------ Vending Machine --------------------------------//
    private["_playerPos","_nearVend"];
    
    _playerPos = getPosATL player;
    _nearVend = count nearestObjects [_playerPos, ["MAP_vending_machine"], 4] > 0;
     
    if (_nearVend) then {
            if (s_player_buySoda < 0) then {
                s_player_buySoda = player addaction[("<t color=""#00C732"">" + ("Buy Soda") +"</t>"),"Vending\venddrink.sqf"];
            };
        } else {
            player removeAction s_player_buySoda;
            s_player_buySoda = -1;
        };
     
    //--------------------------------------------- Vending Machine End ---------------------------//
    

    Make a folder in your root of your mission file called "Vending" and make a empty file named "venddrink.sqf", then copy and paste this...

    //by ZeroK00L
    private["_playerPos","_canVend"];
    
    call gear_ui_init;
    _playerPos = getPosATL player;
    _canVend = count nearestObjects [_playerPos, ["MAP_vending_machine"], 4] > 0;
    _soda = ["ItemSodaRabbit","ItemSodaOrangeSherbet","ItemSodaLvg","ItemSodaClays","ItemSodaSmasht","ItemSodaPepsi","ItemSodaMdew","ItemSodaCoke","ItemSodaLemonade"];
    
    if (_canVend) then {
    			
    			playsound "vendingmachine";
    			sleep 2;
    			player playActionNow "PutDown";
    			player addMagazine 'ItemSodaRabbit';
    			cutText ["You received a Soda from the Vending Machine!", "PLAIN DOWN"];
    };
    

    OPTIONAL IF YOU WANT THE SOUND!

     

    Open up description.ext and add this to your sounds class. If you dont already have one you can make one..

    class CfgSounds
    {
        sounds[] ={vendingmachine};
     
    class vendingmachine
        {
        name="vendingmachine";
        sound[]={\Vending\vendingmachine.ogg,0.9,1};
        titles[] = {};
        };
    	
    };
    

    Then add the attached sound file to your "Vending" folder. Voila!

     

    If you notice, in the venddrink.sqf I put an array for all the sodas & beer the game can use.

    _soda = ["ItemSodaRabbit","ItemSodaOrangeSherbet","ItemSodaLvg","ItemSodaClays","ItemSodaSmasht","ItemSodaPepsi","ItemSodaMdew","ItemSodaCoke","ItemSodaLemonade"];

    Maybe if I have time I will create a random chance for different sodas to come out. Also I might make it so it takes money from the player. If anyone wants to tackle those items and share please do. Have fun with it :) This script can even be modified and used on the Refrigerators to give the player canned foods.

     

    P.S You will need to place a vending machine somewhere on the map. Classname is "MAP_vending_machine". I have tried to use Raymix's Emerald tools but the script doesn't recognize the vending machine placed by that tool. Would be cool if it did...so use the editor for now. :)

     

    Zero

  5. Ok, Just another shot in the dark... Do you have access to your Hive.ini file?? If so look for this field and make sure it matches your database...

    [Characters]
    ;The field name that Player's IDs are stored in (unique per game license)
    ;Some table layouts have this as PlayerID, and some as PlayerUID, that's why this is configurable
    IDField = PlayerUID
    ;The field name that Player's World Position and rotation is stored in
    ;Enables you to run multiple different maps (different instances) off the same character table
    ;WSField = Worldspace
    

    Just a thought..

     

    Zero

  6. Buildings double spawn when in the server PBO and its a common problem! Id rarther keep them in their, but not if they are going to double spawn, is there no way to edit anything so that they dont double spawn?

     

    Can you post the SQF that is spawning the double building? Also, keep them server side. Much cleaner way to do it especially if you have alot of map addons!

     

    Zero

  7. Hello,

     

     To answer this posters intital question, I would be happy to help setting up or showing you the ropes on getting your server going. We had a server with DayZ.St and I am intimately familiar with all the pains that come from dealing with them. In reality thiswill be a constant issue. You are somewhat restricted with what you can do when working with a Hosting company. Vilayer is DEF a better choice but has some issues too. Running a dedicated machine is the best way to go but requires experience setting up the servers and configuring the network. I just wouldnt recommend playing on the same machine you are hosting from. Like Brockie said, the requirements are really not that crazy. Arma 2 only needs really 1 Core per server. The biggest issue will be your network. Your going to need unlimited bandwith and a pretty fast connection for your players.

     

    If you need help still, PM me and we will see what we can do :)

     

    Zero

  8. I don`t believe that this release fully works for you... I can bet that you cannot tag your friendlies...

    Also deply bike functions is not related to this release! Maybe you did mess something up while tryed to add this script!

     

     

    Anybody got the tag friendly working ? as far as i know it also prevent players to build on the same plot pole and thats really sucks ^^

    but i love it so much..... cant get rid of it, so if anybody knows a solution please tell me it >.<

     

    For both of you, this realeas works really well and as intended. I have had this on our server since it was released and Friendly Tagging does indeed work. I also have snap building and Raymixs Emerald Interior Design tools working. :)

     

    Zero

  9. Hello,

     

     I use Nightmares Private Hive Tools. Google. Theres a tutorial on how to set it up. IT has an option to delete all vehicles with empty inventory. Make sure to have your players put at least one item in their vehicles inventory on the vehicles you want to keep. Then go into Private Hive Tools. Click Hive Cleaner and Delete all Vehicles with Empty Inventory. Then restart server. Make sure also in your init.sqf you have the Max Vehicles line set...looks like this...

     

    MaxVehicleLimit = 50; // Default = 50

     

    Change to whatever you want. This will limit how many vehicles the server spawns and "in theory" the server should cleanup any number over what you set but I have found this to be faulty. Hope this helps. Without PHP Tools you will need to run a SQL query on your database....http://dayz.st/w/MySQL  <---Keep in mind with this link some of the information is old but should give you an idea on what to do with SQL queries.

     

    Zero

  10. you can use this to automaticly build random weed fields with markers on any map, each restart:

     

    http://pastebin.com/juMsuJ1r

     

     

     

    why dont you just add my script to your tutorial, so users dont needs to go in the editor and build them, unless they really want to?

     

    Halv,

     

    How is this script executed? Sorry if it is obvious, running on little sleep. lol

     

    Zero

     

    EDIT: This should definitely be added to tutorial, would make it way easier on some folks thanks to Halv! I already have custom fields put in with large amounts of plants and AI guarding them ;) I want my players to meet a challenge. I am now considering using Halvs script as well for some little small random fields for new players to visit with out AI spawns. Both options would make the tutorial well rounded :)

  11. Hello there, i have a problem, when i click on the option to my knife it says i need to be near the weed plant.

     

    If i spawn in some hemp myself i can take it so that part works...i just cant collect the weed

     

     

    any help would be great plz

     

    i have attached my server pbo if anyone can spare the time plz

     

     

     

    cheers

     

    robbie

     

    We will also need your mission PBO. What Map are you using?

     

    Zero

  12. nice, but that dose not answer my question man, lol.  i seen it on a server that i was and still playing on but cant get a hold of the scripter. he added a little piece of script to the blackmarket trader to when u go up to him, u scroll on the mouse wheel and u have the option to sell all the weed u have for 2 10oz gold and it will sell all the weed in ur inventory 1 at a time instead of going in to the trader menu and selling it 1 at a time urself.

    .  

     Do this...

     

    In your Database under server_traders table. Find the Trader. IN his Static section put the following...

     

    ["ItemBriefcase10oz","ItemKiloHemp",1,10,"buy","Hemp","Gold Bar 10oz",101]

     

    Now open up your Sever_traders.sqf in your mission file.

     

    Find the Trader. For my custom trader it looks like this..

     

    // Hemp Dealer

    menu_Hooker4 = [

        [["Hemp",693]],

        [["ItemGoldBar10oz","ItemKiloHemp",1,10,"buy","Hemp","Gold Bar 10oz",101]],

        "neutral"  

     

    Done. The trader will now buy 10 stacks of Hemp! :)

     

    Zero

     

    P.s. If you need help, heres my teamspeak. sj01.gameservers.com:9330 If I am not on message me here with a meet time. If Im in my office on TS just poke me!

  13. Step 8 in the script installation is the key to get it working. Maybe somethign went wrong there. Please send me your "custom\player_tagFriendly.sqf" (Or better the whole mission pbo).

     

    Step 8? Is that the debug setup?

     

    Heres my tagfriendly

    private["_target", "_caller", "_callerID", "_targetID", "_friendlies", "_rfriendlies","_found"];
    _target = _this select 0;
    _caller = _this select 1;
    
    call fnc_usec_medic_removeActions;
    r_action = false;
    
    _callerID = getPlayerUID _caller;
    _found=[_callerID,"AX"] call KRON_StrInStr;
    if (_found) then {
       _callerID=[_callerID] call KRON_convertPlayerUID;
    };
    
    _targetID = getPlayerUID _target;
    _found=[_targetID,"AX"] call KRON_StrInStr;
    if (_found) then {
       _targetID=[_targetID] call KRON_convertPlayerUID;
    };
    
    _friendlies = _caller getVariable ["friendlies", []];
    _friendlies set [count _friendlies, _targetID];
    _caller setVariable ["friendlies", _friendlies, true];
    
    _rfriendlies = _target getVariable ["friendlies", []];
    
    if !(_callerID in _rfriendlies) then {
    	titleText [(localize "STR_EPOCH_ACTIONS_8"), "PLAIN DOWN"]; //To Caller
    	/* PVS/PVC - Skaronator */
    	PVDZE_send = [_target,"tagFriendly",[_target]]; //To Target
    	publicVariableServer "PVDZE_send";
    };
    

    Thanks for your help!

     

    Zero

     

    P.s. How can I get my Mission PBO to you? Also I dont use Infistar or anything like that. I have a Dedicated server.

  14. Thanks for all the replies guys! I think I will wait it out. When I saw all of the RPT spam I freaked and didn't even try to test all the scripts to see if they work I just assumed they would be broken.

     

    Maybe do like Overpoch is doing with the call to action for the -mod= settings to be added... Instead change the call to action to say: "DONT PATCH TO 112555" or "DOWNGRADE BETA TO 103718" ? 

    Personally, I'd rather see drop in players and have a working 1.0.4.2, since 1.0.5 is around the corner and players need to upgrade anyway then. 
    I'm sure the same can be argued the other way around as well - might as well bite the bullet, get performance drop and wait out the patch....  

     

    Why is there a performance drop? From reading the change log it seems they have supposedly fixed a lot of issues....

     

    Zero

×
×
  • Create New...