View Single Post
10-29-16, 03:39 PM   #6
Tesser
A Deviate Faerie Dragon
Join Date: Oct 2016
Posts: 15
Code:
/dump GetPVPDesired()
[1]=true
But the problem is not from the WoW command / macro line - the problem is from within Gryphonheart Items addon, which allows you to script your own lua.
I've successfully called maybe 50 API functions from within GHI, so it's definitely something about this one.

what I get from GHI is:

Code:
Syntax error in GHI item at runtime
attempt to call global 'GetPVPDesired' (a nil value)
and the exact code in my GHI item is:

Code:
local test = GetPVPDesired()
print(test)
From the printout on "/dump" it looks like maybe it returns an array, so I also tried "print(test[1])" to no avail.

I'm wondering if I need to provide syntax like so:
GlobalObject.GetPVPDesired()

I just don't know what "GlobalObject" would be.

*edit* and I just tried "_G.GetPVPDesired()", nope...

thanks for feedback!

Last edited by Tesser : 10-29-16 at 04:07 PM.
  Reply With Quote