PDA

View Full Version : [317] Log-In Message [Delta]



Zero Mercy
June 24th, 2010, 07:31
Information: Very simple guide showing players how to open a log-in message interface.
Difficulty: 0
Classes Modified: Client.java
Use: Opens an interface with your log-in messages when your players log-in.

Open your client.java and find this:


public void initialize()


You should have got something like this:

public void initialize() {
// first packet sent


If your log-in stuff ( custom stuff, not configuration ) is at the start of your initialize(), I suggest you
move it to around here:

if(inPcGame()){
toX = 2657;
toY = 2639;
}
getTotalLevel();
specAttack();
WriteEnergy();
l33thax(12323);
l33thax(7574);
l33thax(7599);
l33thax(7549);
l33thax(8493);
l33thax(7499);

This will let the game load before loading your stuff. Add it after the last 'l33thax'.
If you have it at the start, it will make you lag at startup, or atleast mine did.

Now under these 'l33thax' add this:


sendQuest("@gre@YOURSERVERNAMEHERE", 8144); //Title
sendQuest("Welcome!", 8145);
clearQuestInterface();
sendQuest("@red@~Staff", 8147);
sendQuest("Owner:", 8148);
sendQuest("Admins:", 8149);
sendQuest("Mods:", 8150);
sendQuest("@red@~Updates", 8151);
sendQuest("This log-in message", 8152);
sendQuest("@red@~News", 8153);
sendQuest("I made this new log-in message!", 8154);
sendQuest("", 8155);
sendQuest("@red@SCROLL DOWN!", 8156);
sendQuest("@red@~Donating", 8157);
sendQuest("Ever thought about donating?", 8158);
sendQuest("For only #$ you can get Donator Status,", 8159);
sendQuest("Donator Zone, Donator Shop, and Donator Items", 8160);
sendQuest("Also, without donations we can't afford to keep", 8161);
sendQuest("the server up. We have to pay for the", 8162);
sendQuest("domain, web hosting, dedicated server, and more.", 8163);
sendQuest("", 8164);
sendQuest("@gre@Thanks for playing YOURSERVERNAMEHERE", 8165);
for(int = 8166; i <= 8197; i++) {
sendQuest("", i);
}
showInterface(8134);
flushOutStream();


Now for the editing
In both of the 'YOURSERVERNAMEHERE' put your server name.
In the 'OWNER: ADMIN: MOD:' put your staff.
In the line under '~Updates' put any recent updates.
In the line under '~News' put any huge news.
In the # in 'For only #$' put your donation price.

Or, if you want to customize it yourself, just delete all the text and add your own information in between all the ' "" '.

Pictures:
First part
Only the registered members can see the link.
Rest of it...
Only the registered members can see the link.

Credits:
Me - 100%

NOTE: I don't care if this guide gets leeched to other sites. Let it help other people too. I just ask one
thing: Please give me credits.

aTime
June 24th, 2010, 07:37
Do you know what forloops are?


for(int = 8166; i <= 8197; i++) {
sendQuest("", i);
}

XxBryantD
June 24th, 2010, 15:59
thanks

Trey
June 24th, 2010, 16:01
Do you know what forloops are?


for(int = 8166; i <= 8197; i++) {
sendQuest("", i);
}


Obviously he does, just look at all those programming languages he knows!

Aaron
June 24th, 2010, 16:19
Thanks, added.

Austin
June 24th, 2010, 23:56
Good job sir.

Zero Mercy
June 25th, 2010, 00:58
FYI:
I'm busy IRL, so I copied the Delta coding.
Maybe if I get some time i'll edit this soon.

Also, this is for beginners. They can edit it if they want.

Zero Mercy
June 25th, 2010, 01:30
Updated pictures. Sorry for double post, my bad. Still getting used to VB forums.

Zero Mercy
June 25th, 2010, 01:31
Obviously he does, just look at all those programming languages he knows!

Does the '%' symbol mean anything to you? I'm only 10%, still a beginner.

Malik
June 25th, 2010, 02:58
This is great,I'll probably use this X)

Trey
June 25th, 2010, 03:04
Does the '%' symbol mean anything to you? I'm only 10%, still a beginner.

I don't know what you're talking about sir. Please calm down.

Divine
June 25th, 2010, 03:14
I don't know what you're talking about sir. Please calm down.

Dude Zero Mercy, he was defending you...

Zero Mercy
June 29th, 2010, 05:08
Sorry, cousin got in to my account while I was gone. He doesn't know shit about VB Forums nor much about Java. Changed password. Won't happen again.

When I asked him if he did it and he said yeah, he said he thought you were being sarcastic.

Fenway`
June 29th, 2010, 05:11
hmm, i feel like this is one of things new coders should figure out themselves so they become better at solving things