Jump to content

[REL] HeroInventory - Inventory System [Groups + More]


Recommended Posts

Posted
    addInventoryGroup( "1", "images/groups/1.png" ) 
    addInventoryGroup( "2", "images/groups/2.png" ) 
  

I found a problem within the script itself. In the new version that is coming out soon, this error will be patched. Thanks for your help!

Posted

Thanks for being patient.

- Fixed inventory browsing bug.

- Fixed limited inventory bug.

- Fixed inventory grouping bug where items weren't sorted properly.

- Fixed issue where items weren't loading.

- Fixed issue where inventory items simply showed a black box.

- Fixed issue where groups didn't show up randomly.

- Added the ability to drag items to the world.

- Added the ability to pick up items.

- Moved all event related scripts into the "events" folder.

- Added the ability to customize dropped item object IDs, and their coordinates because of object dimensions.

With that being said, an item system has been added to the inventory system. The fixed version is available at the community resource center. If you encounter further bugs, please post here. Please don't PM me about bug encounters, or help setting this up, simply post here. Thanks!

Posted

Its actually easy to make shops, just when make the shop, additem and a GUI panel, ( i made it simple xD ) Ye it would be close to this

  • 4 weeks later...
Posted

Heres another problem:

[15:17:10] INFO: Hero-Inventory: Group name Drogok added. 

when i try to open inventory:

WARNING: heroinventory\client\c_invenotry_gui.lua:59: Bad usage @ 'dxDrawImage' [Can't load file] 

and i change the picture size to 128x128 to. please help.

Posted
Heres another problem:

[15:17:10] INFO: Hero-Inventory: Group name Drogok added. 

when i try to open inventory:

WARNING: heroinventory\client\c_invenotry_gui.lua:59: Bad usage @ 'dxDrawImage' [Can't load file] 

and i change the picture size to 128x128 to. please help.

Make sure you add the image from the group to meta.xml. If you have done so, please post the portion of the code related to what you're trying to accomplish from meta.xml, and from where you used the group functions. Also consider to recheck the directory of the image that corresponds to the group.

Posted
Make sure you add the image from the group to meta.xml. If you have done so, please post the portion of the code related to what you're trying to accomplish from meta.xml, and from where you used the group functions. Also consider to recheck the directory of the image that corresponds to the group.

Ooops, i forgot the meta.xml. Thank you! :)

  • 4 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • MTA Team
Posted
but certain servers who use this resource like things their own way. Good luck!
Malicious Hero., you should consider creating an API but still allow those certain servers to edit things directly.
Posted
There is problem,when i additem 2 (or another one) and if i use it ,then it hides image but i can still use it. Fix it please

Can you send me your item database, and list exactly what you're doing that causes this problem?

Posted

So much errors ?

mta-screen_2013-05-11_14-27-50.png

What you excatly need ?

this ?

--[[ 
    @title 
        HeroInventory 
    @author 
        Malicious Hero. - [url=https://twitter.com/MaliciousHero]https://twitter.com/MaliciousHero[/url] 
    @copyright 
        2013 
    @description 
        HeroInventory is a new way to expand a roleplay server's features. This resource allows 
        a server to not only archive items; but organize them appropriately! Adding items, and groups 
        are very simple. 
--]] 
-------------------------------------------------------------------------------------------------------- 
itemArchive = -- {picture, name, group_name, object-item-id, z-adjustment} 
{ 
     
    {"images/items/Hat.png", "Hat", "Clothes", 1271, 0.8}, -- ITEM ID: 1 - This is an example. (Creates a box since there isn't a hat item) 
    {"images/items/Book.png", "Book", "Tools", 2824, 0} -- ITEM ID: 2 
     
} 

Posted

I downloaded original resource from community,then deleted this --[[ Green Stuff ]] and then if i start it then comes that much errors ..

Posted
I downloaded original resource from community,then deleted this --[[ Green Stuff ]] and then if i start it then comes that much errors ..

Weird. First time I've heard of this happening. It could be another resource inflicting with the inventory system.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...