Thread: script upgrade

Results 1 to 8 of 8
  1. #1
    Yokujin's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0

    [Request] Script upgrade

    as i dont know all possible command lines of the game i would like to ask you if you could upgrade the script:

    function giveitems( times, type )
    for i=1, times do
    for mat_id,_ in pairs(tweak_data.blackmarket[type]) do
    if _.infamous then
    managers.blackmarket:add_to_inventory("infamous", type, mat_id, false)
    elseif _.dlc then
    managers.blackmarket:add_to_inventory("preorder", type, mat_id, false)
    else
    managers.blackmarket:add_to_inventory("normal", type, mat_id, false)
    end
    end
    managers.blackmarket:remove_item("normal", "materials", "plastic", false)
    managers.blackmarket:remove_item("normal", "colors", "nothing", false)
    managers.blackmarket:remove_item("normal", "textures", "nothing", false)

    end
    end

    giveitems( 0, "weapon_mods" )
    giveitems( 0, "masks" )
    giveitems( 0, "materials" )
    giveitems( 0, "textures" )
    giveitems( 0, "colors" )


    green part: the script gives you an amount of items... but can you rescript it making it setting the item amounts?

    red part: does it even do anything?
    Last edited by Yokujin; 09-14-2013 at 03:12 AM.

  2. #2
    Hero Keys's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    9
    -------------------------------------------------------------------------
    -- GiVE iTEmS ("masks", "materials", "textures", "colors", "weapon_mods")
    -- example: giveitems( 50, "masks")
    -------------------------------------------------------------------------
    function giveitems( times, type )
    for i=1, times do
    for mat_id,_ in pairs(tweak_data.blackmarket[type]) do
    if _.infamous then
    managers.blackmarket:add_to_inventory("infamous", type, mat_id, false)
    elseif _.dlc then
    managers.blackmarket:add_to_inventory("preorder", type, mat_id, false)
    else
    managers.blackmarket:add_to_inventory("normal", type, mat_id, false)
    end
    end
    managers.blackmarket:remove_item("normal", "materials", "plastic", false)
    managers.blackmarket:remove_item("normal", "colors", "nothing", false)
    end
    end

    giveitems( 2, "weapon_mods" )
    giveitems( 5, "masks" )
    giveitems( 5, "materials" )
    giveitems( 5, "textures" )
    giveitems( 5, "colors" )

  3. #3
    Yokujin's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Hero Keys View Post
    -
    this is the same script...

    i asked for a rescript...

    green part: the script gives you an amount of items... but can you rescript it making it SETTING the item amounts?

    like the _set_ scriptes

  4. #4
    AnarchistX's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    There was an update just an hour ago. What iphlpapi are you using i cannot get any to work.

  5. #5
    Yokujin's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    bump~ :| anyone an idea?

  6. #6
    dougbenham's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    134
    Reputation
    119
    Thanks
    1,083
    My Mood
    Pensive
    Quote Originally Posted by AnarchistX View Post
    There was an update just an hour ago. What iphlpapi are you using i cannot get any to work.
    https://www.mpgh.net/forum/754-payday...e-hotkeys.html

  7. #7
    Yokujin's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    even an alternative script will do

  8. #8
    iligal_odin's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    14
    Reputation
    12
    Thanks
    0
    My Mood
    Amused
    i wil look into this as soon as possible

Similar Threads

  1. [Request] Script / Code to upgrade Strange Weapons
    By Sirius_Black in forum Team Fortress 2 Hacks
    Replies: 3
    Last Post: 03-11-2013, 02:54 PM
  2. Borderlands2 Ammo Storage Deck Upgrade Leveler Script
    By AlexHD in forum Borderlands 2 Hacks
    Replies: 2
    Last Post: 10-16-2012, 02:56 AM
  3. AFK Script, With an upgrade
    By bAEHE%HEHE5hr in forum All Points Bulletin Reloaded Hacks
    Replies: 3
    Last Post: 09-11-2011, 06:17 AM
  4. Habbohotel Scripts
    By h0ang in forum General Game Hacking
    Replies: 8
    Last Post: 05-18-2007, 05:19 AM
  5. Fishing Store is upgraded! Holy Shit
    By Kyojiro in forum General
    Replies: 13
    Last Post: 04-22-2006, 08:20 PM