|
|
| Line 1: |
Line 1: |
| {{wowapi}}__NOTOC__ | | {{wowapi}}__NOTOC__ |
| Flags yourself as LFG for up to three objectives | | Flags yourself as LFG <br> |
| SetLookingForGroup(category1, objective1[, category2, objective2], [category3, objective3[, message]]) | | SetLookingForGroup(Interfacerow, missiontype, destination) |
|
| |
|
| ===Takes=== | | ===Takes=== |
| : Number category1 | | : Number Interfacerow |
| : Number objective1 | | : Number missiontype |
| : Number category2 (optional) | | : Number destination |
| : Number objective2 (optional)
| | |
| : Number category3 (optional)
| | Interfacerow<br> |
| : Number objective3 (optional)
| | <br> |
| | The LFG interface has 3 rows (You can look for 3 things), this number indicates which one (1 to 3) |
| | |
| | missiontype<br> |
| | <br> |
| | The type is None/Dungeon/Raid/Quest(group)/Zone/Heoric Dungeon and the avlue is accordingly, ie 3=raid |
| | |
| | destination<br> |
| | <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 |
| | |
|
| |
|
| : String identifier (optional)
| |
| ::An additional message that both gets transferred to the server and is stored locally. Might be a little comment or message that is retrieved with [[API_GetLFGResults|GetLFGResults()]] by other players.
| |
|
| |
|
| ===Returns=== | | ===Returns=== |
| Line 18: |
Line 26: |
|
| |
|
| ===Details=== | | ===Details=== |
| : This function accepts up to three pairs of LFG values:
| |
| :: Each category must be the index of one of the values retrieved with [[API_GetLFGTypes|GetLFGTypes()]]
| |
| :: Each objective must be the index of one of the values retrieved with [[API_GetLFGTypeEntries|GetLFGTypeEntries(category)]]
| |
|
| |
|
| : The first invalid value pair you specify will prevent all following value pairs from being parsed.
| | Use in combination with SetLFGType and SetLFGComment |
| | |
|
| |
|
| : This function, much like any other LFG function, has highly inconsistent code. For instance it checks for argument 4 being a string after having processed all value-pairs. If this evaluates to true, it pushes argument 7 onto the return stack. This suggests that the function once had the prototype SetLookingForGroup(category, objective, unknown, message) and that this check hasn't been adjusted yet.
| |
|
| |
|
| ===Example=== | | ===Example=== |
| <dl><dd> | | <dl><dd> |
| :This registers you only for the second objective in the category 'Zone':
| | SetLFGType(1, 3) |
| SetLookingForGroup(4, 2, 0, 0, 0, 0, 'Free hat!') | | SetLookingForGroup(1, 3, 6) |
| | SetLFGComment("Daddy needs purples") |
| | |
| | |
| | ;Looking for raid group for Karazhan |
| </dd></dl> | | </dd></dl> |
|
| |
|
| {{User:Zelgadis/LFG_notice}} | | {{User:Zelgadis/LFG_notice}} |
| {{User:Xix_xeaon/LFG_Notice}} | | {{User:Xix_xeaon/LFG_Notice}} |