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

Heal Stone dont work..

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
i use the lastes TFS 0.4
but my heal stone dont work..?
Code:
local hp = math.random(500, 700)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
			doCreatureAddHealth(cid, hp)
			doSendMagicEffect(getCreaturePosition(cid), 12)
			doCreatureSay(cid, "Ahhh...", TALKTYPE_ORANGE_1)
		else
			doPlayerSendCancel(cid,"You cannot use this yet.")
			doSendMagicEffect(getCreaturePosition(cid), 2)
		end
	return TRUE
end
 
LUA:
local exhaustion = 3247
local seconds = 60
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if exhaustion.check(cid, exhaustion) then
        doPlayerSendCancel(cid, 'You can\'t use this yet['..exhaustion.get(cid, exhaustion)..'].')
        doSendMagicEffect(fromPosition, CONST_ME_POFF)
        return true
    else
        exhaustion.set(cid, exhaustion, seconds)
    end
    
    local hp = math.random(500, 700)
    doCreatureAddHealth(cid, hp)
    doSendAnimatedText(fromPosition, '+'..hp, COLOR_GREEN)
    doSendMagicEffect(fromPosition, 12)
    doCreatureSay(cid, 'Ahhh...', TALKTYPE_ORANGE_1)
    return true
end
 
Back
Top