-
Posts
720 -
Joined
-
Last visited
Reputation Activity
-
Defent got a reaction from caboose1 in REQUEST Variable prices at traders
I think that would be possible in a SQL event actually.
Say you take the update stock daily and remake it abit:
(Updates stock)
UPDATE `Traders_DATA` SET qty=100 WHERE qty<50 AND afile<>'trade_any_vehicle' AND afile<>'trade_any_boat' and make it
UPDATE `Traders_DATA` SET buy='[10,"ItemGoldBar",1]' where qty <10 AND afile<>'trade_any_vehicle' AND afile<>'trade_any_boat' This would of course set ALL items to cost 10 gold bars when quantity is below 10.
THE ONLY PROBLEM IS THAT THIS IS NOT APPLIED UNTIL AFTER RESTART.
I'm not sure if you can make price update instant but if you have a server that restarts often it might be ok.
This means that you cant update trader quantity every restart but instead have to have it on like a daily schedule.
-
Defent reacted to MatthewK in Classname for chainsaw?
It's mentioned in the code sample I provided :D
@Defenting, that's why I post it :) Share and share alike I say :)
-
Defent got a reaction from MassAsster in WebBased Detailed player stats
Oh, because of the bump I noticed this and this is exactly what I was looking for, I love it.
Easy to customize and solved the problem about making the stats in-frame so to say!
Here is how I made it and changed it, thanks again.
I'll probably go on to add more stuff like zombie kills and vehicle numbers.
http://numenadayz.com/stats/index.php
As for goose89, I think you simply misspelt something, the code works for me.
-
Defent got a reaction from Crystal in 1.0.3 Towing / Missions / DZAI
I got to work, I basically just put the folder in and called it through the init.sqf with this:
if (isServer) then { //Towing [true] execVM "R3F_ARTY_AND_LOG\init.sqf" }; if (!isDedicated) then { //Towing [] execVM "R3F_ARTY_AND_LOG\init.sqf" }; Works perfectly for me.
I also noticed that there was a built in towing script in the fn_selfActions.sqf
//Towing with tow truck /* if(_typeOfCursorTarget == "TOW_DZE") then { if (s_player_towing < 0) then { if(!(_cursorTarget getVariable ["DZEinTow", false])) then { s_player_towing = player addAction ["Attach Straps", "\z\addons\dayz_code\actions\tow_AttachStraps.sqf",_cursorTarget, 0, false, true, "",""]; } else { s_player_towing = player addAction ["Detach Straps", "\z\addons\dayz_code\actions\tow_DetachStraps.sqf",_cursorTarget, 0, false, true, "",""]; }; }; } else { player removeAction s_player_towing; s_player_towing = -1; }; */ Try using that one, it's commented out by default I believe.