Player debuffing
Posted: Wed Feb 08, 2012 5:33 am
Was wondering and seraching about how to debuff your self or party members.
And all i could find was this from the wiki , but im not sure how to implement it and where in the profile.
if we assume that the player(me) have a DeBuff of poison, as a druid i use Antidote or a Priest use Cleanse.
and the same goes for curses druid uses Purify, Priest use Cleanse ? or is it Remove Curse.
so if i understand the code snippet would be something like this?
and now i know im totaly out on deep water. 
And all i could find was this from the wiki , but im not sure how to implement it and where in the profile.
Code: Select all
local target = player:getTarget();
target:updateBuffs()
if target:hasDebuff("debuffname") thenand the same goes for curses druid uses Purify, Priest use Cleanse ? or is it Remove Curse.
so if i understand the code snippet would be something like this?
Code: Select all
local target = player:getTarget();
target:updateBuffs()
if target:hasDebuff("debuffname") then PRIEST_CLEANSE