Cherdenko Posted August 8, 2016 Report Share Posted August 8, 2016 Hello guys i reworked an script original published on opendayz.net (http://opendayz.net/threads/release-right-click-to-sell-brief.20739/) so it works with the new singlecurrency version, that handles money as "cashMoney" and not "headshots" if this in anyway inflicts with the copyright, then please remove this thread first of all make a new file named SellBrief.sqf and paste the following inside Spoiler // Sell briefcasescript by Nexus hellsplayground.us //Special thanks to Matt L for the frame for this. Used his carepackage script. //altered by Cherdenko for Zupa SC 3.0/4.0/Souls Hive private ["_itemUse","_cost","_hasBriefs","_body", "_hisMoney", "_myMoney", "_killsH", "_test2", "_headShots", "_test","_playeridke","_humanity","_sellPrice"]; //////////////////////////CONFIG//////////////////////////////////////S _cost = 1; //amount of item to take _itemUse = "ItemBriefCase100oz";// type of item _hasBriefs = {_itemUse == _x} count (magazines player); //no real use being here unless you make it require a tool, then change magazines to weapons //END CONFIG if (_hasBriefs >= _cost) then { for "_i" from 0 to _cost - 1 do { player removeMagazine _itemUse; }; _myMoney = player getVariable ["cashMoney",0]; _myMoney = _myMoney + 50000; // Money trade value _body setVariable ["cashMoney", 0 , true]; player setVariable ["cashMoney", _myMoney , true]; systemChat format ['You traded your brief for half price. Go to the trader next time for the full amount.']; sleep 2; _cid = player getVariable ["CharacterID","0"]; _cashmoneyZupa = player getVariable ["cashMoney",0]; if(_cashmoneyZupa > 0) then{ }else{ _cashmoneyZupa = 0; }; player setVariable ["moneychanged",1,true]; } else { }; after that add this Spoiler class ItemBriefCase100oz { class Coin { text = "Sell for half value."; script = "execVM 'custom\SellBrief.sqf'"; }; }; to your extra_rc.hpp maybe someone can also set up the code for deploy anything(im not using it at the moment, so i don´t know the format) juandayz and BigEgg 2 Link to comment Share on other sites More sharing options...
BigEgg Posted August 8, 2016 Report Share Posted August 8, 2016 Nice :) It appears that you left the credits to the people who originally worked on it so there shouldn't be a problem. Great job :) Link to comment Share on other sites More sharing options...
Cherdenko Posted August 8, 2016 Author Report Share Posted August 8, 2016 @BigEgg, why shouldn´t i? they build the script and i altered it :D i don´t see the problem, with not naming the original author ;) Link to comment Share on other sites More sharing options...
juandayz Posted August 8, 2016 Report Share Posted August 8, 2016 nice! cherdenko! Link to comment Share on other sites More sharing options...
BigEgg Posted August 9, 2016 Report Share Posted August 9, 2016 12 hours ago, Cherdenko said: @BigEgg, why shouldn´t i? they build the script and i altered it :D i don´t see the problem, with not naming the original author ;) I said there shouldn't be a problem. You misread :p 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