Thread Tools Display Modes
06-03-13, 02:11 PM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Some druid questions

I don't have a druid so i can't really test these.

This stuff still true for GetShapeshiftForm()?

1 = Bear/Dire Bear Form
2 = Aquatic Form
3 = Cat Form
4 = Travel Form
5 = Moonkin/Tree Form (Unless feral. If no moonkin/tree form present, (swift) flight form is form 5)
6 = Flight Form

And if the druid is not feral does it still have cat form?

Also if druds have 4 type of specialization then GetSpecialization() going to return 1-4?

And which number is which spec?
  Reply With Quote
06-03-13, 02:26 PM   #2
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
0 = Caster
1 = Bear Form
2 = Aquatic Form
3 = Cat Form
4 = Travel Form
5 = Moonkin Form(balance) / Flight Form (resto/feral/guardian)
6 = Flight Form(balance) / Tree Form (resto)

All druids get Cat Form.

GetSpecialization() returns:
1 = Balance
2 = Feral
3 = Guardian
4 = Resto

Last edited by Clamsoda : 06-03-13 at 02:44 PM.
  Reply With Quote
06-03-13, 03:26 PM   #3
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Awsum thanks.

So if i wanna track Travel and Flight form then this should be accurate?

Code:
        if (self.playerclass ~= "DRUID") then
		return false
	end
	local stance = GetShapeshiftForm()
	-- Travel form
	if (stance == 4) then
		return true
	end
	-- Flight form for Feral, Resto, Guardian
	if (stance == 5 and GetSpecialization() > 1) then
		return true
	end
	-- Flight form for Balance
	if (stance == 6 and GetSpecialization() == 1) then
		return true
	end
	-- Otherwise we're not in it
	return false
  Reply With Quote
06-03-13, 04:12 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You should use the shapeshift form IDs instead of indices, as they do not change based on spec or anything else:

http://www.wowpedia.org/API_GetShapeshiftFormID
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
06-04-13, 02:16 AM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Phanx View Post
You should use the shapeshift form IDs instead of indices, as they do not change based on spec or anything else:

http://www.wowpedia.org/API_GetShapeshiftFormID
Aw didn't know there is an API with ids for it.
  Reply With Quote
06-04-13, 10:06 AM   #6
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by Phanx View Post
You should use the shapeshift form IDs instead of indices, as they do not change based on spec or anything else:

http://www.wowpedia.org/API_GetShapeshiftFormID
Funny, I don't see Prowl on that page. The function returns the cat form id while prowling too? Or does it return the rogue stealth iD?

Last edited by ravagernl : 06-04-13 at 10:10 AM.
  Reply With Quote
06-04-13, 10:10 AM   #7
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Prowl is not a separate form like stealth is for rogues. Only things that actually change the action bar page, although I'm assuming shadowform counts but it's not on that list.

The function should return cat form while prowling.
  Reply With Quote
06-04-13, 02:49 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
IsStealthed() works for the player.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Some druid questions


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off