Page 1 of 1
BuffName
Posted: Wed May 02, 2012 8:17 am
by GioQveladze
hello
prompt how to learn buffName For example: Potion: Unbridled Enthusiasm buffName = 506684 and how to learn buffName Hero Potion?
thanks in advance
Re: BuffName
Posted: Wed May 02, 2012 1:17 pm
by runnpray
In chat to find buffid :
/run for i=1,100 do local n,_,_,id=UnitDebuff("target",i) if n then DEFAULT_CHAT_FRAME:AddMessage(n.." = "..id) else break end end
Hero potion (or Hero Magic Medicine) buff id is 501337
For the itemid to use I go to the runes database, search the item and take the item number from the url.
From your example:
edit - can't post links...
200277 is the the itemid for Hero's potion.
Then I have been using something like the below
if not player:hasBuff("501337") then
inventory:useItem(200277)
end
Re: BuffName
Posted: Wed May 02, 2012 2:30 pm
by GioQveladze
runnpray wrote:In chat to find buffid :
/run for i=1,100 do local n,_,_,id=UnitDebuff("target",i) if n then DEFAULT_CHAT_FRAME:AddMessage(n.." = "..id) else break end end
where it to write?
Re: BuffName
Posted: Wed May 02, 2012 3:57 pm
by runnpray
Hit Enter and type or cut and paste into chat
Re: BuffName
Posted: Wed May 02, 2012 4:32 pm
by GioQveladze
runnpray wrote:Hit Enter and type or cut and paste into chat
I copied in a chat but doesn't work

(
Re: BuffName
Posted: Wed May 02, 2012 5:15 pm
by runnpray
ah, I see what I did. I gave you the script for DeBuff's not Buffs try
/run for i=1,100 do local n,_,_,id=UnitBuff("target",i) if n then DEFAULT_CHAT_FRAME:AddMessage(n.." = "..id) else break end end
Re: BuffName
Posted: Wed May 02, 2012 6:34 pm
by GioQveladze
runnpray wrote:ah, I see what I did. I gave you the script for DeBuff's not Buffs try
/run for i=1,100 do local n,_,_,id=UnitBuff("target",i) if n then DEFAULT_CHAT_FRAME:AddMessage(n.." = "..id) else break end end
aa!!
super
thx