1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Di: 01 Juli 2025
  • Anmelden oder registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Mitglieder
    3. SpongebobUndPatrick

    Beiträge von SpongebobUndPatrick

    • GA-Gaming Reboot stellt sich vor

      • SpongebobUndPatrick
      • 27. Dezember 2017 um 01:27

      Das GA-Gaming Team veranstaltet am 29.12.17 ein Kopfgeldevent. Es geht darum, dass eine bestimmte Person, in dem Fall der Eventmanager, von den Rebellen gesucht wird, da er diese an die Polizei verraten hat.

      Weitere Informationen -> https://ga-gaming-forum.de/index.php?thre…017-um-16-15uhr

      Ich würde mich sehr über viele Mitspieler freuen und ich denke auch die anderen.

    • Altis Life Server (max. 80 Spieler)

      • SpongebobUndPatrick
      • 13. Dezember 2017 um 21:05

      Hallo :)

      ich suche derzeit einen neuen unmodded Altis Server, der maximal durchschnittel 80 Spieler aufweißt, aber mindestens 25.

      Der Grund ist dabei, dass ich gerne erneut als Polizist spielen möchte, ohne 40 Stunden Spielzeit als Zivilist zu haben, was mir überhaupt keinen Spaß macht.

      Wenn es geht, würde mich eine deutsche Polizei sehr interessieren :D Zu mir: 16 Jahre; 3800 Spielstunden - meiste Zeit als Mitglied eines MilSim Clans und Altis Life Cop.

      viele Grüße.

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 6. August 2017 um 20:53
      Spoiler anzeigen
      Code: fn_processAction.sqf
      #include "..\..\script_macros.hpp"
      /*
          File: fn_processAction.sqf
          Author: Bryan "Tonic" Boardwine
          Modified : NiiRoZz
      
          Description:
          Master handling for processing an item.
          NiiRoZz : Added multiprocess
      */
      private["_text1","_text2","_vendor","_type","_itemInfo","_oldItem","_newItemWeight","_newItem","_oldItemWeight","_cost","_upp","_hasLicense","_itemName","_oldVal","_ui","_progress","_pgText","_cP","_materialsRequired","_materialsGiven","_noLicenseCost","_text","_filter","_totalConversions","_minimumConversions"];
      _vendor = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
      _type = [_this,3,"",[""]] call BIS_fnc_param;
      //Error check
      if (isNull _vendor || _type isEqualTo "" || (player distance _vendor > 10)) exitWith {};
      life_action_inUse = true;//Lock out other actions during processing.
      
      if (isClass (missionConfigFile >> "ProcessAction" >> _type)) then {
          _filter = false;
          _materialsRequired = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsReq");
          _materialsGiven = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsGive");
          _noLicenseCost = M_CONFIG(getNumber,"ProcessAction",_type,"NoLicenseCost");
          _text = M_CONFIG(getText,"ProcessAction",_type,"Text");
      } else {_filter = true;};
      
      if (_filter) exitWith {life_action_inUse = false;};
      
      _itemInfo = [_materialsRequired,_materialsGiven,_noLicenseCost,(localize format["%1",_text])];
      if (count _itemInfo isEqualTo 0) exitWith {life_action_inUse = false;};
      
      //Setup vars.
      _oldItem = _itemInfo select 0;
      _newItem = _itemInfo select 1;
      _cost = _itemInfo select 2;
      _upp = _itemInfo select 3;
      _exit = false;
      if (count _oldItem isEqualTo 0) exitWith {life_action_inUse = false;};
      
      _totalConversions = [];
      {
          _var = ITEM_VALUE(_x select 0);
          if (_var isEqualTo 0) exitWith {_exit = true;};
          if (_var < (_x select 1)) exitWith {_exit = true;};
          _totalConversions pushBack (floor (_var/(_x select 1)));
      } forEach _oldItem;
      
      if (_exit) exitWith {life_is_processing = false; hint localize "STR_NOTF_NotEnoughItemProcess"; life_action_inUse = false;};
      
      if (_vendor in [mari_processor,coke_processor,heroin_processor]) then {
          _hasLicense = true;
      } else {
          _hasLicense = LICENSE_VALUE(_type,"civ");
      };
      
      _cost = _cost * (count _oldItem);
      private ["_oldItem"];
      _oldItem = _itemInfo select 0;
      
      _minimumConversions = _totalConversions call BIS_fnc_lowestNum;
      _oldItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _oldItemWeight = _oldItemWeight + _weight;
      } count _oldItem;
      
      _newItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _newItemWeight = _newItemWeight + _weight;
      } count _newItem;
      
      _exit = false;
      
      if (_newItemWeight > _oldItemWeight) then {
          _netChange = _newItemWeight - _oldItemWeight;
          _freeSpace = life_maxWeight - life_carryWeight;
          if (_freeSpace < _netChange) exitWith {_exit = true;};
          _minimumConversions = floor(_freeSpace / _netChange);
      };
      
      if (_exit) exitWith {hint localize "STR_Process_Weight"; life_is_processing = false; life_action_inUse = false;};
      
      /*Setup our progress bar.
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNamespace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["%2 (1%1)...","%",_upp];
      _progress progressSetPosition 0.01;
      _cP = 0.01;*/
      
      _text1 = "";
      _text2 = "";
      {
       _text1 = _text1 + (localize (getText(missionConfigFile >> "VirtualItems" >> _x select 0 >> "displayName"))) + " ";
      } count _oldItem;
      {
       _text2 = _text2 + (localize (getText(missionConfigFile >> "VirtualItems" >> _x select 0 >> "displayName"))) + " ";
      } count _newItem;
      
      fertigmitLizenz = {
          private ["_oldItem"];
          _oldItem = _itemInfo select 0;
          
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
      
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
      
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {[format[localize "STR_NOTF_ProcessedItems", _text1, _text2],"Verarbeitung","green",false] call MSG_fnc_handle;} else {/*nicht genug platz - weniger items*/[format[localize "STR_NOTF_ProcessedItems", _text1, _text2],"Verarbeitung","orange",false] call MSG_fnc_handle;};
          life_is_processing = false;
          life_action_inUse = false;
      };
      
      fertigohneLizenz = {
          private ["_oldItem"];
          _oldItem = _itemInfo select 0;
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
      
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
      
          //5 cutText ["","PLAIN"];
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};
          CASH = CASH - _cost;
          [format[localize "STR_NOTF_ProcessedItems", _text1, _text2],"Verarbeitung","green",false] call MSG_fnc_handle;
          life_is_processing = false;
          life_action_inUse = false;
      };
          
      life_is_processing = true;
      
      if (_hasLicense) then {
          [60,[], 
              {_this call fertigmitLizenz},
              {[localize "STR_NOTF_AbortProcess","Verarbeitung","red",false] remoteExec ["MSG_fnc_handle",player]; life_is_processing = false; life_action_inUse = false;},
              format[localize "STR_NOTF_Process",_text1],{},["",0]
          ] spawn rl_fnc_progressBar;
      } else {
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          [90,[], 
              {_this call fertigohneLizenz},
              {[localize "STR_NOTF_AbortProcess","Verarbeitung","red",false] remoteExec ["MSG_fnc_handle",player]; life_is_processing = false; life_action_inUse = false;},
              format[localize "STR_NOTF_Process",_text1],{},["",0]
          ] spawn rl_fnc_progressBar;
      };
      Alles anzeigen
    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 6. August 2017 um 19:38

      Super funktioniert soweit, nur das da statt normal Kupfererz: "$Kupfererz" steht.

      Außerdem ist ein neuer Error hinzugekommen:

      Spoiler anzeigen
      Code
      private ["_oldItem"];
      _oldItem = _itemInfo select 0;
      
      {
      [false,(_x select>
      19:33:48   Error position: <_itemInfo select 0;
      
      {
      [false,(_x select>
      19:33:48   Error Nicht definierte Variable in Ausdruck: _iteminfo
      19:33:48 File core\actions\fn_processAction.sqf [life_fnc_processAction], line 159
      Alles anzeigen

      obwohl die _iteminfo im private[] ist und auch definiert ist.

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 6. August 2017 um 02:03

      Bei deiner Version:

      Spoiler anzeigen
      Code
      1:49:31 Error in expression <ext(missionConfigFile >> "VirtualItems" >> _oldItem >> "displayName"))],{},["",0>
       1:49:31   Error position: <>> _oldItem >> "displayName"))],{},["",0>
       1:49:31   Error >>: Typ Array, erwartet Zeichenfolge
       1:49:31 File core\actions\fn_processAction.sqf [life_fnc_processAction], line 191

      Hab dann mal bei _olditem in zwei " gesetzt, dann wird aber nichts angezeigt.

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 6. August 2017 um 00:25

      Habe ich am Anfang auch probiert, nicht das gewünschte Ergebnis.

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 5. August 2017 um 21:43

      Hat niemand eine Idee?

      Verzweifle langsam an diesem Problem, habe auch schon ein $ versucht davor zu machen und es funktioniert nicht.

      Im Spoiler (ein Beitrag drüber) sind alle Informationen, die nötig sind.

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 2. August 2017 um 01:46

      STR_Item_CopperOre wird verarbeitet...

      Das wird einmal ausgegeben über meiner Progressbar

      und im Hint

      wurde zu verarbeitet.
      Also ohne irgendwas eingesetztes. Außerdem habe ich folgenden Error:

      Spoiler anzeigen
      Code
      1:43:23 Error in expression <;
      
      fertigohneLizenz = {
      if (life_cash < _cost) exitWith {hint format[localize "S>
       1:43:23   Error position: <_cost) exitWith {hint format[localize "S>
       1:43:23   Error Nicht definierte Variable in Ausdruck: _cost
       1:43:23 File core\actions\fn_processAction.sqf [life_fnc_processAction], line 163
       1:43:36 Error in expression <nses" >> _varName >> "variable")];
      
      if (life_cash < _price) exitWith {hint forma>
       1:43:36   Error position: <life_cash < _price) exitWith {hint forma>
       1:43:36   Error Nicht definierte Variable in Ausdruck: life_cash
       1:43:36 File core\actions\fn_buyLicense.sqf [life_fnc_buyLicense], line 74
      Alles anzeigen
      Code: fn_processAction.sqf
      #include "..\..\script_macros.hpp"
      /*
          File: fn_processAction.sqf
          Author: Bryan "Tonic" Boardwine
          Modified : NiiRoZz
      
          Description:
          Master handling for processing an item.
          NiiRoZz : Added multiprocess
      */
      private["_vendor","_type","_itemInfo","_oldItem","_newItemWeight","_newItem","_oldItemWeight","_cost","_upp","_hasLicense","_itemName","_oldVal","_ui","_progress","_pgText","_cP","_materialsRequired","_materialsGiven","_noLicenseCost","_text","_filter","_totalConversions","_minimumConversions"];
      _vendor = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
      _type = [_this,3,"",[""]] call BIS_fnc_param;
      //Error check
      if (isNull _vendor || _type isEqualTo "" || (player distance _vendor > 10)) exitWith {};
      life_action_inUse = true;//Lock out other actions during processing.
      
      if (isClass (missionConfigFile >> "ProcessAction" >> _type)) then {
          _filter = false;
          _materialsRequired = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsReq");
          _materialsGiven = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsGive");
          _noLicenseCost = M_CONFIG(getNumber,"ProcessAction",_type,"NoLicenseCost");
          _text = M_CONFIG(getText,"ProcessAction",_type,"Text");
      } else {_filter = true;};
      
      if (_filter) exitWith {life_action_inUse = false;};
      
      _itemInfo = [_materialsRequired,_materialsGiven,_noLicenseCost,(localize format["%1",_text])];
      if (count _itemInfo isEqualTo 0) exitWith {life_action_inUse = false;};
      
      //Setup vars.
      _oldItem = _itemInfo select 0;
      _newItem = _itemInfo select 1;
      _cost = _itemInfo select 2;
      _upp = _itemInfo select 3;
      _exit = false;
      if (count _oldItem isEqualTo 0) exitWith {life_action_inUse = false;};
      
      _totalConversions = [];
      {
          _var = ITEM_VALUE(_x select 0);
          if (_var isEqualTo 0) exitWith {_exit = true;};
          if (_var < (_x select 1)) exitWith {_exit = true;};
          _totalConversions pushBack (floor (_var/(_x select 1)));
      } forEach _oldItem;
      
      if (_exit) exitWith {life_is_processing = false; hint localize "STR_NOTF_NotEnoughItemProcess"; life_action_inUse = false;};
      
      if (_vendor in [mari_processor,coke_processor,heroin_processor]) then {
          _hasLicense = true;
      } else {
          _hasLicense = LICENSE_VALUE(_type,"civ");
      };
      
      _cost = _cost * (count _oldItem);
      private ["_oldItem"];
      _oldItem = _itemInfo select 0;
      
      _minimumConversions = _totalConversions call BIS_fnc_lowestNum;
      _oldItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _oldItemWeight = _oldItemWeight + _weight;
      } count _oldItem;
      
      _newItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _newItemWeight = _newItemWeight + _weight;
      } count _newItem;
      
      _exit = false;
      
      if (_newItemWeight > _oldItemWeight) then {
          _netChange = _newItemWeight - _oldItemWeight;
          _freeSpace = life_maxWeight - life_carryWeight;
          if (_freeSpace < _netChange) exitWith {_exit = true;};
          _minimumConversions = floor(_freeSpace / _netChange);
      };
      
      if (_exit) exitWith {hint localize "STR_Process_Weight"; life_is_processing = false; life_action_inUse = false;};
      
      /*Setup our progress bar.
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNamespace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["%2 (1%1)...","%",_upp];
      _progress progressSetPosition 0.01;
      _cP = 0.01;*/
      
      fertigmitLizenz = {
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
      
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
      
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {[format[localize "STR_NOTF_ProcessedItems", ITEM_NAME(_materialsRequired select 0 select 0), ITEM_NAME(_materialsGiven select 0 select 0)],"Verarbeitung","green",false] call MSG_fnc_handle;} else {/*nicht genug platz - weniger items*/[format[localize "STR_NOTF_ProcessedItems", ITEM_NAME(_materialsRequired select 0 select 0), ITEM_NAME(_materialsGiven select 0 select 0)],"Verarbeitung","orange",false] call MSG_fnc_handle;};
          life_is_processing = false;
          life_action_inUse = false;
      };
      
      fertigohneLizenz = {
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
      
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
      
          //5 cutText ["","PLAIN"];
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};
          CASH = CASH - _cost;
          [format[localize "STR_NOTF_ProcessedItems", ITEM_NAME(_materialsRequired select 0 select 0), ITEM_NAME(_materialsGiven select 0 select 0)],"Verarbeitung","green",false] call MSG_fnc_handle;
          life_is_processing = false;
          life_action_inUse = false;
      };
          
      life_is_processing = true;
      
      if (_hasLicense) then {
          [60,[], 
              {_this call fertigmitLizenz},
              {[localize "STR_NOTF_AbortProcess","Verarbeitung","red",false] remoteExec ["MSG_fnc_handle",player]; life_is_processing = false; life_action_inUse = false;},
              format[localize "STR_NOTF_Process",ITEM_NAME(_materialsRequired select 0 select 0)],{},["",0]
          ] spawn rl_fnc_progressBar;
          /*for "_i" from 0 to 1 step 0 do {
              sleep  0.28;
              _cP = _cP + 0.01;
              _progress progressSetPosition _cP;
              _pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
              if (_cP >= 1) exitWith {};
              if (player distance _vendor > 10) exitWith {};
          };
          if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};*/
      } else {
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
      
          /*for "_i" from 0 to 1 step 0 do {
              sleep  0.9;
              _cP = _cP + 0.01;
              _progress progressSetPosition _cP;
              _pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
              if (_cP >= 1) exitWith {};
              if (player distance _vendor > 10) exitWith {};
          };*/
          
          [90,[], 
              {_this call fertigohneLizenz},
              {[localize "STR_NOTF_AbortProcess","Verarbeitung","red",false] remoteExec ["MSG_fnc_handle",player]; life_is_processing = false; life_action_inUse = false;},
              format[localize "STR_NOTF_Process",ITEM_NAME(_materialsRequired select 0 select 0)],{},["",0]
          ] spawn rl_fnc_progressBar;
      
          /*if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};*/
      };
      Alles anzeigen
    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 1. August 2017 um 23:06

      [["salt_unrefined",1]] wurde zu [["salt_refined",1]] verarbeitet.

      Das ist rausgekommen. Also nicht so wie gewünscht :/

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 1. August 2017 um 21:52

      Ja allerdings will ich das so aufbauen:

      hint format ["%1 wurde zu %2 verarbeitet.", _altesItem, _neuesItem];

      Allerdings würde es doch nach dem Code so aussehen:

      [["salt_unrefined",1]] wurde zu [["salt_refined",1]] verarbeitet.

      oder halt

      Salz wird verarbeitet [_text] wurde zu ??? verarbeitet. 

    • Name der Items | fn_processAction.sqf

      • SpongebobUndPatrick
      • 1. August 2017 um 20:33

      Hallo,

      ich will gerne wissen welche Variable in der fn_processAction.sqf dafür ist, den Namen des zu verarbeitenden Item und des bereits verarbeiteten Item heraus zu kriegen oder ob es überhaupt so eine Variable gibt, weil ich erkenne jetzt so nichts.

      Spoiler anzeigen
      Code: fn_processAction.sqf
      #include "..\..\script_macros.hpp"
      /*
          File: fn_processAction.sqf
          Author: Bryan "Tonic" Boardwine
          Modified : NiiRoZz
          Description:
          Master handling for processing an item.
          NiiRoZz : Added multiprocess
      */
      private["_vendor","_type","_itemInfo","_oldItem","_newItemWeight","_newItem","_oldItemWeight","_cost","_upp","_hasLicense","_itemName","_oldVal","_ui","_progress","_pgText","_cP","_materialsRequired","_materialsGiven","_noLicenseCost","_text","_filter","_totalConversions","_minimumConversions"];
      _vendor = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
      _type = [_this,3,"",[""]] call BIS_fnc_param;
      //Error check
      if (isNull _vendor || _type isEqualTo "" || (player distance _vendor > 10)) exitWith {};
      life_action_inUse = true;//Lock out other actions during processing.
      if (isClass (missionConfigFile >> "ProcessAction" >> _type)) then {
          _filter = false;
          _materialsRequired = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsReq");
          _materialsGiven = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsGive");
          _noLicenseCost = M_CONFIG(getNumber,"ProcessAction",_type,"NoLicenseCost");
          _text = M_CONFIG(getText,"ProcessAction",_type,"Text");
      } else {_filter = true;};
      if (_filter) exitWith {life_action_inUse = false;};
      _itemInfo = [_materialsRequired,_materialsGiven,_noLicenseCost,(localize format["%1",_text])];
      if (count _itemInfo isEqualTo 0) exitWith {life_action_inUse = false;};
      //Setup vars.
      _oldItem = _itemInfo select 0;
      _newItem = _itemInfo select 1;
      _cost = _itemInfo select 2;
      _upp = _itemInfo select 3;
      _exit = false;
      if (count _oldItem isEqualTo 0) exitWith {life_action_inUse = false;};
      _totalConversions = [];
      {
          _var = ITEM_VALUE(_x select 0);
          if (_var isEqualTo 0) exitWith {_exit = true;};
          if (_var < (_x select 1)) exitWith {_exit = true;};
          _totalConversions pushBack (floor (_var/(_x select 1)));
      } forEach _oldItem;
      if (_exit) exitWith {life_is_processing = false; hint localize "STR_NOTF_NotEnoughItemProcess"; life_action_inUse = false;};
      if (_vendor in [mari_processor,coke_processor,heroin_processor]) then {
          _hasLicense = true;
      } else {
          _hasLicense = LICENSE_VALUE(_type,"civ");
      };
      _cost = _cost * (count _oldItem);
      _minimumConversions = _totalConversions call BIS_fnc_lowestNum;
      _oldItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _oldItemWeight = _oldItemWeight + _weight;
      } count _oldItem;
      _newItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _newItemWeight = _newItemWeight + _weight;
      } count _newItem;
      _exit = false;
      if (_newItemWeight > _oldItemWeight) then {
          _netChange = _newItemWeight - _oldItemWeight;
          _freeSpace = life_maxWeight - life_carryWeight;
          if (_freeSpace < _netChange) exitWith {_exit = true;};
          _minimumConversions = floor(_freeSpace / _netChange);
      };
      if (_exit) exitWith {hint localize "STR_Process_Weight"; life_is_processing = false; life_action_inUse = false;};
      /*Setup our progress bar.
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNamespace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["%2 (1%1)...","%",_upp];
      _progress progressSetPosition 0.01;
      _cP = 0.01;*/
      fertigmitLizenz = {
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {[format[localize "STR_NOTF_ProcessedItems", _oldVal,_newItem],"Verarbeitung","green",false] call MSG_fnc_handle;} else {/*nicht genug platz - weniger items*/[format[localize "STR_NOTF_ProcessedItems", _oldVal, _newItem],"Verarbeitung","orange",false] call MSG_fnc_handle;};
          life_is_processing = false;
          life_action_inUse = false;
      };
      fertigohneLizenz = {
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
          //5 cutText ["","PLAIN"];
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};
          CASH = CASH - _cost;
          [format[localize "STR_NOTF_ProcessedItems", _oldVal, _newItem],"Verarbeitung","green",false] call MSG_fnc_handle;
          life_is_processing = false;
          life_action_inUse = false;
      };
          
      life_is_processing = true;
      if (_hasLicense) then {
          [60,[], 
              {_this call fertigmitLizenz},
              {[localize "STR_NOTF_AbortProcess","Verarbeitung","red",false] remoteExec ["MSG_fnc_handle",player]; life_is_processing = false; life_action_inUse = false;},
              format[localize "STR_NOTF_Process",_oldVal],{},["",0]
          ] spawn rl_fnc_progressBar;
          /*for "_i" from 0 to 1 step 0 do {
              sleep  0.28;
              _cP = _cP + 0.01;
              _progress progressSetPosition _cP;
              _pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
              if (_cP >= 1) exitWith {};
              if (player distance _vendor > 10) exitWith {};
          };
          if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};*/
      } else {
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          /*for "_i" from 0 to 1 step 0 do {
              sleep  0.9;
              _cP = _cP + 0.01;
              _progress progressSetPosition _cP;
              _pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
              if (_cP >= 1) exitWith {};
              if (player distance _vendor > 10) exitWith {};
          };*/
          
          [90,[], 
              {_this call fertigohneLizenz},
              {[localize "STR_NOTF_AbortProcess","Verarbeitung","red",false] remoteExec ["MSG_fnc_handle",player]; life_is_processing = false; life_action_inUse = false;},
              format[localize "STR_NOTF_Process",_oldItem],{CASH > _cost},["",0]
          ] spawn rl_fnc_progressBar;
          /*if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};*/
      };
      Alles anzeigen
    • [Tutorial][Message System][V1.1] Alternative für Hints & Co.

      • SpongebobUndPatrick
      • 30. Juli 2017 um 02:57
      Zitat von DerL30N

      Wenn ich das jetzt wo verstehe wie du es vlt meinst, dann wären wir wieder bei der normalen Hint Funktion....

      Also die Nachrichten werden ja "mit neuen überschrieben" aber dauert es kurze Zeit bis man diese sieht, da die Aktuelle ( also die alte Nachricht ) noch angezeigt ist

      Ja, allerdings will ich das so haben, dass die Nachricht sofort überschrieben wird und nicht erst, wenn die alte verschwindet.

    • [Tutorial][Message System][V1.1] Alternative für Hints & Co.

      • SpongebobUndPatrick
      • 27. Juli 2017 um 07:11

      Hallo,

      könnte man es so scripten, dass die alte Nachricht mit einer neuen überschrieben werden kann, falls eine eingehen sollte?

      Wäre sehr dankbar, weil ich blicke mit den ganzen Dialogen da eher weniger durch, eine Erklärung dazu wäre ganz hilfreich :)

      MfG.

    • Polizei Uniform Lädt nicht

      • SpongebobUndPatrick
      • 15. Juli 2017 um 01:36

      Damit sollte es klappen:

      Uniformen Texturieren via Script/Funktion (Rucksack unsichtbar machen optional!)

    • Schmerzmittel langsam heilend

      • SpongebobUndPatrick
      • 14. Juli 2017 um 00:54

      Danke für die Tipps. Ich merke sie mir. Allerdings ist das Problem, dass man trotzdessen nach der Einnahme der Schmerzmittel (ein zweites mal innerhalb 5 min) kein Schaden davon erhält.

      Code
      case (_item isEqualTo>
       1:05:54   Error Allgemeiner Fehler in Ausdruck
       1:05:54 File core\pmenu\fn_useItem.sqf [life_fnc_useItem], line 126
       1:05:54 Suspending not allowed in this context
       1:05:54 Error in expression <.06); mytag_gvar_consumedMorphin= true; sleep 300; mytag_gvar_consumedMorphin= f>
       1:05:54   Error position: <sleep 300; mytag_gvar_consumedMorphin= f>
       1:05:54   Error Allgemeiner Fehler in Ausdruck
       1:05:54 File core\pmenu\fn_useItem.sqf [life_fnc_useItem], line 123
       1:05:54 Suspending not allowed in this context
       1:05:54 Error in expression <rphin= false; };
      };
      _timer = _timer -1;
      sleep 1;
      };
      };
      };
      
      case (_item isEqualTo>
       1:05:54   Error position: <sleep 1;
      };
      };
      };
      Alles anzeigen
    • Schmerzmittel langsam heilend

      • SpongebobUndPatrick
      • 13. Juli 2017 um 23:11

      Hallo,

      ich habe versucht mein Schmerzmittel so aufzubauen, dass es in 15 Sekunden einen Spieler vollheilt, sollte dann nochmal in den nächsten 5 Minuten ein Schmerzmittel genommen werden, so verliert der Spieler Leben.

      Allerdings funktioniert dies nicht, er fügt zwar so wie es aussieht ein wenig Leben hinzu, allerdings läuft der "Timer" nicht.

      Code
      case (_item isEqualTo "schmerzmittel"): {
              _schaden = getdammage player;
              _timer = 15;
              if (_schaden isEqualTo 0) exitWith {hint "Du brauchst kein Schmerzmittel!";};
              if ([false,_item,1] call life_fnc_handleInv) then {
                  while {_timer > 0 || _schaden isEqualTo 0} do
                  {
                      if(_timer isEqualTo 15) then { if(_5min) exitWith {player setDamage (_schaden + 0.3);}; _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 14) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 13) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 12) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 11) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 10) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 9) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 8) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 7) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 6) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 5) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 4) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 3) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 2) then { _timer = _timer -1; player setDamage (_schaden - 0.06); };
                      if(_timer isEqualTo 1) then { _timer = _timer -1; player setDamage (_schaden - 0.06); _5min = true; sleep 300; _5min = false;};
                  };
              };
          };
      Alles anzeigen

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™