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

Debuff icon

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
969
Solutions
17
Reaction score
357
GitHub
olrios
Twitch
olrios
How to display debuff icon in client via lua (spell)?

PHP:
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
- buff works but if i use:
PHP:
setConditionParam(condition, CONDITION_PARAM_DEBUFF, TRUE)
nothing appear

checked constant - found nothing, nothing about buff and debuff (but buff works in game)
0.3.5tfs
 
buffj.png
this

#edit

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_SUBID, ?) ?
setConditionParam(condition, CONDITION_PARAM_BUFF, true)

doAddCondition(cid, condition)

this is your way.
 
Last edited:
Man, I'm suffering with this.

I'm trying to follow your code to use it in another condition.

I have an script for bless on my OT, it makes all the five blessings with only one talkaction "!bless", thing is that I want the dazzle icon to appear as an indicator that the user is blessed...I used the exact code you have...something like :

...
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
...
if i == 5 and not(fail == 5) then
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
doPlayerAddItem(cid, 6561, 1)
doAddCondition(cid, condition)
end
...

Adding that I succesfully get the BUFF icon as an indicator, but I don't want the Buff icon, I want the DAZZLED icon, this is driving me insane, I've tried all the combinations if you could help me out I would apreciate it.

Thanks.
 
Back
Top