Added: 3 years ago
From: justaviewer009
Views: 5,199
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (16)

Sign In or Sign Up now to post a comment!
  • well.. Attemp to call global (a nil value) i don't know WoW Lua, i am coding for gmod :) BUT it's for sure you have a nil value somewhere nil = nothing.. simply when something dosen't exist :) good luck scripting it would be helpfull if you showed the code

  • The problem is that you don't have a handler for the click event registered.

  • the problem is not so much in the code here but in the fact that in order to follow some body you have to be in a group with them. (i know this is an old video but someone may have the same type of issue some time.)

  • @randomWonders You're an idiot.

  • what addon is this

  • you can read the book that i have found immensely helpful. World of Warcraft Programming. find it at wowprogramming com/store. i did find a 'cheaper' method of acquiring the book but i cant share that here... perhaps you'll be able to find it also

  • First problem: its follow instead of fallow

  • You have two different ON_CLICK options, that may be one of your problems another thing I see /f you should have the whole command there

    /follow

  • What are you using for programming? (:

  • ...Or just create a macro.

    /follow

    Finished..

  • local f = CreateFrame('Button','MyButton­',UIParent)

    f:SetScript('OnClick',function­() if UnitExists('target') then FollowUnit('target') end

    end)

    -- Asign properties of the button afterwards and enjoy

  • i'm looking too for some wow lua tutors ... :( btw nice song <3

  • Use nil and then goes on the same line of the if...

  • do it like this ...

    ---

    function Button1_OnClick()

    if (event == "PLAYER_TARGET)

     then FollowUnit("target")

    else message ("You have no target to follow");

    end

    ---

    you also seem to have an error in your onclick function. So the code isn't even parsed to the

    also false "/f"

  • make a macro

    /follow

  • he did not ask for a makro he did ask for lua code, maybe this is just the beginning

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more