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 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.)
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
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
BizenDk 3 months ago
The problem is that you don't have a handler for the click event registered.
Bitwzyze 6 months ago
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 9 months ago
@randomWonders You're an idiot.
Bitwzyze 6 months ago
what addon is this
SadKermitVEVO 9 months ago
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
cloudstrife602 1 year ago
First problem: its follow instead of fallow
Junius01 1 year ago 2
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
wannaweed45 1 year ago
What are you using for programming? (:
zenya123 1 year ago
...Or just create a macro.
/follow
Finished..
xelnos21 1 year ago
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
NeffiStar 2 years ago
i'm looking too for some wow lua tutors ... :( btw nice song <3
Castel4fun 2 years ago
Use nil and then goes on the same line of the if...
sonicminneapolis 2 years ago
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"
jackprince1983 2 years ago
make a macro
/follow
kbdslaya7 3 years ago
he did not ask for a makro he did ask for lua code, maybe this is just the beginning
jackprince1983 2 years ago 2