Jump to content
Sign in to follow this  

Trade your briefcase with an rightclick option

Recommended Posts

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


// 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"];
_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


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{
                _cashmoneyZupa = 0;

player setVariable ["moneychanged",1,true];    

} else {


after that add this


    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)



Share this post

Link to post
Share on other sites
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

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By Alexis
      Hello! I'm working on registration of 2.0 and 3.0, in general, already halfway successful, all the data are written and stored! But there is one problem that I can not decide! Actually it is the screenshot of the game and the error is a client and RPT!
      Error in expression <dialog = createdialog "ALDialog"; call ALDialogUpdateAmounts; waitUntil { !dia> Error position: <ALDialogUpdateAmounts; waitUntil { !dia> Error Undefined variable in expression: aldialogupdateamounts File mpmissions\__CUR_MP.Chernarus\Gold\al_dialog.sqf, line 3 As seen in the screenshot - not displayed the number of available money in the bank and inventory! Also, you can not put the money and can not be removed! The only logs the error and nothing else! I ask for help from a knowledgeable!
      and screen http://cs610828.vk.me/u31630358/docs/3b3a98c54895/2015-09-03_00001.jpg?extra=dOHGIIWE4zT9WLIJv8sLVyeFAnu5HkuQ3aDwgfbEYSjF5m9Zp2e7r_eFo99l50UTkUdD7oNtHn40QVY7H7L6bsLjuvo2XjRi
    • By Chunk. No Captain Chunk.
      Before I get into this...

      DZMS Ai with Gold Coins Script / Addon

      Onto the tutorial!

      Open up: DZMSAISpawn.sqf which is located in:
      Server.pbo > DZMS > Scripts Once you've opened up DZMSAISpawn.sqf, search for this:
      //Add the behaviour _unit enableAI "TARGET"; _unit enableAI "AUTOTARGET"; _unit enableAI "MOVE"; _unit enableAI "ANIM"; _unit enableAI "FSM"; _unit setCombatMode "YELLOW"; _unit setBehaviour "COMBAT"; Below the last line add this:
      //Zupa Currency _unit setVariable["headShots",20,true]; So it will look like this:
      //Add the behaviour _unit enableAI "TARGET"; _unit enableAI "AUTOTARGET"; _unit enableAI "MOVE"; _unit enableAI "ANIM"; _unit enableAI "FSM"; _unit setCombatMode "YELLOW"; _unit setBehaviour "COMBAT"; //Zupa Currency _unit setVariable["headShots",20,true]; Once you have done this repack and upload! Your done!


      If you want to change the value of the money spawning on each AI,change the value:
      _unit setVariable["headShots",20,true]; to
      _unit setVariable["headShots",WHATEVER YOU WANT,true]; Souls HIVE

      If you are using Souls HIVE, then instead of:
      _unit setVariable["headShots",20,true]; Change to:
      _unit setVariable["CashMoney",5000,true]; Variable Value

      If you want the AI to spawn variable values then add this:
      _cash = round(random 20) * 1000; // number between 0 and 20 000 Above this:
      _unit setVariable["headShots",20,true]; But change the line above to
      _unit setVariable["headShots",_cash,true]; This will spawn money on the AI between 0 and 20,000 Gold Coins on each AI

      Special thanks to:
      MCPimpin - Original Poster
      Zupa - Single Currency and AI Addon
      Soul - Custom Hive for Single Currency
      TheVampire - DZMS


      I take no credit, just informing people!

      See it working at:
  • Advertisement
  • Supporters
  • Discord

  • Create New...