Hey im in need of a pocket item script that gives 10% more mana and hp if anyone could give me this script id really appreciate it.
i was trying to use this but i dont want this kind of script i think a pocket item type of script would be way better.
i was trying to use this but i dont want this kind of script i think a pocket item type of script would be way better.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level, storage, health, mana = 30000, 23956, 150000, 150000
if(getPlayerLevel(cid) < level) then
doPlayerSendCancel(cid, "You must be atleast level " .. level .. " to use this.")
elseif(getPlayerStorageValue(cid, storage) == 1) then
doPlayerSendCancel(cid, "You have already used this before.")
else
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + mana)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + health)
setPlayerStorageValue(cid, storage, 1)
doCreatureSay(cid, "You have received " .. health .." extra points and also" .. mana .. " extra points.", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
end
return true
end