Hello friends, i'm have a question on potion and i'm need this for my server, help me plx...
- This is a STRONG HEALTH POTION script of TFS 0.2.11:
- My problem is, the script don't work in new vocations, and my server have new vocations, the vocations XML of TFS go to 8 vocations, my vocations XML go to 16, i'm need this to new vocations can be use the potion, plx, help me friend and many thx for all...
No more,
F@bio
- This is a STRONG HEALTH POTION script of TFS 0.2.11:
Code:
local MIN = 200
local MAX = 400
local EMPTY_POTION = 7634
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if not(isKnight(itemEx.uid) or isPaladin(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 50 then
doCreatureSay(itemEx.uid, "Only knights and paladins of level 50 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end
if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end
No more,
F@bio