Reality DayZ Heli/Care loot manager [PHP]

Discussion in 'Downloads' started by meistr, Feb 4, 2013.

  1. meistr

    meistr New Member

    Joined:
    Feb 4, 2013
    Messages:
    2
    Likes Received:
    1
    Greetings!
    Since this is my first post on this forum, and in the DayZ private hive community in general.
    I feel like starting with giving something back.

    Put together a small PHP script which loads all currently possible weapons and some items(missing a few i know)

    it stores the available items, your selected loot for care packages and heli crashes in a mysql database for easy editing later on. (Tweaking) ((Having the entire server run around with as50's isnt cool))

    Screenshots:

    Selecting a weapon/item from the menu show's the corresponding image of the item.
    [​IMG]
    View Larger
    Here you can see the two arrays that you paste in your server_functions.sqf /fnc_carePkgs.sqf
    [​IMG]
    View larger
    Installation:

    1. Create a database on your MySQL server using a MySQL management tool of your choosing or use an existing database.
    2. Dump the 3 .sql files into the database.

    3. Edit the loot.php files, set your password, and MySQL credentials.

    4. ?????

    5. Profit


    If you look at the code and cry you eyes out at night because its so bad, feel free to commit any changes you deem appropriate for increased security,functionality or design.


    Link to the git hub

    https://github.com/meistrr/crash_care
     
    JoSh0 likes this.
  2. -Daemon-

    -Daemon- New Member

    Joined:
    Feb 4, 2013
    Messages:
    14
    Likes Received:
    0
    This doesn't work on 1.7.5.1 does it?
     
  3. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    I think all loot manipulation has gotten hosed. It's completely ignoring my fixes to spawn_loot.sqf from what I can see. F!
     
  4. -Daemon-

    -Daemon- New Member

    Joined:
    Feb 4, 2013
    Messages:
    14
    Likes Received:
    0
    Very true. They altered the way a lot of the loot was called in. Truly a bad call (see what I did there?) on their part. Waiting on 1.7.5.2 now :D
     
  5. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    Did they though? It certainly all looks the same to me. There are few minor changes but I still see lots of references to the spawn_loot.cfg which spawns everything.
     
  6. -Daemon-

    -Daemon- New Member

    Joined:
    Feb 4, 2013
    Messages:
    14
    Likes Received:
    0
    It looks like our host may or may not have moved, added, or deleted some of the content in an effort to make the new code work with their structure. If that is the case, this tool will be amazing.
     
  7. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
  8. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    Not on 1.7.5.1 it isn't. Been using it for ages and it broke in 1.7.5.1
     
  9. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
    it does work, but a lot of the weapons got banned. compare the list.
     
    Waylon101 likes this.
  10. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    paste your init.sqf and spawn_loot.sqf please.
     
  11. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
  12. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    Did you replace the compiles as well?
     
  13. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
  14. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    Mind pasting your compiles as well? I'd appreciate it. The reason yours is working is you have reverted the item spawning code to the code from 1.7.4.x
     
  15. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
    ah, maybe, did not mean to though :D
    Compiles
    http://pastebin.com/TJYehEQx
     
  16. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    Are you _sure_ this is actually working and you have tested it thoroughly? Because we've got people running all over our server right now running the old spawn_loot.sqf and its still spawning loot it shouldn't.
     
  17. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
    Yes, I removed a lot of the weapons because they were spawning but were getting deleted when picked up. but it was for sure spawning LRR etcs.
     
  18. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    Found the problem. Modifying spawn_loot.sqf works just fine. The issue was Reality overwrting my init.sqf changes with the killmsgs/init.sqf when trying to merge the two during build.
     
  19. linkinx

    linkinx Member

    Joined:
    Nov 19, 2012
    Messages:
    78
    Likes Received:
    14
    ah yes, I did the mods on that package, so every time I build I don't have to add it manually :D
     
  20. Hohlraum

    Hohlraum New Member

    Joined:
    Jan 26, 2013
    Messages:
    13
    Likes Received:
    2
    I just removed the init.sqf from killmsgs and messaging because they are identical to the standard init.sqf which makes them completely pointless anyway.
     

Share This Page