[TUT 503] Set Earthquake

Junior Spellweaver
Joined
Aug 12, 2006
Messages
115
Reaction score
2
This to Frames.java
Code:
    public void setEarthquake(Player p, int strong)//Found by laxika
    { 
	p.outStream.createFrame(242);
	p.outStream.writeDannoByte(strong);
	p.outStream.writeDannoByte(strong);
	p.outStream.writeDannoByte(strong);
	p.outStream.writeDannoByte(strong);
	p.outStream.writeWord(strong);
	/* Strong = 1 - 4 */
    }

and this to HandleCommands.java

Code:
else if(command.startsWith("earthquake"))
{
            	String[] s = command.split(" ");
		p.frame.setEarthquake(p,Integer.parseInt(s[1]));
}

This just for fun ...


This tutorial has been created by laxika from rune-server .
 
Junior Spellweaver
Joined
Aug 12, 2006
Messages
115
Reaction score
2
This tutorial is for 503 servers , not 317/377

And if you cant find frames.java from 503 server files then ....

Uh
RS2E/Packets/
there is a file called frames.java.
 
Junior Spellweaver
Joined
May 17, 2007
Messages
131
Reaction score
2
Nice :p and thanks for the nice comment on my post

(sorry for offtopic)(i.ve added the tut's from rune-server now for 508 :p)
 
Back
Top