Monday, April 16, 2012

What are these functions called?

Hello

Could somebody please tell me the names of these functions?

To check the ID of the battlefield you are currently in (when you in one, not when you are in queue)

To check what the target of a unit is (like to tell which players are targetting you)

To check the X/Y coordinate of a player besides yourself

To control the speed that TurnLeftStart and TurnRightStart turn you



To check whether terrain at a certain coordinate is walkable

To open open an NPC's gossip window

To force the variables to save to the file without doing a ui reload

To load the variables from the file without doing a ui reload

To execute inline assembly code

To adjust how often OnUpdate is ran for minimized windows (it seems to be around 4 per second by default)

And how do I tell when the current battleground/arena match has ended

?





P.S. I did search for a long time before asking this.. so please don't be mad at me.. I couldn't find them anywhere :(

P.P.S. where do I put modified FrameXML files where the client will load them? I tried leaving them in the default World of Warcraft\Blizzard Interface Data (enUS)\FrameXML folder and also tried putting them in World of Warcraft\FrameXML and World of Warcraft\Interface\FrameXML and World of Warcraft\Interface\addons\FrameXML|||Just out of interest, what are you attempting to do with the mod you're writing?|||First of all, you need to go to the following web site :

http://www.zezula.net/mpq.html

and download Ladik's MPQ Editor.

(Take all such instructions with a pinch of scepticism, and remember to carry out your own virus checking)



Use the MPQ editor to examine and unpack the Blizzard /data/....MPQ files.

These will show you the directory structure you were asking about.

You especially need to unpack

/Interface/FrameXML/

&

/Interface/AddOns/

folders, and examine Blizzard's own .xml and .lua files - these will answer many of your questions.



Also, visit the following web site, which has excellent information on your questions :

http://www.wowwiki.com/WoWWiki:Interface_customization



I can't answer all your questions, but here are some responses :



To check the ID of the battlefield you are currently in (when you in one, not when you are in queue)

Not sure. Do as I suggested above and look in :

/Interface/FrameXML/Battlefield.xml

&

/Interface/FrameXML/Battlefield.lua

&

/Interface/FrameXML/WorldStateFrame.xml

&

/Interface/FrameXML/WorldStateFrame.lua



To check what the target of a unit is (like to tell which players are targetting you)

Check out the wowwiki on the 'unitid' :

http://www.wowwiki.com/API_TYPE_UnitId

(Scroll down to the Targets section)



To check the X/Y coordinate of a player besides yourself

Again, this relates to the 'unitid' :

http://www.wowwiki.com/API_GetPlayerMapPosition

http://www.wowwiki.com/API_TYPE_UnitId

e.g.

GetPlayerMapPosition("target");

GetPlayerMapPosition("raid3");

You can NOT get the position of just any player, or enter a player's name



To control the speed that TurnLeftStart and TurnRightStart turn you

No idea if this is possible.



To check whether terrain at a certain coordinate is walkable

I can't believe this is possible.



To open open an NPC's gossip window

No idea if this is possible.



To force the variables to save to the file without doing a ui reload

Not possible. You MUST ReloadUI, or completely exit.



To load the variables from the file without doing a ui reload

Not possible. You MUST ReloadUI, or completely log out and in again.



To execute inline assembly code

You're joking right ?

The only thing you can do is run lua scripts. You can't execute C, or Java, or assembly code.



To adjust how often OnUpdate is ran for minimized windows (it seems to be around 4 per second by default)

'minimised' ?

UI frames are either open (i.e. Visible) or closed (i.e. Hidden)

A frame can be Visible (open) but have no visible components, and therefore you can't see it.

Equally it can be Visible (open) but have zero opacity, and therefore you can't see it.

When a frame is Hidden, then it's OnUpdate script does NOT run at all.

When a frame is Visible, you can NOT control the rate at which its OnUpdate executes - but that doesn't mean you have to execute all your OnUpdate code every time.

Check out the following to see how to use OnUpdate correctly :

http://www.wowwiki.com/Using_OnUpdate_correctly



And how do I tell when the current battleground/arena match has ended?

Not sure, but I'd check the Battlefield & WorldStateFrame files I mentioned above.|||Thank you so much!

No comments:

Post a Comment