wesoly136
Member
- Joined
- Jul 30, 2009
- Messages
- 562
- Reaction score
- 9
Hi!
I tried to do my own script for quests as shortly as I can and I have a problem
[2160]--storage-- = {2160--prize id--, 2--count--},
The problem is that, that the 'storage' isn't working... :/
Thanks in advance!
I tried to do my own script for quests as shortly as I can and I have a problem
LUA:
function onUse(cid, item, frompos, item2, topos)
local h = {
[2160] = {2160, 2},
[2345] = {2345, 1},
[2344] = {2344, 1}
}
local id = h[item.uid]
if getPlayerStorageValue(cid, id) ~= 1 then
doPlayerAddItem(cid, id[1],id[2])
setPlayerStorageValue(cid, id,1)
doPlayerSendTextMessage(cid, 22, "You have found "..getItemArticleById(id[1]).." "..getItemNameById(id[1])..".")
else
doPlayerSendCancel(cid,"It's empty.")
end
return 1
end
The problem is that, that the 'storage' isn't working... :/
Thanks in advance!
Last edited: