mirak sebata
New Member
- Joined
- Dec 6, 2017
- Messages
- 135
- Reaction score
- 0
hi i made action !bless and i want to know how to get this debuff icon (dazzled)..
local condition = createConditionObject(CONDITION_DAZZLED)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
addDamageCondition(condition, math.random(7,11), 30000, 5)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
function onThink(pid, interval)
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerBlessing(pid, 5) then
doAddCondition(pid, condition)
end
end
return true
end
Give your version of tfs at the first.
condition.cpp-.h is in your source folder.