Strashni
minera.servegame.com
Hey...can someone give me a script for chest for money...it's in thais temple,and i need script on that chest are 5cc and can open 45lvl+...
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 2000
if item.uid == 1740 and getPlayerLevel(cid) >= 45 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a abit money.")
doPlayerAddItem(cid, 2160, 5)
doPlayerSetStorageValue(cid, storage, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Go out and fight!")
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 2000
if item.uid == 1740 and getPlayerLevel(cid) >= 45 and getplayerstoragevalue(cid, storage) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a abit money.")
doPlayerAddItem(cid, 2160, 5)
doPlayerSetStorageValue(cid, storage, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Go out and fight!")
end