• Log in or sign up for an account here: https://www.sythe.org/login

Citron User application stealer

Status
Not open for further replies.

Kori

Member

Banned
Joined
Jan 26, 2007
Sythe Gold
0
Messages
69
Tut 2: leeched from mr brightside From rune-server.org

Code:
Make a new file named "WeaponHandler.java" and put this in there:
*
 *	Manage your weapon style and anything else related to them through here
 *	© Citrons
 */
 import java.io.*;
 import java.util.StringTokenizer;
 
	public class WeaponHandler
	{
	
   	/*
   	 *	Set the default animations here [Edit them if you wish]
   	 */
   	public static int SA = 0x328; 	//Standing animation
   	public static int WA = 0x333;	//Walking animation
   	public static int RA = 0x338;	//Running animation
   	public static int AA = 422;		//Attack animation
   	public static int BA = 1834;	//Blocking animation
   	
   	/*
   	 *	Leave these blank because we use these for emotions that are called
   	 *	seperate from the others
   	 */   	
	public static int StandAn;
	public static int WalkAn;
	public static int RunAn;
	public static int AttackAn;
	public static int BlockAn;
	
	public static int AttackOption; //Differnt FightTypes
	
	public WeaponHandler() 
	{
		System.out.println("WeaponHandler [SIZE="4"]©Mr. Brightsite")[/SIZE];
	}
	
	/*
	 *	Retreiving weapon animations
	 *	[SIZE="4"][COLOR="LemonChiffon"]© Mr. Brightsite[/COLOR]
[/SIZE]	 */
	public static void WeaponAnim(int Weapon)
	{
		String line = "";
		String token = "";
		String token2 = "";
		String token2_2 = "";
		String[] token3 = new String[12];
		boolean EndOfFile = false;
		int ReadMode = 0;
		BufferedReader characterfile = null;
		try 
		{
			characterfile = new BufferedReader(new FileReader("config\\weaponHandler.cfg"));
		} catch(FileNotFoundException fileex) 
		{
			misc.println("weaponHandler.cfg: file not found.");
		}
		try 
		{
			line = characterfile.readLine();
		} catch(IOException ioexception) 
		{
			misc.println("weaponHandler.cfg: error loading file.");
		}
		while(EndOfFile == false && line != null) 
		{
			line = line.trim();
			int spot = line.indexOf("=");
			if (spot > -1) 
			{
				token = line.substring(0, spot);
				token = token.trim();
				token2 = line.substring(spot + 1);
				token2 = token2.trim();
				token2_2 = token2.replaceAll("\t\t", "\t");
				token2_2 = token2_2.replaceAll("\t\t", "\t");
				token2_2 = token2_2.replaceAll("\t\t", "\t");
				token2_2 = token2_2.replaceAll("\t\t", "\t");
				token2_2 = token2_2.replaceAll("\t\t", "\t");
				token3 = token2_2.split("\t");
				if (token.equals("id")) 
				{
					if (Weapon == Integer.parseInt(token3[0]))
					{
						int FightType = Integer.parseInt(token3[4]);
						/*
						 *	If anything contains a -1, it resets the emotes to default ones
						 */
						if (Integer.parseInt(token3[1]) != -1)
						{
							StandAn = Integer.parseInt(token3[1]);
						}
						else
						{
							StandAn = SA;
						}
						if (Integer.parseInt(token3[2]) != -1)
						{
							WalkAn = Integer.parseInt(token3[2]);
						}
						else
						{
							WalkAn = WA;
						}
						if (Integer.parseInt(token3[3]) != -1)
						{
							RunAn = Integer.parseInt(token3[3]);
						}
						else
						{
							RunAn = RA;
						}
						if (Integer.parseInt(token3[5]) != -1)
						{
							AttackAn = Integer.parseInt(token3[5]);
						}
						else
						{
							AttackAn = AA;
						}
						if (Integer.parseInt(token3[9]) != -1)
						{
							BlockAn = Integer.parseInt(token3[9]);
						}
						else
						{
							BlockAn = BA;
						}
						if (FightType >= 0)
						{
							if (AttackOption == 1)
							{
								//Accurate attack
								AttackAn = Integer.parseInt(token3[5]);
							}
							if (AttackOption == 2)
							{
								//Aggressive attack
								AttackAn = Integer.parseInt(token3[6]);
							}
							if (AttackOption == 3)
							{
								//Controlled attack
								AttackAn = Integer.parseInt(token3[7]);
							}
							if (AttackOption == 4)
							{
								//Defensive attack
								AttackAn = Integer.parseInt(token3[8]);
							}							
						}
					}
				}
			} 
			else 
			{
				if (line.equals("[ENDOFWEAPONS]")) 
				{
					try 
					{ 
						characterfile.close(); 
					} 
					catch(IOException ioexception) 
					{ 
					
					}
				}
			}
			try 
			{
				line = characterfile.readLine();
			} 
			catch(IOException ioexception1) 
			{ 
				EndOfFile = true; 
			}
		}
		try 
		{ 
			characterfile.close(); 
		} 
		catch(IOException ioexception) 
		{ 
		
		}
	}	
}

In the rest of that tut you will find lost of things that say - Mr Brightside

Tut 3: Leeched from http://www.rune-server.org/showthread.php?t=15739

Tut 5: leeched from http://www.moparscape.org/smf/index.php/topic,56739.0.html

Ty
Kori
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top