Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Vortalex on October 12, 2014, 03:26:23 am

Title: [QUESTION] function ToggleSheath()
Post by: Vortalex on October 12, 2014, 03:26:23 am
Does anyone know where the function "ToggleSheath()" is defined? It's not in any lua files, and all I could find via google was that it was part of this (http://www.wowwiki.com/Dump_G/T).

A full response would be great.

You see I'm trying to create a script similar to the likes of this:

Code: [Select]
function PressButtonDown()
if ( MainHandOnlySheath:IsShown()) then
MainHandOnlySheath:Hide();
else
MainHandOnlySheath:Show();
OffHandOnlySheath:Hide();
( MainHandOnlySheath:Hide() and OffHandOnlySheath:Hide() );
RangedOnlySheath:Hide();
end
end

Except those functions don't actually exist, and if there is a similar version of them I would love someone to inform me of what they are, or how I could go about pursuing this function.

I'm trying to find where "ToggleSheath()" is defined so that I can view its lua and discover what function variables do exist so that I can pull this off.
Title: Re: [QUESTION] function ToggleSheath()
Post by: Krang Stonehoof on October 12, 2014, 03:39:41 am
It's probably hard-coded in the client.
Title: Re: [QUESTION] function ToggleSheath()
Post by: Vortalex on October 12, 2014, 03:50:18 am
Quote from: "Krang Stonehoof"
It's probably hard-coded in the client.

Then do you mind explaining to me how I would need to go about finding the functions I'm looking for?
Title: Re: [QUESTION] function ToggleSheath()
Post by: Steff on October 12, 2014, 07:39:09 am
You wount. If you are no blizzard coder.
Lua is only for interface and it can canfunctions that are hardcoded in the wow.exe
Title: Re: [QUESTION] function ToggleSheath()
Post by: Vortalex on October 12, 2014, 07:41:27 am
Quote from: "Steff"
You wount. If you are no blizzard coder.
Lua is only for interface and it can canfunctions that are hardcoded in the wow.exe

In that case, do you know of any actual functions similar to the fake ones I used as examples above?

(eg. "MaindHandOnlySheath")
Title: Re: [QUESTION] function ToggleSheath()
Post by: Ulec on October 12, 2014, 03:20:22 pm
Quote from: "Vortalex"
Quote from: "Steff"
You wount. If you are no blizzard coder.
Lua is only for interface and it can canfunctions that are hardcoded in the wow.exe

In that case, do you know of any actual functions similar to the fake ones I used as examples above?

(eg. "MaindHandOnlySheath")


Try your luck with spells having a similar function.

If not, talk to Pius, creator of GHI.
Title: Re: [QUESTION] function ToggleSheath()
Post by: stoneharry on October 12, 2014, 06:12:59 pm
The full Lua API can be found here:

http://www.wowwiki.com/World_of_Warcraft_API (http://www.wowwiki.com/World_of_Warcraft_API" onclick="window.open(this.href);return false;)