Gr8 Posted July 6, 2014 Author Report Share Posted July 6, 2014 When you move while trading. It cancels but trading is still in progress. tested with weps working on solving it Link to comment Share on other sites More sharing options...
Gr8 Posted July 6, 2014 Author Report Share Posted July 6, 2014 Modified code, works with cars, items, weapons //### BEGIN MODIFIED CODE: fast trading private["_newPosition","_finished","_oldPosition"]; if(isNil "_oldPosition") then { _oldPosition = position player;}; _finished = false; sleep 2; if (player distance _oldPosition <= 1) then { _finished = true; }; if (!_finished) exitWith { DZE_ActionInProgress = false; r_autoTrade = false; cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"]; }; //### END MODIFIED CODE: fast trading 31_D!4b10 and mudzereli 2 Link to comment Share on other sites More sharing options...
Havoc302 Posted July 9, 2014 Report Share Posted July 9, 2014 Where was that code supposed to go Gr8Boi? I just put this mod in with gestureYes as the action and it works perfectly. Looks like your guy is simply saying yes to selling or buying. And I didn't put in that last bit of code you posted, do I need it? Thanks. Link to comment Share on other sites More sharing options...
Gr8 Posted July 9, 2014 Author Report Share Posted July 9, 2014 Where was that code supposed to go Gr8Boi? I just put this mod in with gestureYes as the action and it works perfectly. Looks like your guy is simply saying yes to selling or buying. And I didn't put in that last bit of code you posted, do I need it? Thanks. The last bit is config. Its only for server admins want to configure more. What step # are you talking about? Link to comment Share on other sites More sharing options...
f3cuk Posted July 10, 2014 Report Share Posted July 10, 2014 Just a quick thank you for this. Guys on the server really love the "almost" instant trading. I'll be working on adding a counter that shows a message like "Sold item X, _itemsleft remaining", will share when done. Link to comment Share on other sites More sharing options...
Phyrino Posted July 13, 2014 Report Share Posted July 13, 2014 with all these changes you are discussing, does the guide in the first post work with 1.0.5.1? or do i have to change the trade files? edit: never mind. works perfect! Link to comment Share on other sites More sharing options...
wekael Posted July 14, 2014 Report Share Posted July 14, 2014 Very great Script thank you. Is it possible to rid the craft animation (lumbers, plywood....) ? Link to comment Share on other sites More sharing options...
Gr8 Posted July 14, 2014 Author Report Share Posted July 14, 2014 craft animation is the same as medic animation with some sound Link to comment Share on other sites More sharing options...
wekael Posted July 14, 2014 Report Share Posted July 14, 2014 in which file i have to delete the animation for crafting? Link to comment Share on other sites More sharing options...
Gr8 Posted July 14, 2014 Author Report Share Posted July 14, 2014 There are instruction about it in the Original post Link to comment Share on other sites More sharing options...
wekael Posted July 15, 2014 Report Share Posted July 15, 2014 i just find the instructions about to remove the trading animation. I tried it in player_craftItem.sqf but it doesn't work =| Don't know where to remove the craft animation. Link to comment Share on other sites More sharing options...
wekael Posted July 16, 2014 Report Share Posted July 16, 2014 nobody can help ? Link to comment Share on other sites More sharing options...
Gr8 Posted July 16, 2014 Author Report Share Posted July 16, 2014 if you have my files. To Remove the animation of trading Open every file inside the fixes/trade folder Find: player playActionNow "PutDown"; Remove the line whole line, to simple get rid of the animation. Link to comment Share on other sites More sharing options...
wekael Posted July 17, 2014 Report Share Posted July 17, 2014 Yea, that i understand and i did. It works great for trading. But there's still an animation for crafting plywoods. I wanna remove the animation for crafting, not for trading. Link to comment Share on other sites More sharing options...
Gr8 Posted July 17, 2014 Author Report Share Posted July 17, 2014 To Remove/change crafting animation Find this in your custom compiles: player_craftItem = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_craftItem.sqf"; Replace it with: player_craftItem = compile preprocessFileLineNumbers "fixes\player_craftItem.sqf"; Now make a new file in your fixes folder called player_craftItem.sqf Paste this in your player_craftItem.sqf http://pastebin.com/y0VWmqH3 AWulle 1 Link to comment Share on other sites More sharing options...
wekael Posted July 17, 2014 Report Share Posted July 17, 2014 Thanks a lot! I tried so much but nothing worked =), You made my day, really Link to comment Share on other sites More sharing options...
Gr8 Posted July 17, 2014 Author Report Share Posted July 17, 2014 i am glad i could help Donnovan 1 Link to comment Share on other sites More sharing options...
Havoc302 Posted July 19, 2014 Report Share Posted July 19, 2014 Love this, works a treat on the normal trading, I also had it working on the old trading as well by copying out the _old files into the same directory but now for some reason when trading anything _old he does the action then the trade doesn't end, it doesn't take the stuff and I simply have to move to cancel it, any ideas? Need me to post up any files? Link to comment Share on other sites More sharing options...
Havoc302 Posted July 19, 2014 Report Share Posted July 19, 2014 Disregard, only works with the standard medic gesture as _old. Link to comment Share on other sites More sharing options...
outlander Posted July 22, 2014 Report Share Posted July 22, 2014 Great tutorial, thanks for this. One small caveat I believe you should add for this step: Find: call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_traderMenuHive.sqf"; Should note that if you are using config based traders, to use this file instead: player_traderMenuConfig.sqf Cheers, Link to comment Share on other sites More sharing options...
Gr8 Posted July 23, 2014 Author Report Share Posted July 23, 2014 This tutorial doesnt work for config based traders. Will add it soon Link to comment Share on other sites More sharing options...
VentZer0 Posted July 26, 2014 Report Share Posted July 26, 2014 What does not work exactly when you use missionfile configurated traders with this? I use this and it works pretty much, the only problem I have is that vehicles disappear if people buy them at them occasionally. They appear upon next restart at the trader though. But I think that problem is unrelated since I dont use fast trade for vehicle buy and sell, only items and weapons. Link to comment Share on other sites More sharing options...
VentZer0 Posted July 27, 2014 Report Share Posted July 27, 2014 What does not work exactly when you use missionfile configurated traders with this? I use this and it works pretty much, the only problem I have is that vehicles disappear if people buy them at them occasionally. They appear upon next restart at the trader though. But I think that problem is unrelated since I dont use fast trade for vehicle buy and sell, only items and weapons. *bump* an answer would be great o_o Link to comment Share on other sites More sharing options...
VentZer0 Posted July 29, 2014 Report Share Posted July 29, 2014 hello could someone please clarify why this mod does not work apparently for configtrader = true ? Link to comment Share on other sites More sharing options...
mudzereli Posted July 29, 2014 Report Share Posted July 29, 2014 hello could someone please clarify why this mod does not work apparently for configtrader = true ? follow the steps but everywhere you see traderMenuHive, pretend it says traderMenuConfig Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now