This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] function ToggleSheath()  (Read 1500 times)

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
[QUESTION] function ToggleSheath()
« 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.

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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] function ToggleSheath()
« Reply #1 on: October 12, 2014, 03:39:41 am »
It's probably hard-coded in the client.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] function ToggleSheath()
« Reply #2 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] function ToggleSheath()
« Reply #3 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] function ToggleSheath()
« Reply #4 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")
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [QUESTION] function ToggleSheath()
« Reply #5 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] function ToggleSheath()
« Reply #6 on: October 12, 2014, 06:12:59 pm »
The full Lua API can be found here:

http://www.wowwiki.com/World_of_Warcraft_API
« Last Edit: January 01, 1970, 01:00:00 am by Admin »