jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 88
Hello. I have a stupid problem.
How can I take the name of a item from the table "items". To the function getItemNameById:
How can I take the name of a item from the table "items". To the function getItemNameById:
LUA:
local items = {2160, 2158}
if getPlayerStorageValue(cid, 111234) == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Znalazles "..getItemNameById(itemEx).." !")
doPlayerAddItem(cid, items[math.random(#items)], 1)
setPlayerStorageValue(cid, 1234, -1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Zabij najpierw Bossa, aby otrzymac nagrode.")
end
return true
end[/CODE=lua]