Ok.... this is a simple way to add wcing and fishing to your server. With these you dont need anything to fish, just click on the NPC and it gives u a fishy =), same with wcing but u get a log(of some up to yews, the trees ARE NOT the real trees)
First open up autospawn.cfg and add these into it and the bottom or where ever:
Code:
//*Fishing Spots*//
spawn = 236 2665 4713 0 0 0 0 0 1 Fishing Spot1
spawn = 235 2669 4711 0 0 0 0 0 1 Fishing Spot2
spawn = 234 4668 4712 0 0 0 0 0 1 Fishing Spot3
spawn = 233 2663 4713 0 0 0 0 0 1 Fishing Spot4
//*Woodcuting located at Nature Temple*//
spawn = 1721 2406 4846 0 0 0 0 0 1 Normal tree 1
spawn = 1721 2406 4847 0 0 0 0 0 1 Normal tree 2
spawn = 152 2401 4843 0 0 0 0 0 1 Oak tree 1
spawn = 152 2403 4842 0 0 0 0 0 1 Oak tree 2
spawn = 1226 2397 4841 0 0 0 0 0 1 Willow tree 1
spawn = 1226 2395 4840 0 0 0 0 0 1 Willow tree 2
spawn = 1719 2391 4844 0 0 0 0 0 1 Yew tree 1
spawn = 1719 2392 4846 0 0 0 0 0 1 Yew tree 2
change the x and y coords to where you want them to be.
now open client.java and add this in with your commands:
Code:
if (command.equalsIgnoreCase("wcing"))
{
teleportToX = 2399;
teleportToY = 4849;
sendMessage("Use ::home to leave this area.");
}
thats only if you want the wcing to be in the nature temple!!(f you change wcing coords of spawns change this)
Now in client.java look for:
Code:
else if (NPCID == 2301) { // tele to monkey area guy
or somthing like that
Add this under it:
Code:
//*Start of Wcing*//
if(NPCID == 1721 && playerLevel[8] >= 1)
if(actionTimer == 0)
{
startAnimation(875);
addItem(1511, 1);
addSkillXP(15*playerLevel[8], 8);
sendMessage("You cut some logs!");
actionTimer = 5;
}
if(NPCID == 1721 && playerLevel[8] < 1)
{
sendMessage("You need a Woodcuting level of 1 to cut these!.");
}
if(NPCID == 152 && playerLevel[8] >= 15)
if(actionTimer == 0)
{
startAnimation(875);
addItem(1521, 1);
addSkillXP(25*playerLevel[8], 8);
sendMessage("You cut some logs!");
actionTimer = 5;
}
if(NPCID == 152 && playerLevel[8] < 14)
{
sendMessage("You need a Woodcuting level of 15 to cut these!.");
}
if(NPCID == 1226 && playerLevel[8] >= 30)
if(actionTimer == 0)
{
startAnimation(875);
addItem(1519, 1);
addSkillXP(50*playerLevel[8], 8);
sendMessage("You cut some logs!");
actionTimer = 5;
}
if(NPCID == 1226 && playerLevel[8] < 29)
{
sendMessage("You need a Woodcuting level of 30 to cut these!.");
}
if(NPCID == 1719 && playerLevel[8] >= 60)
if(actionTimer == 0)
{
startAnimation(875);
addItem(1515, 1);
addSkillXP(150*playerLevel[8], 8);
sendMessage("You cut some logs!");
actionTimer = 5;
}
if(NPCID == 1719 && playerLevel[8] < 59)
{
sendMessage("You need a Woodcuting level of 60 to cut these!.");
}
//*End of Wcing*//
//*Start of Fishing*//
if(NPCID == 234 && playerLevel[10] >= 40)
if(actionTimer == 0)
{
startAnimation(619);
addItem(377, 1);
addSkillXP(30*playerLevel[10], 10);
sendMessage("You fish a lobster");
actionTimer = 5;
}
if(NPCID == 234 && playerLevel[10] < 40)
{
sendMessage("You need a fishing level of 40 to fish lobsters.");
}
if(NPCID == 235 && playerLevel[10] >= 1)
if(actionTimer == 0)
{
startAnimation(622);
addItem(317, 1);
addSkillXP(20*playerLevel[10], 10);
sendMessage("You fish a shrimp");
actionTimer = 5;
}
if(NPCID == 235 && playerLevel[10] < 1)
{
sendMessage("You need a fishing level of 1 to fish shrimp.");
}
if(NPCID == 236 && playerLevel[10] >= 75)
if(actionTimer == 0)
{
startAnimation(618);
addItem(383, 1);
addSkillXP(50*playerLevel[10], 10);
sendMessage("You fish a shark");
actionTimer = 5;
}
if(NPCID == 236 && playerLevel[10] < 75)
{
sendMessage("You need a fishing level of 75 to fish shark.");
}
if(NPCID == 233 && playerLevel[10] >= 99)
if(actionTimer == 0)
{
startAnimation(618);
addItem(389, 1);
addSkillXP(75*playerLevel[10], 10);
sendMessage("You fish a manta ray");
actionTimer = 5;
}
if(NPCID == 233 && playerLevel[10] < 99)
{
sendMessage("You need a fishing level of 99 to fish manta ray.");
}
//*End of Fishing*//
You can now fish by clicking on the npc fishnig spots and wc by clicking on the trees)the trees kinda look funny lol)
Hope this helped
Credits: me =) my first real codeing
Rep+ apreicated