• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Health Scroll

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,571
Solutions
3
Reaction score
98
Location
Portugal
Sup otland

I'm looking for a Health Scroll Script

A scroll that when you use it will add you 100k hp.

Like: Your health is 500k when you use the scroll your health will be 600k

Item ID: 7845

Thank you if you helped!
 
Hardcoded x/
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doCreatureAddHealth(cid, 100000)
	return true
end
 
Hardcoding, too:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid) + 100000))
	return true
end
 
would this work if i add it in the script?

doCreatureSay(cid, "You gained 100,000 Max Health now your health is ".. getcreaturehealth .."!

function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreatureSay(cid, "You gained 100,000 Max Health now your health is ".. getcreaturehealth .."!" ,19)
setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid) + 100000))
doSendMagicEffect(getCreaturePosition(itemEx.uid), CONST_ME_FIREWORK_RED)
return doRemoveItem(item.uid)
end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid) + 100000))
	doCreatureSay(cid, "You gained 100,000 Max Health now your health is ".. getCreatureMaxHealth(cid) .."!" ,19)
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
	doRemoveItem(item.uid)
	return TRUE
end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid) + 100000))
	doCreatureSay(cid, "You gained 100,000 Max Health now your health is ".. getCreatureMaxHealth(cid) .."!" ,19)
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
	doRemoveItem(item.uid)
	return TRUE
end

thanks body, useful script i use it on my server and i also made it for mana too:

function onUse(cid, item, fromPosition, itemEx, toPosition)
setCreatureMaxMana(cid, (getCreatureMaxMana(cid) + 100000))
doCreatureSay(cid, "You gained 100,000 Max Mana now your Mana is ".. getCreatureMaxMana(cid) .."!" ,19)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
doRemoveItem(item.uid)
return TRUE
end
 
Last edited:
Back
Top