[Tut - 508] Loading friends and ignore lists

Junior Spellweaver
Joined
May 17, 2007
Messages
131
Reaction score
2
Description: To make the Friends list and ignore list connect.

Difficulty: 1/10

Assumed Knowledge: Know how to find a file.

Tested Server: 508 server

Files/Classes Modified: Frames.java, Login.java

Procedure
Step 1: First open up frames.java in rs2.io.packets and add this.



Code:
/** * Connects to the friend and ignore servers * @param p The player which the frame should be created for. */ public void connecttofserver(Player p){ if(p == null || p.stream == null || p.disconnected[0]){ return; } p.stream.createFrame(115); p.stream.writeByte(2); }
Step 2: Save frames.java. Open up Login.java (rs2.io) and under...


Code:
p.frames.setConfig(p, 1085, 249852);
Add...


Code:
p.frames.connecttofserver(p);

Step 3: Save, compile, run, and login!


Credits: Lumby from rune-server
 
Last edited by a moderator:
Back