PDA

View Full Version : Almost finish with server , just somethings are missing help please.



Caldito
June 22nd, 2010, 06:39
Base : **codeusa**

1.- I have my slayer tower (floor 2 done) with Gargoyles, Dark Beast, and Abby Demons. I do recive exp of att,str,def and hp but when i finish killing them i do not recive slayer exp. Where can i fix that?

2.- I need help on adding shops because I have tried to add two shops but I can't . Can someone explain me how to add shops? I will apriciate alot!

3.- When i put protect melee and i fight bandos , he still hit me 61. how do i fix it?

4.- How to add a Book with the commands and how to write the commands.

5.- Sever messages, how do i add server messages, someone told me on Player.java and search for:

process()

And below put:

if (serverMsg == 100) {
getActionSender().sendMessage(this, "(Your Message Here)");
getActionSender().sendMessage(this, "(Your Message Here)");
getActionSender().sendMessage(this, "(Your Message Here)");
}

if (serverMsg == 0) {
serverMsg = 200;
}
if (serverMsg > 0) {
serverMsg--;
}

I tried that but didn't work but right now i found another one :

public void message(String message) {
getActionSender().sendMessage(this, message);
}

Which of the two are the one that needs to be modified?

Thanks all people that have answered to my topics! I really appriciate it because you guys have helped me alot!

chocothunda
June 22nd, 2010, 06:51
To add shops, look in your client.java for wanneshop, and that is where you add the npc id for the shop I think, then just add the items in shops.cfg.

I'm pretty sure thats how it is :s

Wise Old Man
June 22nd, 2010, 11:31
For the 4th one you have to add a object option to the book.. :D
Say the book item id is 1500..
(This is just simple code.. Not actual code :D)
case 1500:
openInterface(544)
}
Then after that you will have to change what interface 554 says.. :D

Caldito
June 22nd, 2010, 14:25
But where do i put all this thing you telling? i mean in which .java file i put the case and interface and the message?

Musicmasta
June 22nd, 2010, 16:25
the server message thing should work you put it in wrong probably and i forgot to tell you to add


public int serverMsg;

Lol thats kind of important :o

Caldito
June 22nd, 2010, 17:33
I putted like this:


public void process() {
public int serverMsg;
if (serverMsg == 100) {
getActionSender().sendMessage(this, "(Test)");
getActionSender().sendMessage(this, "(Your Message Here)");
getActionSender().sendMessage(this, "(Your Message Here)");
}

if (serverMsg == 0) {
serverMsg = 200;
}
if (serverMsg > 0) {
serverMsg--;
}

and when i compile this how it looks.

Only the registered members can see the link.