PDA

View Full Version : Begginers Guide(317)



Dark bow199
June 18th, 2010, 19:06
Table of contents:
Adding objects
Changing starting wear
Adding npcs
Making a simple tele command
Making a command give you items
Player rights

Adding objects

Open client.java and search for:

public void NewObjects
Then you'll see stuff like:

makeGlobalObject(2868, 9883, 2213, 0, 10); // bank
scroll down the list and add this:

makeGlobalObject(Coords x, Coords y, Object id, 0, 10); // Description
Compile and you're done!:)

Changing starter wear
Open Player.java and search for:

Giving the player an unique look
You'll see stuff like

playerEquipment[playerHat]=1055;
All you gotta do is change the 1055 to the id of the item you want;
Compile and you're done!:)

Adding npcs:
Open Npc.cfg, then you'll see stuff like:

spawn = 2821 3232 9320 0 0 0 0 0 1 Zeke
Scroll till you see the last one of these and add this:
spawn = Npc Id Coords X Coords Y 0 0 0 0 0 0 Description
Compile and you're done!:)

Making a simple tele command
Open client.java and search for:

String command
under that add this

if (command.startsWith("Commandname")) {
teleportToX = coords x;
teleportToY = coords y;
}
Compile and you're done!:)

Making command give you stuff
Open client.java and seach for:

String command
under that add this:

if (command.startsWith("command name") && playerRights >= rights to use) {
addItem(Id, amount);
}
To add more items just add this:

addItem(Id, amount);
Compile and you're done!:)
Player rights

0=player
1=moderator
2=administrator
3=owner
4=hidden administrator
10=hidden owner
Thanks for reading.
If there is anything wrong with it post here;

jamie
June 18th, 2010, 19:09
Thanks, Very helpful!!!

Divine
June 18th, 2010, 19:13
^^ Cough cough spamz0r cough ^_-

It's kind of a pain to look at; but tht's not your fault =].... The code boxes are so freakin small o_0.

FinlandIsFtw
June 18th, 2010, 19:18
^^ Cough cough spamz0r cough ^_-

It's kind of a pain to look at; but tht's not your fault =].... The code boxes are so freakin small o_0.

Maybe you should get glasses ^^

Dark bow199
June 18th, 2010, 19:19
Thanks, Very helpful!!!
Thanks for comment =)


^^ Cough cough spamz0r cough ^_-

It's kind of a pain to look at; but tht's not your fault =].... The code boxes are so freakin small o_0.

Lol runelocus is just renewd give it some time


Maybe you should get glasses ^^

Lol thanks for post

Divine
June 18th, 2010, 19:23
Maybe you should get glasses ^^

Lawl nah im talkin' about (this is gonna' sound so wrong :D) the width and hight of the boxes


Lol runelocus is just renewd give it some time

Ik =P


Thanks for comment =)

Double postin' is 4 loser spamz0rz o_0

Break
June 18th, 2010, 19:24
Good job. Keep it up.

The sup
June 18th, 2010, 19:34
Great tutorial, should be really helpful.

Dark bow199
June 18th, 2010, 19:40
Good job. Keep it up.

Thanks


Great tutorial, should be really helpful.
Thanks

Malik
June 18th, 2010, 20:27
Thanks, I can't believe i forgot how to add a teleport command :S

Dark bow199
June 18th, 2010, 20:33
Thanks, I can't believe i forgot how to add a teleport command :S

Lol
Thanks for posting

Dark bow199
June 19th, 2010, 07:23
Too many views too little posts

Viper
July 31st, 2010, 22:05
Thanks,
Helped me to remember some things.

Viper

Fenway`
August 1st, 2010, 00:15
there are way too many of these and they all are just as good :|

Dark bow199
August 10th, 2010, 16:31
Lol this one is one of the first 1ns since runelocus got renuwed

Dark bow199
August 21st, 2011, 17:52
Bump to the top! :D

legionkiller99
August 21st, 2011, 18:06
Bump to the top! :D

Request a name change for the topic to make it specify that it's for delta. People will be confused when working with a PI source.

Dark bow199
August 21st, 2011, 21:31
Request a name change for the topic to make it specify that it's for delta. People will be confused when working with a PI source.

Thanks for the comment
It isnt delta its the code before delta and pi but dunno the name...

legionkiller99
August 21st, 2011, 23:34
Thanks for the comment
It isnt delta its the code before delta and pi but dunno the name...

czar/allstar? It looks a lot like delta. lol.

Dark bow199
August 22nd, 2011, 08:38
czar/allstar? It looks a lot like delta. lol.
Maybe lol

minigreg8
August 22nd, 2011, 13:06
how do i know where the coordinates are? how do i know where to put them?

Dark bow199
August 25th, 2011, 22:58
how do i know where the coordinates are? how do i know where to put them?

Coords i said where to put
And the coords can be found at the emote tab

BananaGuy
August 29th, 2011, 10:28
Can you explain how I make hidden owner rank if that is not included on my source? the source that im using is brokenx v2. thanks.