Issue information

Issue ID
#4362
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jul 22, 2010 3:04
Last Post
Hercules Elf Bot
Feb 7, 2012 20:59
Confirmation
N/A

Hercules Elf Bot - Jul 22, 2010 3:04

Originally posted by [b]Christian[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4362

QUOTE
*getitemslots(<item ID>)

This function will look up the item with the specified ID number in the database
and return the number of slots this kind of items has - 0 if they are not
slotted. It will also be 0 for all non-equippable items, naturally, unless
someone messed up the item database. It will return -1 if there is no such item.

and later
QUOTE
*getitemslots(<item id>)

Returns the amount of slots the item has.

Example(s):

//@slots now has the amount of slots of the item with ID 1205.
set @slots, getItemSlots(1205);