bampie 0 Report post Posted June 30, 2017 At first im really new to lua. but shouldnt UnitInRaid (UnitInParty) return the index of the raid/party member? if i type /run SendChatMessage(UnitInRaid("target")) into a macro it always returns 1 referring to http://wowwiki.wikia.com/wiki/API_UnitInRaid it should return the raidindex 0 Share this post Link to post Share on other sites
asdaaf 0 Report post Posted June 30, 2017 in retail it returns the raid index. you have to open the history tab to see what it does in 1.12.1. 0 Share this post Link to post Share on other sites
bampie 0 Report post Posted June 30, 2017 Okay, good point. in http://vanilla-wow.wikia.com/wiki/API_UnitInRaid it tells me the same i think. just in other words: Returns index Layout position for raid members: integer ascending from 0 (which is the first member of the first group). 0 Share this post Link to post Share on other sites
asdaaf 0 Report post Posted June 30, 2017 no that's still not the correct one. you can look at past revisions of pages in wowwiki. it is available in the drop down menu next to the yellow edit button. 0 Share this post Link to post Share on other sites
myaka 4 Report post Posted June 30, 2017 Here is the correct one: http://wowwiki.wikia.com/wiki/API_UnitInRaid?oldid=60930 Quote Returns 1 if the unit is in your raid group, nil otherwise. Pets are not considered to be part of a raid group. 0 Share this post Link to post Share on other sites
bampie 0 Report post Posted June 30, 2017 okay, thanks to both of you :) 0 Share this post Link to post Share on other sites
WobLight 5 Report post Posted July 1, 2017 On 30/6/2017 at 1:15 PM, bampie said: in http://vanilla-wow.wikia.com/wiki/API_UnitInRaid it tells me the same i think. just in other words: vanilla-wow wiki has reliable api list (http://vanilla-wow.wikia.com/wiki/World_of_Warcraft_API), but details page are not reliable. for instance, brief of UnitInRaid in the main api page is correct. Quote UnitInRaid("unit") - Returns 1 if unit is in your raid, nil if not. 0 Share this post Link to post Share on other sites