View Full Version : How to make yourself Owner
Karbon
November 15th, 2010, 21:25
Step 1
To make yourself have a crown next to your name just go to Emily's Custom Rank Thing or follow this for owner status
Lets start with the client,
File: Class42.java
Search for:
("<img=1>" + arg2.method363(true, true),
Ok, ABOVE:
if (i_12_ == 2)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
Add this:
if (i_12_== 3)
Class23_Sub4_Sub3.method376
("<col=33FF00> <img=1>" + arg2.method363(true, true),
"<col=33FF00> <img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
now you have a crown in your chat.
Now for the custom yell:
Go into commandpackethandler src-com-rs2hd-packethandlers-commandpackethandler, should be in there.
Search for:
if(cmd[0].equals("yell")) {
String yellText = command.substring(5);
for(Player p : World.getInstance().getPlayerList()) {
if (p ==null) {
continue;
or something similar, just as long as it has yell in it.
add:
if(player.getRights() == 3) {
p.getActionSender().sendMessage("[Owner]<img=1><col=0000ff>"+player.getUsername()+": "+Misc.upper(yellText));
or
if (player.getUsername().equals("karbon")) {
p.getActionSender().sendMessage("<col=FF0000><img= 0><img=1>[Owner]<img=1><img=0><shad=030303><col=030303>"+player.ge tUsername()+": "+Misc.upper(yellText));
continue;
}
for a yell to a designated player.
well, you get the idea, heres a colour code from Emily's custom ranks Tut.
Only the registered members can see the link.
Heres (Only the registered members can see the link.) a Larger css colour chart from steve.
Major thanks to Emily, for giving me this idea.
Steve
November 15th, 2010, 21:44
This is a much better CSS Color Chart :o, Only the registered members can see the link.
Karbon
November 27th, 2010, 02:20
This is a much better CSS Color Chart :o, Only the registered members can see the link.
mmkz z0rs
Kurdz
November 27th, 2010, 12:05
its more like:
if (p5.username.equals("kurdz")){
titles = "<img=1><col=0066CC>[Owner] ";
change the "kurdz" (leave the speach symbol things) to the person who's owner or whteva
and here's html colour code: Only the registered members can see the link.
apache ah64
November 27th, 2010, 21:26
thats 517 and 317.... kurdz its for 562 LOL im the 562+ coder you 517 Xd anyways...
if(cmd[0].equals("yell")) {
String yellText = command.substring(5);
for(Player p : World.getInstance().getPlayerList()) {
if (p ==null) {
continue;
}
if (player.getUsername().equals("apache_ah64")) {
p.getActionSender().sendMessage("<col=FF0000><img=0><img=1>[Main Owner]<img=1><img=0><shad=030303><col=030303>"+player.getUsername()+": "+Misc.upper(yellText));
continue;
}
if(player.getRights() == 2) {
p.getActionSender().sendMessage("<shad=FFFF00>[Admin]<img=1>"+player.getUsername()+": "+Misc.upper(yellText));
}
if(player.getRights() == 1) {
p.getActionSender().sendMessage("<col=7A7A7A>[Mod]<img=0>"+player.getUsername()+": "+Misc.upper(yellText));
}
if(player.getRights() == 0) {
p.getActionSender().sendMessage("<col=CC33FF>[TkoScape]"+player.getUsername()+": "+Misc.upper(yellText));
}
if(player.getRights() == 4) {
p.getActionSender().sendMessage("<col=CC33FF>[TkoScape]"+player.getUsername()+": "+Misc.optimizeText(yellText));
}
}
}
SiniSoul
November 27th, 2010, 21:28
I always laugh at these tuts xD
`Conner
November 28th, 2010, 03:39
Why would you do the crown part in the client.../facepalm.
`Conner
November 28th, 2010, 03:40
thats 517 and 317.... kurdz its for 562 LOL im the 562+ coder you 517 Xd anyways...
LOLd irl at 517.
Roxas
November 28th, 2010, 07:21
I always laugh at these tuts xD
So do I... I dont know why people still make these lol
Karbon
December 12th, 2010, 04:58
Why would you do the crown part in the client.../facepalm.
Because thats how you would do it?
Karbon
December 12th, 2010, 04:59
And btw, you guys are fuckheads, this is for beginner coders like mois.
Karbon
January 3rd, 2011, 05:39
Why would you do the crown part in the client.../facepalm.
shut up troll.
CRAIZYBART
January 3rd, 2011, 05:42
good helping guide 6/10 :D
Karbon
January 3rd, 2011, 05:56
ty :D
Killz u
January 22nd, 2011, 16:33
ok so there is only one problem in this that i found and its on the client side since you put
if (i_12_== 3)
Class23_Sub4_Sub3.method376
("<col=33FF00> <img=1>" + arg2.method363(true, true),
"<col=33FF00> <img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
under
if (i_12_ == 2)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
it will make people say things twice in the client instead you have to put it above it so it would look like this
if (i_12_== 3)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
else if (i_12_ == 2)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
AshtonLOL23
January 22nd, 2011, 16:38
can anyone help me i have source nr scape annd like its 562 can anyone help me how i do it hotmail Ashton_lol23@hotmail.com
Karbon
January 24th, 2011, 06:52
ok so there is only one problem in this that i found and its on the client side since you put
if (i_12_== 3)
Class23_Sub4_Sub3.method376
("<col=33FF00> <img=1>" + arg2.method363(true, true),
"<col=33FF00> <img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
under
if (i_12_ == 2)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
it will make people say things twice in the client instead you have to put it above it so it would look like this
if (i_12_== 3)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
else if (i_12_ == 2)
Class23_Sub4_Sub3.method376
("<img=1>" + arg2.method363(true, true),
"<img=1>" + arg2.method361(false, (byte) -44),
-23645, i_17_, string, 0, null, i_16_);
yeah, I posted this before i found that small mistake and i cbf redoing the method.but ill put in now, cus i got plenty of nothing to do.
crezzy
January 24th, 2011, 10:56
and you really need to edit your client to do this? No you don't it can be done just with the server.
Vesta Main
March 15th, 2011, 01:43
This is a much better CSS Color Chart :o, Only the registered members can see the link.
How about this =) Only the registered members can see the link.
Zaid
March 16th, 2011, 21:20
Yea i like vesta Main's color chart :)
Divine-X
March 16th, 2011, 21:27
Because thats how you would do it?
Wrong. ;-;
If I'm not mistaken most clients already have the player rights set? So when you go to CommandPacketHandler.java you would just do
if(cmd[0].startsWith("yell")){
String yellText = command.substring(5);
for(Player p : World.getInstance().getPlayerList()) {
if (p ==null) {
continue;
}
if (player.getUsername().equals("")){
p.getActionSender().sendMessage("[]"+player.getUsername()+ ": "+Misc.optimizeText(yellText));
continue;
}
if (player.getUsername().equals("central")) {
p.getActionSender().sendMessage("<shad=9A2EFE><img=1>[Owner/Coder]"+player.getUsername()+": "+Misc.optimizeText(yellText));
continue;
}
if (player.getUsername().equals("")) {
p.getActionSender().sendMessage("<img=1><col=9900CC>[admin]<img=1>"+player.getUsername()+": "+Misc.optimizeText(yellText));
continue;
}
if (player.getUsername().equalsIgnoreCase("")) {
p.getActionSender().sendMessage("<col=0000FF><img=1><img=1>[]<img=1><img=1>"+player.getUsername()+": "+Misc.optimizeText(yellText));
continue;
}
if (player.getUsername().equalsIgnoreCase("")) {
p.getActionSender().sendMessage("<col=0000FF><img=1><img=1>[]<img=1><img=1>"+player.getUsername()+": "+Misc.optimizeText(yellText));
continue;
}
if(player.getRank() == 1) {
p.getActionSender().sendMessage("<col=ff0000>[Moderator]<img=0>"+player.getUsername()+": "+Misc.optimizeText(yellText));
}
if(player.getRank() == 2) {
p.getActionSender().sendMessage("<col=ff0000>[Administrator]<img=1>"+player.getUsername()+": "+Misc.optimizeText(yellText));
}
if(player.getRank() == 0) {
p.getActionSender().sendMessage("[Member]"+player.getUsername()+": "+Misc.optimizeText(yellText));
}
}
/faceplam
Not trolling. I'm just helping.
And the crowns are already preset to the correct rights...
Nothing client sided.. Your just wasting time. ;-;
P.S. In Game it would already show the crown in the chatbox just threw chatting.
Karbon
March 22nd, 2011, 03:37
Can you put me in your ignore list? Just fa fun :DAnd ty for that fixo thingo, i iz junior coder
herp derp + fa me
vilkata
March 26th, 2011, 19:25
Hey i put the code in but now when i say something itll have the crown then show me saying it without a crown too. what do i do?
Hellstyle
May 14th, 2011, 20:19
if (player.getUsername().equals("karbon")) {
p.getActionSender().sendMessage("<col=FF0000><img= 0><img=1>[Owner]<img=1><img=0><shad=030303><col=030303>"+player.ge tUsername()+": "+Misc.upper(yellText));
continue;
}
Almost Right... This only gives 8 Errors on Most 562 Servers, U should Use:
if (player.getUsername().equals("Hellstyle")) {
p.getActionSender().sendMessage("[C+ Coder]<img=1><shad=0B6138>"+player.getUsername()+": "+Misc.optimizeText(yellText));
}
fatpoop
December 20th, 2011, 23:36
Hey i put the code in but now when i say something itll have the crown then show me saying it without a crown too. what do i do?
i got the same error. someone help?
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.