hey guys im back i havent found a post i need a quest chest
based on your level basicly when you click it at lvl 100 u get
a lvl 100 mana rune and when u click it at level 200 u get a lvl 200 manarune etc...please and ty and another quest i cant get to work..
thanks for viewing and thanks for helping me if you do i never forget to rep++ when it is due.
based on your level basicly when you click it at lvl 100 u get
a lvl 100 mana rune and when u click it at level 200 u get a lvl 200 manarune etc...please and ty and another quest i cant get to work..
thanks for viewing and thanks for helping me if you do i never forget to rep++ when it is due.
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
level = 80,
storage = 4050
}
local items = {
item_1 = {2520,1},
item_2 = {2466,1}
}
-- MSG Config -----------------------------------------------------------------------------------------------------------------
msgEmpty = "It is empty."
--------------------------------------------------------------------------------------------------------------------------------
if getPlayerStorageValue(cid,config.storage) == -1 or getPlayerLevel(cid,config.level)then
doPlayerAddItem(cid,items.item_1)
doPlayerAddItem(cid,items.item_2)
setPlayerStorageValue(cid,config.storage,1)
end
else
doPlayerSendTextMessage(cid,21,msgEmpty)
end
return TRUE
end