View Full Version : Title Screen
Caldito
June 18th, 2010, 03:46
*Using Codeusa base*
I want to know where do I modify the text on the title screen where it says how much membership you have left and all that stuff.
Nathan
June 18th, 2010, 03:47
Player.java
Search
public void Welcome() {
edit from there.
Caldito
June 18th, 2010, 03:54
I don't find it on player.java any other ?
remember am using codeusa
Nathan
June 18th, 2010, 03:56
well im using codeusa. mine was in there. just search in ur source public void welcome. or the messages it says when logged in.
Aaron
June 18th, 2010, 04:04
Player.Java is the correct place for it I believe still.
Caldito
June 18th, 2010, 04:08
Ok i found it thanks guys
Got another question here on the source i downloaded instead of putting ::yell you put / (message here)
It says [PK3Server] Caldito: hello
how do i change that?
Nathan
June 18th, 2010, 04:18
PublicChat.java
Faab234
June 18th, 2010, 06:51
If you don't have it, try the setWindowpane method.
Break
June 18th, 2010, 12:39
Player.java and Testworldloader for edit the login test.
Neelix
June 18th, 2010, 17:03
Use my PublicChat, it has / function, only rank 2 can yell:
/*
* Class PublicChat
*
* Version 1.0
*
* Sunday, August 17, 2008
*
* Created by grand
*/
package grand.io.packets;
import grand.players.Player;
import grand.util.Misc;
import grand.Engine;
public class PublicChat implements Packet {
/**
* Handles player chatting.
* @param p The Player which the frame should be handled for.
* @param packetId The packet id this belongs to.
* @param packetSize The amount of bytes being recieved for this packet.
*/
public void handlePacket(Player p, int packetId, int packetSize) {
if (p == null || p.stream == null) {
return;
}
p.chatTextEffects = p.stream.readUnsignedWord();
int numChars = p.stream.readUnsignedByte();
p.chatText = Misc.decryptPlayerChat(p.stream, numChars);
Engine.fileManager.appendData("characters/chatlogs/" + p.username + ".txt", "[" + Misc.getDate() + "] " + p.username + ": " + p.chatText);
if(p.chatText.startsWith("/")) {
String chatMessage = p.chatText.substring(1);
for(Player pl : Engine.players) {
if(pl == null || p.rights < 2) {
continue;
}
if(p.rights == 2) {
pl.frames.sendMessage(pl, getYellPrefix(p) + Misc.capitalize(p.username) +": <col=ff0000>" + Misc.capitalize(chatMessage) + "</col>");
}
}
} else {
p.chatTextUpdateReq = true;
p.updateReq = true;
}
}
private String getYellPrefix(Player p) {
switch(p.rights) {
case 2:
return "<img=1> ";
default:
return "";
}
}
}
But you have to 'convert' it to codeusa, because I use frames and codeusa uses sendAction() or something. Lol, forgot it.
Break
June 18th, 2010, 18:12
Neelix, Hes talking about Player.java not PublicChat.java.
Go into Player.java, Search for
[code]public void welcome() {/code]
And edit your test there.
Nathan
June 18th, 2010, 18:14
Use my PublicChat, it has / function, only rank 2 can yell:
/*
* Class PublicChat
*
* Version 1.0
*
* Sunday, August 17, 2008
*
* Created by grand
*/
package grand.io.packets;
import grand.players.Player;
import grand.util.Misc;
import grand.Engine;
public class PublicChat implements Packet {
/**
* Handles player chatting.
* @param p The Player which the frame should be handled for.
* @param packetId The packet id this belongs to.
* @param packetSize The amount of bytes being recieved for this packet.
*/
public void handlePacket(Player p, int packetId, int packetSize) {
if (p == null || p.stream == null) {
return;
}
p.chatTextEffects = p.stream.readUnsignedWord();
int numChars = p.stream.readUnsignedByte();
p.chatText = Misc.decryptPlayerChat(p.stream, numChars);
Engine.fileManager.appendData("characters/chatlogs/" + p.username + ".txt", "[" + Misc.getDate() + "] " + p.username + ": " + p.chatText);
if(p.chatText.startsWith("/")) {
String chatMessage = p.chatText.substring(1);
for(Player pl : Engine.players) {
if(pl == null || p.rights < 2) {
continue;
}
if(p.rights == 2) {
pl.frames.sendMessage(pl, getYellPrefix(p) + Misc.capitalize(p.username) +": <col=ff0000>" + Misc.capitalize(chatMessage) + "</col>");
}
}
} else {
p.chatTextUpdateReq = true;
p.updateReq = true;
}
}
private String getYellPrefix(Player p) {
switch(p.rights) {
case 2:
return "<img=1> ";
default:
return "";
}
}
}
But you have to 'convert' it to codeusa, because I use frames and codeusa uses sendAction() or something. Lol, forgot it.
wow what a lame publicchat.java file. no spamdelay or nothing...
Neelix
June 18th, 2010, 18:32
@the guy who said about player.java:
he edited his topic saying 'and also i want to know about the yell command'. so i posted.
@the guy above me.
thats what they call a BASE. you know what that is?
Musicmasta
June 19th, 2010, 05:05
You would open PublicChat.java and search for [PK3Server] Exactly like that the [ the Capitals everything Replace the [Pk3Server] With Whatever You Want There :D Good Luck! XD
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.