local rewards = { [2097] = {item = 8851, name = 'a royal crossbow'}, [2098] = {item = 8854, name = 'a warsinger bow'}, [2099] = {item = 8918, name = 'a spellbook of dark mysteries'}, [2100] = {item = 8930, name = 'an emerald sword'}, [2101] = {item = 8924, name = 'a hellforged axe'}, [2102] = {item = 8928, name = 'an obsidian tuncheon'}, [2103] = {item = 8888, name = 'a master archers armor'}, [2104] = {item = 8881, name = 'a giant fireborn armor'}, [2105] = {item = 8890, name = 'a robe of the underworld'} } function onUse(cid, item, fromPosition, itemEx, toPosition) local reward = rewards[item.uid] if reward then if getCreatureStorage(cid, 2106) == EMPTY_STORAGE then doPlayerAddItem(cid, reward.item, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found '.. reward.name ..'.') doPlayerAddOutfitId(cid, 20, 3) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'You just got Demonhunter addons!') doCreatureSetStorage(cid, 2106, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'It is empty.') end end return true end