User Tools

Site Tools


Scripting - Friend control function

Here can find some information about Enhanced Scripting function to control friend list by script!


Add a Player to a friend list
Syntax Friend.AddPlayer(string FriendListName, string PlayerName, int PlayerSerial)
Add the player specified to the Friend list named in FriendListName parameter
Returns void
In Object: Friend
Parameters: FriendListName, PlayerName, PlayerSerial

Check Friend

Check if Player is in FriendList
Syntax Friend.IsFriend(int)
Get a bool value if serial is in friend list or not, also if partyinclude option is active on GUI search in party also.
Returns bool
In Object: Friend
Parameters: SerialToSearch

Change List

Change Friend list
Syntax Friend.ChangeList(string)
Change friend list, List must be exist in friend list GUI configuration
Returns void
In Object: Friend
Parameters: ListName

Read Data

Get friend list
Syntax Friend.GetList(string)
Retrive list of serial in list, List must be exist in friend list GUI configuration.
Returns list (int)
In Object: Friend
Parameters: FriendListName

friends_func.txt · Last modified: 2020/08/23 15:28 (external edit)