Some dumb questions regardin lua macros menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Zorkanne's Avatar Member
    Reputation
    1
    Join Date
    Sep 2019
    Posts
    4
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some dumb questions regardin lua macros

    Hey guys! How are you doing? I've been playing warmane, so i've been digging up some old lua scripts from 2009-2012 (some of them still work wonders with Lium unlocker)
    But since they're so old, it's very hard to documente about them and understand some of the code. So i hoped maybe some of you could help?

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

    What does "i" do exactly? i've been seeing it everywhere and i don't understand the 1,40...

    Here's another one

    /run i=1 while(i<=40)do a={UnitDebuff("target",i)} if(a[1]=="Rip" and a[8]=="player") then break elseif(i==40) and p>4 then RunMacroText("/cast Rip") i=i+1 else i=i+1 end end

    it's no longer 1,40 now it's i=1 while(i<=40), and there's i=i+1? what does that do? can someone walk me through this?

    Some dumb questions regardin lua macros
  2. #2
    Totoy Tulog's Avatar Member
    Reputation
    3
    Join Date
    May 2015
    Posts
    43
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i=1 meaning. i is equivalent to number 1.
    {UnitDebuff("target",i)}

    that why you see "target",i maybe its for duration i dont know.

    But The way that macro is kinda confusing and there an easy way to achieve that.


    /run if GetComboPoints("player", "target")==5 then RunMacroText("/cast Rip")
    Last edited by Totoy Tulog; 10-09-2019 at 03:44 PM.

Similar Threads

  1. [request] some emu questions
    By Xeph20 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 01-18-2008, 08:58 AM
  2. Question about wallclimb macro
    By staplerwut in forum World of Warcraft General
    Replies: 0
    Last Post: 01-04-2008, 10:28 PM
  3. A simple question about Lua Scripts
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 12-28-2007, 01:57 AM
  4. [Question] My .lua doesnt work
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-20-2007, 07:32 PM
  5. May be a dumb question.
    By killer621 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 08-29-2007, 11:58 PM
All times are GMT -5. The time now is 10:31 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search