Jump to content

[Tutorial] Remove Animation For Trading


Recommended Posts

I have one question about this,

 

does it buy up for example magazines till your gear is full like it does with animations?

cause if so without animations i can imagine you can stop it fast enough at the ammount of items you want to buy and you would

end up with a full inventory.

Link to comment
Share on other sites

It is in the in single currency section ... so it for gold coin system

 

 

I just used the provided files and it worked fine 0_o make sure you dont move while doing it all i can say xD

 

Stil not work on my napf server. Evry time i try to by a weapon it cancelt. And i am not moving

Link to comment
Share on other sites

Ok i fixst it works now on all maps. Sorry Peterbeer this was not working for Saurland Napf Taki.

 

Look for this. in the files from Peterbeer

	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"];
    };

And change it whit this one.

private["_newPosition","_finished","_oldPosition"];
_finished = false;
_oldPosition = position player;
sleep 1;
_newPosition = position player;
if (_oldPosition select 0 == _newPosition select 0 && _oldPosition select 1 == _newPosition select 1) then {
_finished = true;
};


if (!_finished) exitWith {
_abort = true;
cutText [(localize "str_epoch_player_106") , "PLAIN DOWN"];
};

And now it works even when a trader is off ground.

 

Greets Mike

Link to comment
Share on other sites

  • 2 months later...

hey, i get alot of this when someone trades

20:42:15 Error in expression <urrency =	_this select 5;
_qty =		_this select 6;
_clientID = 	owner _player;
_p>
20:42:15   Error position: <select 6;
_clientID = 	owner _player;
_p>
20:42:15   Error Zero divisor
20:42:15 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 9

thats files stock, so any ideas on this?

 

edit

 

well i found a possible fix, il try these file in this topic although it doesnt directly say it fixes my problem.

 

 

 

edit

 

yeah replacing with these fixed it

 

thanks

Link to comment
Share on other sites

  • 2 weeks later...

Hey guys, I just managed to get my overpoch server to work with the coin system and I noticed there was no trade animation anymore and I'm kinda missing it How could I get the animation to work again?

 

I just feel standing still at a trader makes you look like a bit of a plank at least with an animation it looks like your doing at least something :D

Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...