Hey,
Iam using NaxedOt 7.0 for tibia 8.54.
Im trying to find where to edit the level requirement of health potions.
I have tried to look in weapons.xml but (obviously) i didnt find id 7618(health potion), 7588(strong health potion) or 8473(ultimate health potion) in it.
Also i tried to find it in movements.xml and still no success.
In items.xml however, i found the row with the item, which is quite obvious. But no level requirement line.
EDIT:
I found something in actions, i also edited it:
But still everything stays the same. Allthough what i found remarkable is that [strong_health. lua] was not used in [actions.xml].
Thanks in advance!
P.S. If this is the wrong section, my apologies i saw similar threads here.
Iam using NaxedOt 7.0 for tibia 8.54.
Im trying to find where to edit the level requirement of health potions.
I have tried to look in weapons.xml but (obviously) i didnt find id 7618(health potion), 7588(strong health potion) or 8473(ultimate health potion) in it.
Also i tried to find it in movements.xml and still no success.
In items.xml however, i found the row with the item, which is quite obvious. But no level requirement line.
Code:
<item id="7588" article="a" name="strong health potion">
<attribute key="weight" value="200" />
<attribute key="description" value="This potion can only be consumed by paladins and knights of level 50 or higher." />
</item>
EDIT:
I found something in actions, i also edited it:
Code:
strong_health.lua
Code:
local MIN = 800
local MAX = 900
local EMPTY_POTION = 7634
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 100) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only knights of level 100 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
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
return TRUE
end
But still everything stays the same. Allthough what i found remarkable is that [strong_health. lua] was not used in [actions.xml].
Thanks in advance!
P.S. If this is the wrong section, my apologies i saw similar threads here.
Last edited: