WoW:API SetFriendNotes: Difference between revisions
Jump to navigation
Jump to search
Added code example
(Initial page (function added in 2.4)) |
(Added code example) |
||
| Line 10: | Line 10: | ||
=== Returns === | === Returns === | ||
:''nil'' | :''nil'' | ||
== Example == | |||
This example is done in a macro but could be converted, it will loop through all the names in your list and delete the note if there was one. | |||
/run for i=1,GetNumFriends(),1 do local name, level , class, loc, connected, status, note = GetFriendInfo(i); SetFriendNotes(i, ""); end | |||
===Result=== | |||
Your <AFK> friend Bill (The level 99 Leprechaun) is in Neverland. | |||
==Notes== | ==Notes== | ||