Sceptylos
August 19th, 2010, 01:43
Things to know.
What are you making? A H.A.M camp for your 317 Server just like RuneScape.
Difficulty 1/10 - This is easy all you do is Copy/Paste
What to do? Copy and Paste, Search, Fixing Errors [If Needed]
What files are being modified? Client.java, Autospawn.cfg & Item.java
Base used Delta
Credits 100% Me
To start off, Let's teleport you to H.A.M Camp by clicking on the Trapdoor in Lumbridge.
Open Client.java and search for something that should look like this
if(objectID == ####){
toX = ####;
toY = ####;
heightLevel = #;
Under it add
if(objectID == 5492){
toX = 3183;
toY = 9631;
heightLevel = 0;
setAnimation(733);
}
That Teleport's you inside the Camp. Now what's H.A.M Camp without Members? Add this to your Autospawn.cfg
//H.A.M Members
spawn = 1714 3174 9630 0 2479 5169 2475 5165 1
spawn = 1714 3169 9634 0 2479 5169 2475 5165 1
spawn = 1714 3165 9631 0 2479 5169 2475 5165 1
spawn = 1714 3159 9630 0 2479 5169 2475 5165 1
spawn = 1714 3168 9626 0 2479 5169 2475 5165 1
spawn = 1714 3162 9625 0 2479 5169 2475 5165 1
spawn = 1714 3170 9631 0 2479 5169 2475 5165 1
spawn = 1714 3174 9633 0 2479 5169 2475 5165 1
spawn = 1714 3161 9634 0 2479 5169 2475 5165 1
spawn = 1714 3165 9634 0 2479 5169 2475 5165 1
spawn = 1715 3172 9637 0 2479 5169 2475 5165 1
spawn = 1715 3163 9637 0 2479 5169 2475 5165 1
spawn = 1715 3161 9632 0 2479 5169 2475 5165 1
spawn = 1715 3172 9623 0 2479 5169 2475 5165 1
Now that all the Members are there, How about making them thievable? Open up Items.java and search for
public static int Barrows[] = {4734,4710,4724,4726,4728,4730,4718,4718,4732,4736 ,4738,4716,4720,4722,4753,4747,4755,4757,4759,4708 ,4712,4714,4745,4749,4751,7462,7462,7462,7462,7462 ,7462,7462,7462,7462,592,592,592,592,592,592,592,5 92,592,592,592,592,592,592,592,592,592,592,592,592 ,592,592};
public static int randomBarrows()
{
return Barrows[(int)(Math.random()*Barrows.length)];
}
Under it put
public static int HAM[] = {4298,4300,4302,4304,4308,4310,314,52,1203};
public static int randomHAM()
{
return HAM[(int)(Math.random()*HAM.length)];
}
The numbers I put in Bold are the items they give, Edit it if you want.
Now still in Client.java search for
if(NPCID == 66){
robPerson("gnome", 995, 1200, 56, 80);
}
Under it put
if(NPCID == 1714){
robPerson("Male H.A.M. Member", Item.randomHAM(), 1, 70, 20);
}
if(NPCID == 1715){
robPerson("Female H.A.M. Member", Item.randomHAM(), 1, 50, 10);
}
That's pretty much my H.A.M Camp that I fully added my self on my 317. Now you can play around with the teleport Emote that I placed at the begining or play around with anything else, This is just to help you add it :)
~Sceptylos
What are you making? A H.A.M camp for your 317 Server just like RuneScape.
Difficulty 1/10 - This is easy all you do is Copy/Paste
What to do? Copy and Paste, Search, Fixing Errors [If Needed]
What files are being modified? Client.java, Autospawn.cfg & Item.java
Base used Delta
Credits 100% Me
To start off, Let's teleport you to H.A.M Camp by clicking on the Trapdoor in Lumbridge.
Open Client.java and search for something that should look like this
if(objectID == ####){
toX = ####;
toY = ####;
heightLevel = #;
Under it add
if(objectID == 5492){
toX = 3183;
toY = 9631;
heightLevel = 0;
setAnimation(733);
}
That Teleport's you inside the Camp. Now what's H.A.M Camp without Members? Add this to your Autospawn.cfg
//H.A.M Members
spawn = 1714 3174 9630 0 2479 5169 2475 5165 1
spawn = 1714 3169 9634 0 2479 5169 2475 5165 1
spawn = 1714 3165 9631 0 2479 5169 2475 5165 1
spawn = 1714 3159 9630 0 2479 5169 2475 5165 1
spawn = 1714 3168 9626 0 2479 5169 2475 5165 1
spawn = 1714 3162 9625 0 2479 5169 2475 5165 1
spawn = 1714 3170 9631 0 2479 5169 2475 5165 1
spawn = 1714 3174 9633 0 2479 5169 2475 5165 1
spawn = 1714 3161 9634 0 2479 5169 2475 5165 1
spawn = 1714 3165 9634 0 2479 5169 2475 5165 1
spawn = 1715 3172 9637 0 2479 5169 2475 5165 1
spawn = 1715 3163 9637 0 2479 5169 2475 5165 1
spawn = 1715 3161 9632 0 2479 5169 2475 5165 1
spawn = 1715 3172 9623 0 2479 5169 2475 5165 1
Now that all the Members are there, How about making them thievable? Open up Items.java and search for
public static int Barrows[] = {4734,4710,4724,4726,4728,4730,4718,4718,4732,4736 ,4738,4716,4720,4722,4753,4747,4755,4757,4759,4708 ,4712,4714,4745,4749,4751,7462,7462,7462,7462,7462 ,7462,7462,7462,7462,592,592,592,592,592,592,592,5 92,592,592,592,592,592,592,592,592,592,592,592,592 ,592,592};
public static int randomBarrows()
{
return Barrows[(int)(Math.random()*Barrows.length)];
}
Under it put
public static int HAM[] = {4298,4300,4302,4304,4308,4310,314,52,1203};
public static int randomHAM()
{
return HAM[(int)(Math.random()*HAM.length)];
}
The numbers I put in Bold are the items they give, Edit it if you want.
Now still in Client.java search for
if(NPCID == 66){
robPerson("gnome", 995, 1200, 56, 80);
}
Under it put
if(NPCID == 1714){
robPerson("Male H.A.M. Member", Item.randomHAM(), 1, 70, 20);
}
if(NPCID == 1715){
robPerson("Female H.A.M. Member", Item.randomHAM(), 1, 50, 10);
}
That's pretty much my H.A.M Camp that I fully added my self on my 317. Now you can play around with the teleport Emote that I placed at the begining or play around with anything else, This is just to help you add it :)
~Sceptylos