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


The Growing Hit 317 Rs Private Server RapeScap3...BEST Customs!!!
 
HomeHomeGalleryLatest imagesSearchLog inRegister

 

 custom crowning

Go down 
3 posters
AuthorMessage
Bobibob

Bobibob


Posts : 538
Points : 115764
Rank : 24
Join date : 2009-08-27
Age : 29
Location : uk

custom crowning Empty
PostSubject: custom crowning   custom crowning Icon_minitimeThu Oct 29, 2009 5:39 pm

Hey guys, well I've been trying to figure out how to add custom crowns, and I finally figured it out, so I've decided to share it with you

Adding the pixel grabber

Open up class30_sub2_sub1_sub1 and search for "invback"

Then under the last bracket add this:

Code:

else if (s.equalsIgnoreCase("mod_icons") && i == 1)
{
try
{
Image image = Toolkit.getDefaultToolkit().getImage("./sprites/"+s+" "+i+".png"); http://System.getProperty("user.dir") + "\\"+i+".png");
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber.grabPixels();
http://System.out.println(s+" "+i+".png"+ " hopefully loaded");
}
catch (Exception exception)
{
System.out.println(((Object) (exception)));
}
}


else if (s.equalsIgnoreCase("mod_icons") && i == 0)
{
try
{
Image image = Toolkit.getDefaultToolkit().getImage("./sprites/"+s+" "+i+".png"); http://System.getProperty("user.dir") + "\\"+i+".png");
anIntArray1439 = new int[anInt1440 * anInt1441];
PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
pixelgrabber.grabPixels();
http://System.out.println(s+" "+i+".png"+ " hopefully loaded");
}
catch (Exception exception)
{
System.out.println(((Object) (exception)));
}
}


mod_icons 0 = mod crown, mod_icons 1 = admin crown


Step 2 - Making your client load the crowns

Open up client.java and search for "mod_icons". You should see something like this:
Code:

aClass30_Sub2_Sub1_Sub2Array1219[l4] = new Class30_Sub2_Sub1_Sub2(class44_2, "mod_icons", l4);


Now, replace that with:

Code:

// aClass30_Sub2_Sub1_Sub2Array1219[l4] = new Class30_Sub2_Sub1_Sub2(class44_2, "mod_icons", l4);
aClass30_Sub2_Sub1_Sub1Array1219[l4] = new Class30_Sub2_Sub1_Sub1(class44_2, "mod_icons", l4);


This makes it load the crowns from sub1 instead of sub2 (didn't feel like typing names).

Now search for "aClass30_Sub2_Sub1_Sub2Array1219[0].method361(j1, 16083, i1 - 12);" and replace it with:

Code:

aClass30_Sub2_Sub1_Sub1Array1219[0].method348(j1, 16083, i1 - 12);
//aClass30_Sub2_Sub1_Sub2Array1219[0].method361(j1, 16083, i1 - 12);


Now a few lines under that you'll see "aClass30_Sub2_Sub1_Sub2Array1219[1].method361(j1, 16083, i1 - 12);", replace that with

Code:

aClass30_Sub2_Sub1_Sub1Array1219[1].method348(j1, 16083, i1 - 12);
//aClass30_Sub2_Sub1_Sub2Array1219[1].method361(j1, 16083, i1 - 12);


Now search for "array1219" and it'll go down about 10 lines, you'll see "aClass30_Sub2_Sub1_Sub2Array1219[0].method361(k1, 16083, i1 - 12);" now replace that with

Code:

aClass30_Sub2_Sub1_Sub1Array1219[0].method348(k1, 16083, i1 - 12);
//aClass30_Sub2_Sub1_Sub2Array1219[0].method361(k1, 16083, i1 - 12);


Now a few lines under that you'll see "aClass30_Sub2_Sub1_Sub2Array1219[1].method361(k1, 16083, i1 - 12);". Replace that with

Code:

aClass30_Sub2_Sub1_Sub1Array1219[1].method348(k1, 16083, i1 - 12);
//aClass30_Sub2_Sub1_Sub2Array1219[1].method361(k1, 16083, i1 - 12);


Now search for "array1219" again. You'll see "aClass30_Sub2_Sub1_Sub2Array1219[0].method361(k1, 16083, l - 12);". Now replace that with

Code:

aClass30_Sub2_Sub1_Sub1Array1219[0].method348(k1, 16083, l - 12);
//aClass30_Sub2_Sub1_Sub2Array1219[0].method361(k1, 16083, l - 12);


Again, a few lines under, you'll see "aClass30_Sub2_Sub1_Sub2Array1219[1].method361(k1, 16083, l - 12);". Replace that with

Code:

aClass30_Sub2_Sub1_Sub1Array1219[1].method348(k1, 16083, l - 12);
//aClass30_Sub2_Sub1_Sub2Array1219[1].method361(k1, 16083, l - 12);


Now search for "aClass30_Sub2_Sub1_Sub2Array1219 = new Class30_Sub2_Sub1_Sub2[2];" and replace that with

Code:

aClass30_Sub2_Sub1_Sub1Array1219 = new Class30_Sub2_Sub1_Sub1[2];
//aClass30_Sub2_Sub1_Sub2Array1219 = new Class30_Sub2_Sub1_Sub2[2];


Now search for "private Class30_Sub2_Sub1_Sub2 aClass30_Sub2_Sub1_Sub2Array1219[];" and replace that with

Code:

private Class30_Sub2_Sub1_Sub1 aClass30_Sub2_Sub1_Sub1Array1219[];
// private Class30_Sub2_Sub1_Sub2 aClass30_Sub2_Sub1_Sub2Array1219[];



Now you're finished!
Back to top Go down
hellohibi1

hellohibi1


Posts : 8
Points : 110246
Rank : 0
Join date : 2009-10-23
Age : 29
Location : Indiana

custom crowning Empty
PostSubject: Re: custom crowning   custom crowning Icon_minitimeThu Oct 29, 2009 6:05 pm

wow thx for the effort of doin this Smile
Back to top Go down
Pure Kaos




Posts : 438
Points : 2147595307
Rank : 1
Join date : 2009-08-09
Age : 30
Location : England, Bristol

custom crowning Empty
PostSubject: Re: custom crowning   custom crowning Icon_minitimeFri Oct 30, 2009 1:37 pm

hehe ive added the link befor.
Back to top Go down
http://ownageclan123.getgoo.net/portal.htm
Sponsored content





custom crowning Empty
PostSubject: Re: custom crowning   custom crowning Icon_minitime

Back to top Go down
 
custom crowning
Back to top 
Page 1 of 1
 Similar topics
-
» custom crowns
» How to add custom crowns.
» Custom Armor
» Custom PartyHat's
» custom armour suggestion

Permissions in this forum:You cannot reply to topics in this forum
RapeScap3 :: General :: Runescape General-
Jump to: