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

have that prob and try to change the files of the liquids

oOIOo

HetZera.Net
Joined
Mar 30, 2010
Messages
221
Reaction score
1
i have that prob and try to change the files of the liquids
But Still have that prob what i do i hae tfs0.3.4 tibia 8.5


[10/04/2010 07:52:16] data/actions/scripts/liquids/ultimate_health.lua:onUse

[10/04/2010 07:52:17] luaGetPlayerCustomFlagValue(). Player not found

[10/04/2010 07:52:18] Lua Script Error: [Action Interface]
[10/04/2010 07:52:19] data/actions/scripts/liquids/ultimate_health.lua:onUse

[10/04/2010 07:52:20] luaDoCreatureAddHealth(). Creature not found

[10/04/2010 07:52:24] Lua Script Error: [Action Interface]
[10/04/2010 07:52:24] data/actions/scripts/liquids/strong_mana.lua:onUse

[10/04/2010 07:52:26] luaGetPlayerCustomFlagValue(). Player not found

[10/04/2010 07:52:27] Lua Script Error: [Action Interface]
[10/04/2010 07:52:27] data/actions/scripts/liquids/strong_mana.lua:onUse
 
ultimate_health.lua
Code:
local MIN = 800
local MAX = 1000
local EMPTY_POTION = 7635

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) ~= TRUE then
		return FALSE
	end

	if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
		return TRUE
	end

	if((not(isKnight(cid)) or getPlayerLevel(cid) < 130) and getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(itemEx.uid, "Only knights of level 130 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)
	doTransformItem(item.uid, EMPTY_POTION)
	return TRUE
end
strong_mana.lua
Code:
local MIN = 110
local MAX = 190
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) ~= TRUE then
		return FALSE
	end

	if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
		return TRUE
	end

	if((not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or getPlayerLevel(cid) < 50) and getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(itemEx.uid, "Only sorcerers, druids and paladins of level 50 or above may drink this fluid.", TALKTYPE_ORANGE_1)
		return TRUE
	end

	if doPlayerAddMana(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)
	doTransformItem(item.uid, EMPTY_POTION)
	return TRUE
end
 
Back
Top