local config = {
storage = 30005,
item = 2217,
count = 1,
itemname = "You have found a 1 crystal coin!",
itemcallback = "You can not take the prize twice.",
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, config.itemname)
doPlayerAddItem(cid, config.item, config.count)
end
item:setAttribute(ITEM_ATTRIBUTE_ACTIONID, 50501) - when i use this get action id only on chest
<quest />
<action uniqueid="30005" script="quests/crafts.lua" />
P.s thank you
storage = 30005,
item = 2217,
count = 1,
itemname = "You have found a 1 crystal coin!",
itemcallback = "You can not take the prize twice.",
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, config.itemname)
doPlayerAddItem(cid, config.item, config.count)
end
item:setAttribute(ITEM_ATTRIBUTE_ACTIONID, 50501) - when i use this get action id only on chest
<quest />
<action uniqueid="30005" script="quests/crafts.lua" />
P.s thank you
Last edited: