WoW API: SetFriendNotes

From AddOn Studio
Revision as of 16:28, 6 May 2008 by WoWWiki>Nafe (Initial page (function added in 2.4))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < SetFriendNotes

Sets the note text for a friend.

SetFriendNotes(friendIndex, noteText)

Parameters

Arguments

friendIndex
Integer - Index of friend in the friend list (Note that status changes can re-order the friend list, indexes are not guaranteed to remain stable across events) (Also note that index should not be greater than 50 [see Notes]).
noteText
String - The text that the friends note will be set to.

Returns

nil

Notes

Friend information isn't necessarily automatically kept up to date. You can use the ShowFriends function to request an update from the server.


Do not use indexes greater than 50 (the maximum number of friend list entries)!

In some AddOn constellations I got WoW crashing by typing "/script GetFriendInfo(51)" (especially if FlagRSP was activated).

This crash leads to ERROR #132 (memory could not be "read").

Please use GetNumFriends() to iterate over all indexes securely.

References