~Skeet Skeet Scape~
Would you like to react to this message? Create an account in a few clicks or log in to continue.
~Skeet Skeet Scape~

Best server out there!
 
HomePortalLatest imagesSearchRegisterLog in

 

 how to creat a client guide

Go down 
AuthorMessage
hit here

hit here


Posts : 92
Join date : 2008-07-20
Age : 33
Location : ga, us

how to creat a client guide Empty
PostSubject: how to creat a client guide   how to creat a client guide Icon_minitimeWed Jul 23, 2008 9:40 am

http://silabsoft.org/smf/index.php?showtopic=5 for pics and stuff...


Start your very own Client!

(Very Easy & Basic)


Ok lets get started...

Getting a Base:

First we are going to have to get a client base, i highly recommend Galkon's Client Base for the sole reason that it is easy to work with for the newest of members. It can be found here..

Mirror 1:
http://www.xcit-filestore.gotdns.com/downl...kons-client.php

Mirror 2:
http://www.megaupload.com/?d=VW8Y5P6K

To you extremelly new web users, enter the three digits then it will redirect you to the download page...

You also need WinRar to extract the client which can be found here..

http://www.rarlab.com/download.htm

Compiler and JDK:

First download JDK at http://java.sun.com/javase/downloads/index.jsp and install it.

Next open up a text document and save it as compile.bat and remember to make the file type "All Files". Now right click the file and click edit.

Paste this into there...

CODE
@echo off
COLOR 0f
title Compiler.
"C:\Program Files\Java\jdk1.6.0_05\bin\javac.exe" -cp . *.java
pause


Now change the jdk1.6.0_05 to whatever version you downloaded or have.

Editing Text:

Ok, lets start editing it..

First lets change the name of it to yours:

1. Rename the folders

2. Go in to Frame_Sub1.java and search for this

CODE
setTitle


Change the title to the name you want it to be.

3. Go in to EGUI.java, under this.. (OPTIONAL)

