ZeroK00L
-
Posts
168 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by ZeroK00L
-
-
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
-
make a scroll menu and let the player choose himself, what drink he wants not to mention set price individually ... afaik some of these sodas cost a lot more than a tinbar at a trader
Feel free too make it however you like! :) Could also just make a trader out of the vending machine instead of scripting.
Zero
-
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
-
So you can only get soda from the vending machines that are placed and not the ones built into the map?
Will work with both. Only ones that wont work are the ones from Raymixs Emerald Tools!
Zero
-
Damn. Wouldn't let me attach the sound file. Says I dotn have permission. Will find another way to post it later..my apologies.
EDIT: Try this for the sound file. https://www.dropbox.com/s/tcbtugkx92m7h7k/vendingmachine.ogg
Zero
-
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
-
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
-
Hi,
When you moved to Vilayer, did you transfer over your DayZ.St database as well? I had this issue as well when I tried to move over my backup of the database from DayZ.St to Vilayer. Started over with a new database and Voila! I know making players start over sucks but sometimes a necessary evil...
Zero
-
Hey,
That is normal. Your indestructable mod is only for player buildables. Server side map addons will respawn after restart....
Zero
-
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
-
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
-
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
-
car disappears when buying and appears after restart What to do?
Hi,
Maybe you can provide more info? Post your RPT log files? Has the mission file been modified? If so what has been modified? By the way, this forum is for Scripts/Mods that have been written and released to public. You might get more help in the appropriate forum.
Zero
-
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
-
Hello,
This happens to about 10% of players on our server. Haven't pinpointed what is causing it but don't be so quick to blame your server. Some folks have high ping and will get kicked. Also some just have shitty internet. Some might be running on a very slow system and like it says, it's taking to long for the client to respond.
Zero
-
I have added it 2 days ago or so. Look better :)
Oh sorry. lol. I havent looked back at the tutorial in quite awhile.
When does the plant respawn?
After restart..
-
you can use this to automaticly build random weed fields with markers on any map, each restart:
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 :)
-
hiya, its working now thanks very much :)
i get a kilo from 1 cut..is there any to lower the amount and craft it into a kilo?
many thanks
robbie
No unfortunately, not without heavy modification to the game files and some custom modeiling and texturing, etc. You can change the price they sell for though. :)
Zero
EDIT:That retextured SUV is hilarious!!!
-
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
-
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!
-
Wondering if this will be in the new Epoch Build, I imagine it will right? Gonna wait to see, that way I dont have to go back through and undo any changes...
Zero
-
If still not working. Please post these three files...
1.) whatevercity.sqf
2.) server_functions.sqf
3.) mission.sqm
:)
Zero
-
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.
-
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
Edit Map Screen Briefing???
in Server Install
Posted
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