Luciano
Member
- Joined
- Feb 18, 2010
- Messages
- 998
- Reaction score
- 24
I want fuse this 2 scripts:
Mana Booster:
Health Booster:
It will be a iten that add 150k mana and life, one storage id, need lv 30k and ONLY one time. Instead of using mana and health booster
eace:
Ty.
Mana Booster:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level, storage, mana = 30000, 17794, 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)
setPlayerStorageValue(cid, storage, 1)
doCreatureSay(cid, "You have received " .. mana .. " extra mana points.", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
end
return true
end
Health Booster:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level, storage, health = 30000, 23956, 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
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + health)
setPlayerStorageValue(cid, storage, 1)
doCreatureSay(cid, "You have received " .. health .. " extra health points.", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
end
return true
end
It will be a iten that add 150k mana and life, one storage id, need lv 30k and ONLY one time. Instead of using mana and health booster
Ty.