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;
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;