buchaLL
Bez spiny, luźno
I have a small problem.
I'm trying to add condition to my talkaction script but it doesn't work.
Help me :<
@Edit
Still need help. :/
I tried something like this but i get pz and can't logout.
I'm trying to add condition to my talkaction script but it doesn't work.
Help me :<
Lua:
function onSay(cid, words, param)
local condition = createConditionObject(CONDITION_DAZZLED)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
setConditionParam(condition, CONDITION_PARAM_BUFF, 1)
if isPlayer(cid) then
doAddCondition(cid, condition)
print("Works")
else
print("Error")
end
return true
end
@Edit
Still need help. :/
I tried something like this but i get pz and can't logout.
Lua:
local condition = createConditionObject(CONDITION_DAZZLED)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
addDamageCondition(condition, math.random(7,11), 3000, -0)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
Last edited by a moderator: