HeroInventory: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
@title | @title | ||
addPlayerItem | addPlayerItem | ||
@author | |||
Malicious Hero. | |||
@parameters | |||
playerElement - The element you wish to add an item to. | |||
itemID - The item ID; This can be found in g_items.lua. | |||
amount - The amount of the item you want. | |||
@description | |||
This will add an item to a client. | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 20:43, 13 January 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.
Functions
addPlayerItem
bool addPlayerItem ( element playerElement, int itemID, int amount )
@title addPlayerItem @author Malicious Hero. @parameters playerElement - The element you wish to add an item to. itemID - The item ID; This can be found in g_items.lua. amount - The amount of the item you want. @description This will add an item to a client.