• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Fuse 2 itens - mana boster + health booster

Luciano

Member
Joined
Feb 18, 2010
Messages
998
Reaction score
24
I want fuse this 2 scripts:
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 :P

:peace:
Ty.
 
Try this lol

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
 
Back
Top