WoW:API SetLookingForGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Removed commentary)
m (Move page script moved page API SetLookingForGroup to WoW:API SetLookingForGroup without leaving a redirect)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}}__NOTOC__
{{wowapi}}__NOTOC__ {{removedapi|3.3}}
Flags yourself as LFG <br>
Flags the player as looking for group for a specific destination.
  SetLookingForGroup(Interfacerow, missiontype, destination)
  SetLookingForGroup(slot, missiontype, destination)


===Takes===
==Arguments==
: Number Interfacerow
; slot: Number - Slot index (1 to 3); there are three LFG slots, so you can look for groups for three different destinations.
: Number missiontype
; missiontype: Number - Type index, corresponding to an entry in the {{api|GetLFGTypes}}() return list; the current types are "None", "Dungeon", "Raid", "Quest (Group)", "Zone", "Heroic Dungeon"
: Number destination
; destination: Number - Destination index within the mission type -- this would be the specific zone or instance index acquired from {{api|GetLFGTypeEntries}}(missiontype).


Interfacerow<br>
==Example==
<br>
local slot, mtype, destination = 1,3,2;
The LFG interface has 3 rows (You can look for 3 things), this number indicates which one (1 to 3)
SetLookingForGroup(slot, mtype, destination);
print("Now looking for ", (select(destination, GetLFGTypeEntries(mtype))), " group");


missiontype<br>
==See Also==
<br>
ClearLookingForGroup
The type is None/Dungeon/Raid/Quest(group)/Zone/Heoric Dungeon and the avlue is accordingly, ie 3=raid
* [[API ClearLookingForGroup|ClearLookingForGroup()]]
 
* [[API GetLookingForGroup|GetLookingForGroup()]]
destination<br>
* [[API SetLFGComment|SetLFGComment()]]
<br>
The submenu of valid choices for that missiontype and the characters level, if type is 3 and the character is level 70 then 6 would be Karazhan
 
 
 
===Returns===
: Nothing
 
===Details===
 
Use in combination with SetLFGType and SetLFGComment
 
 
 
===Example===
<dl><dd>
SetLFGType(1, 3)
SetLookingForGroup(1, 3, 6)
SetLFGComment("Daddy needs purples")  
 
 
;Looking for raid group for Karazhan
</dd></dl>

Latest revision as of 04:47, 15 August 2023

WoW API < SetLookingForGroup

Flags the player as looking for group for a specific destination.

SetLookingForGroup(slot, missiontype, destination)

Arguments

slot
Number - Slot index (1 to 3); there are three LFG slots, so you can look for groups for three different destinations.
missiontype
Number - Type index, corresponding to an entry in the GetLFGTypes() return list; the current types are "None", "Dungeon", "Raid", "Quest (Group)", "Zone", "Heroic Dungeon"
destination
Number - Destination index within the mission type -- this would be the specific zone or instance index acquired from GetLFGTypeEntries(missiontype).

Example

local slot, mtype, destination = 1,3,2;
SetLookingForGroup(slot, mtype, destination);
print("Now looking for ", (select(destination, GetLFGTypeEntries(mtype))), " group");

See Also

ClearLookingForGroup