Author Topic: Get all Items from Life Missions...  (Read 2232 times)

0 Members and 1 Guest are viewing this topic.

killerCH

  • Poptart
  • *
  • Posts: 7
    • View Profile
Get all Items from Life Missions...
« on: December 31, 2011, 04:43:53 pm »
Hi there ...

Im new, low level knowledged of sqf Programming ( PHP is my world ;-) ) and use this site to get some info's to learn more about to hack Arma. Here some code from "me" (i learned from other, some pieces are from another scripts but the idea to read out the masterarray and use the existing menu's is from me), to share with you ... you can use it only in life missions, because it spawns the mission menu's that already exist's. I know the lack of entering a number for the amount of the specific item, but hey .... somewhere is the begin ;-)

choosing_script:

if (!(createDialog "distribute")) exitWith {hint "Dialog Error!"};
for [{_c=0}, {_c < (count INV_AlleItemsArray)}, {_c=_c+1}] do

{   
   _myItem = INV_AlleItemsArray select _c;
   
   Item = _myItem select 2;
   ItemID = Item select 0;
   ItemInfo = Item select 1;

   
   _index = lbAdd [1, format["Item: %1 (%2)", ItemInfo, ItemID] ];
   lbSetData [1, _index, format["%1", str(Item) ] ];
   buttonSetAction [2, " [lbData [1, (lbCurSel 1)],""""] execVM ""\mod-app\getItem.sqf""; " ];

};

GetItem Script:
// Parameters
   Param_ = _this select 0;
   Item_ = call compile (Param_);
   ItemID_ = Item_ select 0;

// spawn Item
   [ItemID_, +(1)] call INV_AddInventoryItem;
      
   ItemID_ = nil;
   Item_ = nil;

If you found this not helpful or lame, let me know i want not be the wannabe - im only interested to give something back to the community ...

Cheers
killerCH

Kr4nkl0r

  • Online Villain
  • ***
  • Posts: 104
    • View Profile
Re: Get all Items from Life Missions...
« Reply #1 on: December 31, 2011, 08:02:22 pm »
tried....

seems a bit buggy...some items like pistols or rifle arent usable

killerCH

  • Poptart
  • *
  • Posts: 7
    • View Profile
Re: Get all Items from Life Missions...
« Reply #2 on: January 01, 2012, 02:48:39 am »
Pistol and Rifle represents only, that you have one, not more not less ... means, you need also to create pistol / rifle in the old way like spawn it. The pistol and rifle entry in the items list is only for the police to check it over the entry (search inventar) in the action menu.

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: Get all Items from Life Missions...
« Reply #3 on: January 18, 2012, 12:39:03 am »
Made this 2-3 years ago. Should help you with adding more than 1 of an object.


Load all items into a list with the ID 999:
Code: [Select]
for [{_i=0}, {_i < (count INV_AlleItemsArray)}, {_i=_i+1}] do

{

_item         = INV_AlleItemsArray select _i;
_infos        = _item call INV_getitemArray;
_name         = (_infos call INV_getitemName);
_weight  = _infos call INV_getitemTypeKg;
_scriptname   = _item call INV_getitemScriptName;

_index = lbAdd [999,format ["%1 (%2kg)", _name, (_infos call INV_getitemTypeKg)] ];

lbSetData [999,_index, format ["%1", _scriptname] ];


};

Make this the action for your add button:

Code: [Select]
action = "[] execVM 'ADDSCRIPT.sqf';";

Have a text box ID 1008 for the amount.

Add script (This is very sloppy coding, it was the best way I could find when doing this to other players. Just for yourself it should be a lot easier.):

Code: [Select]

_add = lbData [999, (lbCurSel 999)];
_amount = (parseNumber ctrlText 1008);

add2 = format ["%1",_add];                        // Format = Read what value this points to, not what it says
amount2 = format ["%1",_amount];

[add2,amount2] call INV_Addinventoryitem;
"Now we are going to watch my boys do it" - Joopig

Scing

  • Relentless Teamkiller
  • **
  • Posts: 90
    • View Profile
Re: Get all Items from Life Missions...
« Reply #4 on: January 18, 2012, 01:06:44 am »
Now, if only I had the knowledge to bypass BE+SigChecks to be able to use all my old scripts =P

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Get all Items from Life Missions...
« Reply #5 on: January 18, 2012, 01:29:45 am »
Now, if only I had the knowledge to bypass BE+SigChecks to be able to use all my old scripts =P

most of the knowledge is available.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

Scing

  • Relentless Teamkiller
  • **
  • Posts: 90
    • View Profile
Re: Get all Items from Life Missions...
« Reply #6 on: January 18, 2012, 08:43:31 am »
Search for me doesn't turn up anything MrM. There's a bunch of edited posts by you that haz trollface on.

Majority are either edited, or no longer apply to current version.

bouncer123

  • Klass Klown
  • ***
  • Posts: 349
    • View Profile
Re: Get all Items from Life Missions...
« Reply #7 on: January 18, 2012, 04:17:16 pm »
its really simple: edit the packet with WPE, ie log the valid sig packet (when no hacks on)and replace keys from it in the invalid packet (when you use a modified ui or so).. nothing new realy.

you can bet even medic posted that before but then deleted it as the coward he is :P hope hes not crying now :D

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Get all Items from Life Missions...
« Reply #8 on: January 18, 2012, 05:34:46 pm »
Detected since 1.14 of battleye.

try what bouncer has posted you will end up guid banned.




EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

bouncer123

  • Klass Klown
  • ***
  • Posts: 349
    • View Profile
Re: Get all Items from Life Missions...
« Reply #9 on: January 18, 2012, 05:35:35 pm »
Be carefull if you try what bounder has posted you will more than likely end up guid banned.
lol, why did you post the exact same method then? i know it works

we both know you did and delated the thread shorttime after.... not attacking you, just posting thruth (as alwys). why did you delete it if youre not a coward? ;)


edit: comon man, stop editing your posts all the time, thats just lame.

bouncer123

  • Klass Klown
  • ***
  • Posts: 349
    • View Profile
Re: Get all Items from Life Missions...
« Reply #10 on: January 18, 2012, 05:38:28 pm »
Detected since 1.14 of battleye.

try what bouncer has posted you will end up guid banned.





lol, you edited that post at least 3 times now.

its not detected, just close wpe after youre done, heck there is even a sticky that explains this, lol

bouncer123

  • Klass Klown
  • ***
  • Posts: 349
    • View Profile
Re: Get all Items from Life Missions...
« Reply #11 on: January 18, 2012, 05:42:48 pm »
even lamer that you send me pms but block me from replyng, lol! i wanted to tell you something important :)

anyway, lets be happy and work together ok? just posting some facts that helps others here, no need to attack me for it


edit: btw medic, push me hard enough and i will just post a working hack (like a wpe filter for starters).... just stop lyng man, people are asking for help here..
« Last Edit: January 18, 2012, 06:03:37 pm by bouncer123 »

i mss old ofp

  • Insane Joker
  • ****
  • Posts: 982
  • i love the fact that you hate me.
    • View Profile
    • TKC
Re: Get all Items from Life Missions...
« Reply #12 on: January 18, 2012, 09:46:00 pm »
even lamer that you send me pms but block me from replyng, lol! i wanted to tell you something important :)

anyway, lets be happy and work together ok? just posting some facts that helps others here, no need to attack me for it


edit: btw medic, push me hard enough and i will just post a working mod-app (like a wpe filter for starters).... just stop lyng man, people are asking for help here..
lol he did the same to me , even edits my posts or has somone delete them.
i have nothing against noone here, but i get alot of bs from a few, hes 1.
692063616E206C6F616420612070626F6F6E2074686520666C79206C6D616F00

the joke is you!!!!

bouncer123

  • Klass Klown
  • ***
  • Posts: 349
    • View Profile
Re: Get all Items from Life Missions...
« Reply #13 on: January 18, 2012, 10:26:10 pm »
me ? aww man dont be so harsh , no need for that.  :smile

ps mate il call the war off now if you want to or it can continue because to be honest with you ofp i dont care either way , our aim is to beat the anti cheat all arguing on a forum will acheive is usually it help the anticheat out ,but post away if you wish to continue , no skin off my nose.

bouncer , isnt worth replying to so i wont.


well, i wanted to suggest to you via pm to stop fighting/insultng/ridiculing and work together, but i couldnt as you know lol

bouncer123

  • Klass Klown
  • ***
  • Posts: 349
    • View Profile
Re: Get all Items from Life Missions...
« Reply #14 on: January 18, 2012, 10:28:31 pm »
me ? aww man dont be so harsh , no need for that.  :smile

ps ofp il call the war off now if you want to or it can continue to be honest with you ofp wether you have mod-apps or not i dont care either way , our aim is to beat the anti cheat all arguing on a forum acheive's is absolutley nothing.

bouncer , isnt worth replying to he is classed as a super noob to me :smile..


and on he goes, lol. so far for calling off war....

happy to be a supernoob with a working bypass :P