CODE
client.main(new String[] {


You should see some of these "" "" "" or an ip in them like 127.0.0.1. This part is optional but you can change the IP's to your server IP by editing all of them, this will make your server IP instantly show when you get into the client.

That should be the ending result of your EGUI (Edit the "YOUR IP HERE" statements).

If you do not have an EGUI, search in your client.java for the already set IP and change it.

4. Go into client.java (There is quite a bit to do here!)

If you are using Galkons Client Base use Ctrl + F and search then replace the word "galkon" with whatever you want it to be.

Save + Compile

Changing the Background:

1. Ok lets start editing the picture, editing it with Galkons Client Base is extremelly easy, simply double click the image which should be named "galkon" and edit it to whatever you want (This is because background flipping was disable for easier use by Galkon). I recommend Jasc Paint Shop Pro 9 to do this.

If you are using a different client, you will have to Flip the image...

Ok make sure your image has the dimensions of 766 by 503

Now you have to flip it:
Click and hold from the bottom right corner of the image, then drag to the middle untill the numbers at the bottom say 383 by 503, then right click and flip then press ok.


Example of an image (Used DHGaming background, couldn't be bothered to do one myself biggrin.gif sorry):




2. Want to change the name of the file? This can only be done by following these steps, if you just change it by renaming it, your client will error!

I) Open up Class30_Sub2_Sub1_Sub1.java and search for the file name (In this case galkon). Rename it with whatever you want to call the image file and save.

II) Now rename the file to whatever you renamed it in Class30_Sub2_Sub1_Sub1.java and compile!

Editing the Sprites:

Now we want to edit the sprites!

Editing the sprites is extremelly simple and easy! Go in to your Sprites folder, double click an image and edit it with Jasc Paint Shop Pro, or Paint if you dont have it.

NOTE: Do not rename any files or else the client will error!

Editing Textures:

Open up Class30_Sub2_Sub1_Sub3 and search for..

CODE
public static final int[] method371(int i)


Then add this directly under that method

CODE
if (i == TEXTURE ID) {
i = OBJECT ID;
}


Replace "TEXTURE ID" and "OBJECT ID" with the correct IDs you want to add..

Here are some Textures:

CODE
* 50 suggests the end of the textures...
* 49 = Something to do with 48, I assume
* 48 = Hyroglyphs
* 47 = Extremely light wall colour
* 46 = Ground in varrock by the fountain
* 45 = Door
* 44 = Similar to 43; Darker
* 43 = Buildings' stone wall
* 42 = Sold blue
* 41 = Bushes of some sort
* 40 = Lava
* 39 = Painting of an elf
* 38 = One of the new Falador textures
* 37 = Same as 38
* 36 = Door or floor texture
* 35 = New Falador walls
* 34 = Magic tree stars
* 33 = Maple tree leaves
* 32 = Sand
* 31 = Another lava overlay
* 30 = Yew tree overlays
* 29 = Fern Leaves
* 28 = ???????
* 27 = Snake skin
* 26 = Spider webs
* 25 = Water of some sort
* 24 = Flowing water
* 23 = Dark buidling siding
* 22 = Wooden floor
* 21 = Roofing
* 20 = Book case
* 19 = Something with.. holes..
* 18 = Sand
* 17 = Water found water
* 16 = Wooden roof I think.
* 15 = Looks like an overlay for water?
* 14 = Portrait of a king
* 13 = Landscape of mountains
* 12 = Bars on those jail doors, etc
* 11 = Runecrafting altar \ mysterious rune texture
* 10 = Solid blue
* 9 = Tree stumps
* 8 = Tree leaves
* 7 = Logs
* 6 = Red roofing
* 5 = Really dark wood texture
* 4 = Elven doors
* 3 = Wooden flooring
* 2 = Stone walls (i.e. on Varrock banks, etc)
* 1 = Water
* 0 = Door


Clarifying some Classes:

Class5 - NPCs

Class8 - Items

Class7 - Object Loading

Class9 - Interfaces

Class16 - Sounds

Class20 - Animations

Class23 - Graphics Importer

Class25 - Worldmap

Class30_Sub2_Sub1_Sub2 - Background

Class30_Sub2_Sub1_Sub3 - Textures

Class30_Sub2_Sub4_Sub6 - Models

Class31 - Packets

Class35 - Text Input

Class44 - Cache

Class45 - Skills

Class46 - Objects

Class48 - Mouse Detection

Class50 - Text


Here are a couple of basic tutorials (By Me) for your client!


Changing text in the Chat Box


Purpose: To change the colour of text in your chat box.

Difficulty: 1/10

Assumed Knowledge: Ability to use your brain and follow instruction.

Files Altered: client.java

Base: Any editable client

Step One: Changing the colours after the message is sent

First open your client.java and search for this..

CODE
class30_sub2_sub1_sub4.method385(0, s1 + ":", i1, 822, j1);
j1 += class30_sub2_sub1_sub4.method383(anInt1116, s1) + 8;
class30_sub2_sub1_sub4.method385(255, aStringArray944[k], i1, 822, j1);


See where it says: "method385(0, s1 + ":", i1, 822, j1);"

Changing the number "0" will alter the colour of your name after you send a message.

Here where it says: "method385(225, aStringArray944[k], i1, 822, j1);"

Changing the number "225" will alter the colour of your text after you send a message.

Step Two: Changing the colours before the message is sent

Now search for...

CODE
class30_sub2_sub1_sub4.method385(0, s + ":", 90, 822, 4);
class30_sub2_sub1_sub4.method385(255, aString887 + "*", 90, 822, 6 + class30_sub2_sub1_sub4.method383(anInt1116, s + ": "));
Class30_Sub2_Sub1.method339(77, 0, 479, 0, (byte)4);


Where it says "class30_sub2_sub1_sub4.method385(0, s + ":", 90, 822, 4);"

Just like before if you change the "0" it will change the text colour of your name, but this will change it before the message is sent.

Now where it says "class30_sub2_sub1_sub4.method385(255, aString887 + "*", 90, 822, 6 + "

Again just like before if you change the number "255" it will change the colour of the text before it is sent.

A few colours:

Black = 0

Red = 0xff0000

White = 0xffffff

Green = 65280

Here is an example:




--------------------------------------------------------------------------------------


HP Above Heads


Purpose: To add HP above heads.

Difficulty: 1/100

Knowledge needed: Must know how to use ctrl+f and to copy and paste.

Base: All editable clients.

Folders Altered: Client.java

In your Client.java declare this:

CODE
public boolean hp = true;


Then find this in your Client.java:

CODE
if(((Class30_Sub2_Sub4_Sub1) (obj)).anInt1532 > anInt1161)
{
method127(true, ((Class30_Sub2_Sub4_Sub1) (obj)), ((Class30_Sub2_Sub4_Sub1) (obj)).anInt1507 + 15);
if(anInt963 > -1)
{


Then below that add this:

CODE
if(hp == true)
aClass30_Sub2_Sub1_Sub4_1272.method382(0xff0000, anInt963, -918, (new StringBuilder()).append(((Class30_Sub2_Sub4_Sub1)(Class30_Sub2_Sub4_Sub1)obj).anInt1533).append("/").append(((Class30_Sub2_Sub4_Sub1)(Class30_Sub2_Sub4_Sub1)obj).anInt1534).toString(), anInt964 - 9, true);


Save and compile

--------------------------------------------------------------------------------------


Fixing log in and out messages


Purpose: Here is the fix to the annoying error in most clients which say "Friend name" has logged in when they have really logged out.

Difficulty: 1/100

Knowledge needed: Must know how to use ctrl+f and to copy and paste.

Base: All editable clients.

Folders Altered: Client.java

In your Client.java search for this:

CODE
method77(s7 + " has logged in.", 5, "", aBoolean991);


You should see this:

CODE
if(i18 > 0)
method77(s7 + " has logged in.", 5, "", aBoolean991);
if(i18 == 0)
method77(s7 + " has logged out.", 5, "", aBoolean991);

}


Replace it with this:

CODE
if(i18 > 1)
method77(s7 + " has logged in.", 5, "", aBoolean991);
if(i18 == 1)
method77(s7 + " has logged out.", 5, "", aBoolean991);
}


Save and compile

Credits: Scarecrows for Tutorial, Galkon for Client Base me for finding it for haze
Back to top Go down
http://dragpkerz.tk/
 
how to creat a client guide
Back to top 
Page 1 of 1
 Similar topics
-
» new client !
» client not working
» Is there a client????
» new shops in new client
» SOME FEATURES ABOUT THE CLIENT!!!!

Permissions in this forum:You cannot reply to topics in this forum
~Skeet Skeet Scape~ :: Skeet Skeet Scape :: Help-
Jump to: