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

Special healing item

Evan

A splendid one to behold
Senator
Premium User
Joined
May 6, 2009
Messages
7,018
Solutions
1
Reaction score
1,040
Location
United States
I want an item to heal a player like in Kingdom Age.

Explanation;

You use the item, it heals 20 hitpoints every second for 10 seconds.
The item is a green piece of cloth [5910].

I will definitely repute anyone who would direly make this script.
 
heh, ye ;/
Code:
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 4)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 20)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)

function onUse(cid, item, fromPosition, itemEx, toPosition)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN)
	doAddCondition(cid, condition)
	doRemoveItem(item.uid, 1)
	return true
end
 
Back
Top