Lua buff/debuff question menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Nov17's Avatar Sergeant Major CoreCoins Purchaser
    Reputation
    9
    Join Date
    Aug 2011
    Posts
    161
    Thanks G/R
    6/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua buff/debuff question

    I want to check if my target has talented chains of ice

    UnitDebuff("target", "Chains of Ice")

    But the problem is that there are two Chains of Ice. First is the slow and the second is the root.

    How can I change the above code to use the spell ID as if:

    UnitDebuff("target", 96294)

    thanks

    Lua buff/debuff question
  2. #2
    Thomja's Avatar Almost Legendary User
    Reputation
    538
    Join Date
    Nov 2008
    Posts
    639
    Thanks G/R
    14/38
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Long time since I did this but instead of using the name try using a spell ID like in the second like of code. I think that the root version of chains of ice has it's own spell ID just like the non root version has it's of spell id.

    Edit: Upon reading your post more closely, I'm now sure if you can check a targets talents like that. Maybe there is some other function for checking talents. Nothing I've been looking at myself.
    Last edited by Thomja; 07-13-2016 at 08:33 AM.
    I really don't have anything interesting to put here anymore.

  3. #3
    Nov17's Avatar Sergeant Major CoreCoins Purchaser
    Reputation
    9
    Join Date
    Aug 2011
    Posts
    161
    Thanks G/R
    6/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Thomja View Post
    Long time since I did this but instead of using the name try using a spell ID like in the second like of code. I think that the root version of chains of ice has it's own spell ID just like the non root version has it's of spell id.
    I think the second syntax is not working. I try the code without the debuff and it prints error. I try the code WITH the debuff and it still prints error.

  4. #4
    WiNiFiX's Avatar Banned
    Reputation
    242
    Join Date
    Jun 2008
    Posts
    447
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe this is what you looking for (see updateAuras function)
    https://raw.githubusercontent.com/wi...t/DoItBase.lua

  5. #5
    Nov17's Avatar Sergeant Major CoreCoins Purchaser
    Reputation
    9
    Join Date
    Aug 2011
    Posts
    161
    Thanks G/R
    6/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if anyone googles this in the future I found the solution:

    for i=1,40 do _,_,_,_,_,_,_,_,_,_,id=UnitDebuff("Target",i) if id==96294 then DO WHATEVER HERE end end

Similar Threads

  1. [LUA]Just a question or two
    By aseroth in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 03-15-2010, 09:19 AM
  2. [ArcEmu 3.3.2][lua] Vendor gossip question and going beyond 80?
    By xyrusazabi in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 03-13-2010, 02:43 PM
  3. [CODE] Find buffs / debuffs on a target
    By Therrm in forum WoW Memory Editing
    Replies: 6
    Last Post: 04-19-2009, 05:51 AM
  4. about buff/debuff 3.0.2
    By snowboom in forum WoW Memory Editing
    Replies: 0
    Last Post: 10-25-2008, 08:26 PM
  5. Lua Scripting, a question on mob targeting
    By adarant_dru in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-08-2008, 07:28 PM
All times are GMT -5. The time now is 09:33 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search