detect pvp status somehow??
* SOLUTION * it is indeed just a GHI environment problem; not a code problem. It has to be updated with patches.
I could really use the following function which seems to be disallowed in addons (but not macros) GetPVPDesired() (has the player flagged themselves) http://wowprogramming.com/docs/api/GetPVPDesired I'm writing this from within GHI addon.. does anyone know if this function works in normal addons? It could be a GHI environment problem, although so far that's never been the case. GetPVPTimer works, so it's strange that this one doesn't. Failing this, I'm hoping to detect pvp with a workaround of some kind... thanks! |
Wowprogramming states that the return values are 0 and 1.
But lots of functions have been reworked to return true and false. Maybe this is the case here? |
updated slightly - it is available in macros actually, so I have the syntax right. Just no addons it seems.
And yea it returns true / false in macros. |
What EXACTLY do you mean when you say "not available"?
|
What happens when you run this command:
/dump GetPVPDesired()If you get an error (you do have an error display running, right?) post the actual error message. |
Code:
/dump GetPVPDesired() 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 Code:
local test = GetPVPDesired() 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! |
That error means no function with that name exists.
|
yea it's looking like this is a question for the GHI creator (I've left a post, usually takes a couple weeks to respond)
Because I know it IS a function, and 99% of functions seem to be available to GHI, but for some reason not this one. |
Quote:
|
If anyone can think of an addon that detects your pvp status I'd be grateful to hear it, to scan through the code.
|
Quote:
The only way to fix this is to get the addon's author to add the missing function. They should probably also be using a script to check for added/removed functions in-game after each patch, rather than trying to keep up with such changes by hand (a tactic prone to error) or relying on a third-party source like Wowpedia (which may not always be up to date or accurate). Quote:
|
awesome, tyvm for help. Time to learn more about the custom function environment.
|
All times are GMT -6. The time now is 12:45 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI