Originally Posted by
Nobody77
It means that the player can no longer receive friend requests from that person (as you'd expect). I guess it is forever, as I don't think the client has any UI for blocked requests where you could unblock etc..
How do I obtain the 'targetName'? I looked at how trades are done and found this,
Code:
var target = Owner.GetPlayerByName(pkt.Name);
But this means I need to handle packets? How would I get the value of 'targetName' in 'AcceptRequest' for example?
In the client I have found this,
Code:
private function onSearchFriendClicked(_arg_1:MouseEvent):void {
this.actionSignal.dispatch(FriendConstant.SEARCH, this._nameInput.text());
}
Code:
private function onAcceptClicked(_arg_1:MouseEvent):void {
actionSignal.dispatch(FriendConstant.ACCEPT, this._senderName);
}
Am I right in thinking,
'this._nameInput.text()' = current user
'this._senderName' = target user
Or is it the other way round?