• 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!

Help: 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
TFS 0.3.4

Thank you if you helped! :D
 
Not Tested

Example:
LUA:
local cfg = { level = 100, scroll = 7845 }
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (item.itemid == cfg.scroll) and getPlayerLevel(cid) >= cfg.level then
		setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)*1.1) -- 10% More Health
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your max health has just been raised.")
		doSendMagicEffect(getCreaturePositon(cid), CONST_ME_MAGIC_BLUE)
		doRemoveItem(item.uid)
        else
                doPlayerSendCancel(cid, "You must be atleast level ".. cfg.level .." to use this.")
	end
	return TRUE
end
 
Last edited:
I made a great script for tou... see ...

When u use it the player get the hp and max hp full ....
Change the outifit...=Apocalypse..
And Say POWER!!!
Duration=6 minutes
local blood3 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(blood3, CONDITION_PARAM_TICKS, 400000)
setConditionParam(blood3, CONDITION_PARAM_STAT_MAXHEALTH, 2500)


local blood = createConditionObject(CONDITION_OUTFIT)
setConditionParam(blood, CONDITION_PARAM_TICKS, 400000)
addOutfitCondition(blood, 0, 12, 38, 114, 0, 94)

function onUse(cid, item, frompos, item2, topos)

hp = 1000000

if item.itemid == 7845 then

doCreatureAddHealth(cid, 2500)

doSendAnimatedText(getPlayerPosition(cid), "POWER!!", TEXTCOLOR_LIGHTGREEN)

doTargetCombatCondition(0, cid, blood, CONST_ME_NONE)
doTargetCombatCondition(0, cid, blood3, CONST_ME_NONE)

doCreatureAddHealth(cid, 2500)

doRemoveItem(item.uid,1)

end
end

To Change hp U will gain....
doCreatureAddHealth(cid, 2500)
setConditionParam(blood3, CONDITION_PARAM_STAT_MAXHEALTH,
2500)

To change time of the scroll...
setConditionParam(blood, CONDITION_PARAM_TICKS, 400000)
setConditionParam(blood3, CONDITION_PARAM_TICKS, 400000)
To change outfit...need put the looktype.
addOutfitCondition(blood, 0, 12, 38, 114, 0, 94)
The id of the item...
if item.itemid == 7845 then


Enjoy

Edit

Sry my poor english xD
 
Last edited:
Back
Top