Results 1 to 3 of 3
  1. #1
    bennyboo123's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    112
    Reputation
    20
    Thanks
    657
    My Mood
    Dead

    Mass Friend Request

    This only works on people that are in your current world/location. Using PlayerList...duuhhhh
    This will also freeze when doing it, but it aint no biggie. Thread.Sleep :PP
    Also sometimes crashes randomly from what I can see.


    I'm not versed, but if you can list all Map/cell IDs, teleport to each of them, then SendFriendRequest once you're there. That way you can get more people.

    This could be useful to some people I guess?
    I personally put this in Game class in Update() void
    Code:
    if (Input.GetKey(KeyCode.Insert))
    {
    	foreach (Player player2 in Entities.Instance.PlayerList)
    	{
    		Chat.Notify(player2.name.ToString(), "[FF0000]", Chat.FilterType.General);
    	}
    }
    1) Find SendFriendRequest. There should be 2 of them, 1 using int/ID and another one using string/name.
    2) Change SendFriendRequest(int id) to
    Code:
    public void SendFriendRequest(int id)
    {
    	if (Session.MyPlayerData.CanAddMoreFriends)
    	{
    		foreach (Player player2 in Entities.Instance.PlayerList)
    		{
    			RequestFriend requestFriend = new RequestFriend();
    			requestFriend.CharID = Session.MyPlayerData.ID;
    			requestFriend.FriendID = player2.ID;
    			this.aec.sendRequest(requestFriend);
    			Thread.Sleep(500);
    		}
    	}
    }
    3) Change SendFriendRequest(string name) to
    Code:
    	public void SendFriendRequest(string name)
    	{
    		if (Session.MyPlayerData.CanAddMoreFriends)
    		{
    			foreach (Player player2 in Entities.Instance.PlayerList)
    			{
    				RequestFriend requestFriend = new RequestFriend();
    				requestFriend.CharID = Session.MyPlayerData.ID;
    				requestFriend.FriendID = -1;
    				requestFriend.Name = player2.name.ToString();
    				this.aec.sendRequest(requestFriend);
    				Thread.Sleep(500);
    			}
    		}
    	}
    4) Save
    5) Profit



    UPDATE: To bypass Ignore for adding friends.
    Find SyncIgnore void
    Take out the sendrequest part
    Enjoy adding people who have you blocked

    Last edited by bennyboo123; 06-23-2022 at 03:39 AM.

  2. #2
    IfOnlyYouKnew's Avatar
    Join Date
    Feb 2021
    Gender
    male
    Location
    Just me, my PC and my idiocy
    Posts
    470
    Reputation
    197
    Thanks
    3,426
    My Mood
    Angelic
    Quote Originally Posted by bennyboo123 View Post
    [FONT="Verdana"][COLOR="Black"][SIZE="2"][COLOR="#B22222"]This only works on people that are in your current world/location. Using PlayerList...duuhhhh
    I personally wouldn't use Thread.Sleep if possible. Instead try adding
    using System.Threading.Tasks;
    then make your method async and call
    await Task.Delay(int DelayInMS);
    Just my preference, not trying to say it's better.
    Contributor: March 14'th, Minionforce: March 15'th, Minion Plus: May 30'th, 2023, Former Staff: #

    Coding Hobbyist | - Current Activity | BattleOn | RotMG |


    Want to make my life better? <3 BTC: 3JoQRjwK28DVGTzL4mYkpjHRBeoFwNFVe7

  3. #3
    bennyboo123's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    112
    Reputation
    20
    Thanks
    657
    My Mood
    Dead
    Quote Originally Posted by IfOnlyYouKnew View Post
    I personally wouldn't use Thread.Sleep if possible. Instead try adding
    then make your method async and call Just my preference, not trying to say it's better.
    You're 100% correct. Just the first thing that popped in my mind to make it work :P

  4. The Following User Says Thank You to bennyboo123 For This Useful Post:

    IfOnlyYouKnew (06-25-2022)

Similar Threads

  1. Mass.
    By [CF]Tree in forum Showroom
    Replies: 1
    Last Post: 09-10-2011, 09:57 PM
  2. 294 Friend Request OMG!!
    By Ryuesi in forum General
    Replies: 37
    Last Post: 08-19-2011, 11:27 AM
  3. MSN Friend Request Spam
    By Paladin in forum General
    Replies: 11
    Last Post: 06-18-2011, 10:22 PM
  4. AI HAVE A FRIEND REQUEST
    By Horney in forum Spammers Corner
    Replies: 11
    Last Post: 05-28-2011, 10:35 AM
  5. Friend's request.
    By RJ in forum Art & Graphic Design
    Replies: 3
    Last Post: 09-24-2008, 07:27 AM