• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Hp and Mana Full Buffer

Bazi

Member
Joined
Oct 24, 2011
Messages
270
Reaction score
8
Location
Germany
Here a Script for Heal Full Healt and Mana, The Script is not from me but i have post it for you! :D


HpandMana.jpg

Data/Actions/Actions.xml

PHP:
<action actionid="9567" event="script" value="health.lua"/>
<action actionid="9568" event="script" value="mana.lua"/>

Data/Actions/Scripts/healt.lua

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local hp = getCreatureMaxHealth(cid)-getCreatureHealth(cid)
	doCreatureAddHealth(cid, hp, 65535, 256, true)
	doSendMagicEffect(getPlayerPosition(cid), 12)
	doSendAnimatedText(fromPosition, 'Health', COLOR_RED)
	return true
end

Data/Actions/Scripts/mana

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local mp = getCreatureMaxMana(cid)-getCreatureMana(cid)
	doTargetCombatMana(0, cid, mp, mp, CONST_ME_MAGIC_GREEN)
	doSendAnimatedText(fromPosition, 'Mana', COLOR_PINK)
	return true
end

Have fun :D
 
Back
Top