Hardness: 2/10
Assumed knowledge: c + p
Server Base: P16 (should work on all)
Credits: 75% to santa stick for supplying the code 25% me for makeing it better adn adding timers
ok as i said this is just a fishing base not total fishing but to start go into your client.java and search for
Code:
boolean PutNPCCoords = false;
underneath it you should see stuff like
Code:
if (NPCID == 309) { /*Lure From Lure & Bait - Any Sea*/
if (IsItemInBag(309) == true && IsItemInBag(314) == true) {
FishingGo = true;
fishing[8] = 4;
fishing[1] = Item.fishing_fly_lvl[0];
fishing[5] = 314;
fishing[6] = 309;
fishing[7] = 0x26E;
} else {
sendMessage("You need a "+GetItemName(309)+" and "+GetItemName(314)+" to fish here.");
}
} else if (NPCID == 312) { /*Cage From Cage & Harpoon - Any Sea*/
if (IsItemInBag(301) == true) {
FishingGo = true;
fishing[1] = 40;
fishing[2] = 90;
fishing[4] = 377;
fishing[6] = 301;
fishing[7] = 0x26D;
} else {
sendMessage("You need a "+GetItemName(301)+" to fish here.");
}
} else if (NPCID == 313) { /*Net From Net & Harpoon - Any Sea*/
if (IsItemInBag(307) == true && IsItemInBag(313) == true) {
FishingGo = true;
fishing[8] = 5;
fishing[1] = Item.fishing_big_net_lvl[0];
fishing[5] = 313;
fishing[6] = 307;
fishing[7] = 0x26E;
} else {
sendMessage("You need a "+GetItemName(307)+" and "+GetItemName(313)+" to fish here.");
}
} else if (NPCID == 316) { /*Net From Net & Bait - Any Sea*/
if (IsItemInBag(303) == true) {
FishingGo = true;
fishing[8] = 1;
fishing[1] = Item.fishing_net_lvl[0];
fishing[6] = 303;
fishing[7] = 0x26D;
//playerMD = NPCSlot;
} else {
sendMessage("You need a "+GetItemName(303)+" to fish here.");
}
} else if (NPCID == 319) { /*Net From Net & Bait - Lumby Swamp*/
if (IsItemInBag(303) == true) {
FishingGo = true;
fishing[1] = 33;
fishing[2] = 75;
fishing[4] = 5004;
fishing[6] = 303;
fishing[7] = 0x26D;
} else {
sendMessage("You need a "+GetItemName(303)+" to fish here.");
}
} else
delete ALL of that
then add this
Code:
if (NPCID == 235 && playerLevel[10] >= 0) { //shrimp fishing
if (IsItemInBag(303) == true && actionTimer == 0) {
startAnimation(621);
addItem(317, 1);
addSkillXP(100, 10);
actionTimer = 2;
sendMessage("You catch a shrimp");
} else {
sendMessage("you need a net to catch shrimps");
}
}
and thats the base of fishing you can add more if youd like to make full fishing and alter things, were it says (NPCID == 235 thats the id of the fishing spot. if (IsItemInBag(303) means that you need to have a net in your inventory to fish w/e. true && actionTimer == 0) { is so people dont mass fish.
to add the fishing spots jsut noclip over the water and go into your autospawn.cfg and add the fishing spot id that u used for that fish, so ya its pretty simple but takes a bit of brain power.
like i said i only get 25% credits for adding timers and required items ect. but 75% goes to santa stick