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

how i can do this?

Ralfegor

New Member
Joined
Apr 6, 2008
Messages
297
Reaction score
1
i need a function like do player add ""battle". So it can not enter to protection zone area
 
Code:
function doPlayerAddBattle(cid, time)
	local condition = createConditionObject(CONDITION_INFIGHT)
	setConditionParam(condition, CONDITION_PARAM_TICKS, time * 1000)
	return doAddCondition(cid, condition)
end
 
function doPlayerAddBattle(cid, time)
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, time * 1000)
return doAddCondition(cid, condition)
end

i added that in lib/functions.lua

this is the error
Code:
[COLOR="Red"][28/03/2009 22:08:07] Lua Script Error: [CreatureScript Interface] 
[28/03/2009 22:08:07] data/creaturescripts/scripts/look.lua:onLook

[28/03/2009 22:08:07] luaCreateConditionObject(). This function can only be used while loading the script.

[28/03/2009 22:08:07] Lua Script Error: [CreatureScript Interface] 
[28/03/2009 22:08:07] data/creaturescripts/scripts/look.lua:onLook

[28/03/2009 22:08:07] luaSetConditionParam(). This function can only be used while loading the script.

[28/03/2009 22:08:07] Lua Script Error: [CreatureScript Interface] 
[28/03/2009 22:08:07] data/creaturescripts/scripts/look.lua:onLook

[28/03/2009 22:08:07] luaDoAddCondition(). Condition not found[/COLOR]
 
Back
Top