function ItemUse_WOAH ( role , Item )
local cha = TurnToCha ( role )
local cha_type = GetChaTypeID ( cha )
local Item_CanGet = GetChaFreeBagGridNum ( cha )
if Item_CanGet <= 1 then --------------------This is how many spaces are needed to open chest
SystemNotice(role ,"Requires 1 slots in inventory to open this Chest") ------- txt that appears if the number of spaces arent available in inventory
UseItemFailed ( role )
return
end
GiveItem ( cha , 0 , (your item id) , (quantity) , (if gem 101-109 if normal items just put 1 or 0 ) ) ----------- item the person gets after double clicking chest if they have enough spaces, please dont be stupid; you clearly remove the parenthesis, suppose to look like
GiveItem ( cha , 0 , 654, 1 , 0 )
end