PDA

View Full Version : A guide for noobs. {DELTA}



ajax211
July 19th, 2010, 06:56
CHAPTERS
Chapter 1: (Basics to npcs)
Chaper 2: (client.java coding)
Chapter 3: (basics to commands)
Chapter 4: (Some basic tips to make your server great)

p. 1.-(Adding an npc)

Dfficulty:1/10 beginers maybe 1.5
Coded:autospawn.cfg

Ok adding an npc is very simple.


•Code:


spawn = 2 2034 5041 0 0 0 0 0 1

Explination:


spawn = 2 (the npc id)

2034=x coords

5041= y coords

0 0 0 0 0=The 0s are if you want your npc to move you add from 1 coord to the other


P.1.1-(making npc drops)

Diffculty 1/10
Coded: npcdrops.cfg


•Code:


//abbysal

npcdrop = 2265 526 1 100
Explination:

npcdrop = 2265 (npc id)

526=(iteam id)(bones)

1=(how much of the iteam)

100=(percentage of iteam droped)

Tip:if iteam is rare keep at 1 percent!



~CHAPTER 2~

P.1 (changing log in message)

Diffculty: 1/10
Coded:all client.java

This is plain and simple


•Code:

sM("Welcome to Sythz");
sM("forums: BLABLA!");
sM(" ::talk( message to everyone), ::food!");
sM("[Last Update]: duping is mostly fixed & equiptment stat works now!");
sM("[Commin Updates]: A new home plus new custom mini games");

sM(" Most recent update donor island so go and donate");
U serch wt ever ur old login used to be then replace in between brackets what u want


p.1.1 (Adding global objects)

Diffculty 1/10

Code:


•makeGlobalObject(3509, 9496, 3831, 0, 10);


EXPLINATION:

3509=x coords

9496=y coords

3831=obj id

0=style

10=style



p.2 (deleting objects)

code:



deletethatobject(3084, 3246);


3084=x coords

3246= y coords




~~Chapter 3~~ (basics to comands)
Diffculty:1/10 but 2/10 for beginers
Coded:all client.java
Ok now each command has 2 main parts

heres 1 example of a code

Code:


if(command.startsWith("pickup") && playerRights >= 1) {

Explination

if(command.startsWith("pickup")=i think that explains its self

&& playerRights >= 1) { =the rights of the player have to be 1 to do this command



now making ur own commands will be hard if your new but soon youl know how


•Rights:
0=normal
1=mod
2=admin
3=owner/co owner
4=hidden


The most easiest command to make is a command that gives an item

Code:
Code:


}
if (command.startsWith("food") && playerRights >= 0) {
addItem(392, 1000);
addItem(386, 1000);

}

Explination:


•We explained the first line in the begining now we are going to learn wt it does

addItem=add an iteam when somone uses the command

392=id of the iteam

1000=amount of the iteam

this command is saying when somone types ::food he will get 1000 mantas / 1000 sharks



~~Chapter 4~~ (tips)


•1.NEVER syipk somones server it makes your server look despret and dumb..

2.Try getting your own webclient at rs-ps

Only the registered members can see the link. (plz tell me if i have to remove this link)


3.Try not adding to many custom items to prevent lagg

4.always keep your server on autorestart evrey 30mins

5.Do not do alot of d partys to get peopel cause tht will ruin your economy

6.do not have a party hat shop keep stuf rare

7.try making your xp per hit not to fast not to slow

8.REMOVE PURE if u have it or make it mod+

9.Try to get votes on runelocus or buy a banner from rs-ps

10.Update weekly and try to be diffrent from other servers so ppl stay

Thanks for reading my first post

Support
July 19th, 2010, 07:02
Hello, ajax211
This is a very nice, yet simple guide to explain the basics.

Thanks for the post,
Support

ajax211
July 19th, 2010, 08:46
Hello, ajax211
This is a very nice, yet simple guide to explain the basics.

Thanks for the post,
Support

Thank you :)

Owner Pwnage
July 19th, 2010, 10:04
Thanks for the webclient.

Niator
July 19th, 2010, 10:34
Nice guide! Helped me a bit and will help other beginners!

ajax211
July 19th, 2010, 13:23
Thank you all for the awsome comments guys :)

fail brid`
July 19th, 2010, 13:40
Thanks, good for the "noobs"

Faab234
July 19th, 2010, 13:59
Don't forget to use Tab's instead of Spaces for Autospawn.cfg.

ajax211
July 21st, 2010, 12:27
Thanks, good for the "noobs"


:) thank you

Q Epoch ++
July 21st, 2010, 12:44
Y encourage delta?

-V.
July 21st, 2010, 12:48
Y encourage delta?

You gonna code another source? No? Then shut the fuck up.

Q Epoch ++
July 21st, 2010, 12:54
Shard. It's still winterlove so the code is very similar but muchmore organized. It's also much more stable. I only say why encourage delta because I coded delta for a while and when I finally switched I learned a shit ton, became much better with conventions, and learned more about how servers work

James
July 21st, 2010, 13:05
Good guide, very helpful for "noobs"

mojo
July 21st, 2010, 13:56
You gonna code another source? No? Then shut the fuck up.


Love that comment. I am going to use next time somebody moans to me about delta

Q Epoch ++
July 21st, 2010, 16:00
You gonna code another source? No? Then shut the fuck up.

alright, i decided to use delta for my project. ur so convincing!

ajax211
July 22nd, 2010, 02:19
Lol well delta is the best for noobs (not callign anyoen a noob) i use delta :P what do u want me to do a guide for noobs PI source? lol :P

Q Epoch ++
July 22nd, 2010, 02:21
noooooo PI needs to die in a hole

h1 sk1ller
July 24th, 2010, 02:20
Delta Is Good Without All That Crap In It Lol :)

123happy
July 24th, 2010, 17:07
Wow Ajax211, I can see this took you sometime to create, thank you for creating it... Many people could learn from this. Keep up the good work and Well done :p.

ajax211
July 25th, 2010, 19:49
Thankk youu! :)

hotdog
April 8th, 2011, 03:19
Exception in thread "main" java.lang.NumberFormatException: For input string: "1
265 995 20000 85"
at java.lang.NumberFormatException.forInputString(Num berFormatException.
java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:499)
at NPCHandler.loadNPCDrops(NPCHandler.java:2053)
at NPCHandler.<init>(NPCHandler.java:552)
at server.main(server.java:111)

Whats wrong with that?