angelobodj
Lazy OT Researcher
Hello OTLand,
I'm playing around with conditions and I can't understand what I'm doing wrong.
I set this code to a talkaction:
So, shouldn't that code give my character the small fight swords for 3 seconds and then dissapear?
It is just doing nothing, or applying any condition randomly.
I'm sure this is a really noob question, so I hope someone can explain me how to do it correctly
Greetings everyone
I'm playing around with conditions and I can't understand what I'm doing wrong.
I set this code to a talkaction:
Lua:
function onSay(cid, words, param, channel)
local condition = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3000)
doAddCondition(cid, condition)
return TRUE
end
So, shouldn't that code give my character the small fight swords for 3 seconds and then dissapear?
It is just doing nothing, or applying any condition randomly.
I'm sure this is a really noob question, so I hope someone can explain me how to do it correctly
Greetings everyone
Last edited: