Note: this is ONLY for people who use wLv3.
I'll probably re-write some things later. Right now here's first NPC options.
Format:
invAmt = playerHasItemAmount
GIS = GetItemSlot
Fishing.java:
Code:
public void first(int NPCID, int ID) {
client c = (client) server.playerHandler.players[ID];
switch(NPCID) {
case 316: // Net
Fishtime = 1;
FishID = 1;
break;
case 312: // Cage
Fishtime = 1;
FishID = 2;
fishing(40, 50, 377, 301, 619, ID);
break;
case 333: // Cage
Fishtime = 1;
FishID = 3;
fishing(40, 50, 377, 301, 619, ID);
break;
case 313: // Net
Fishtime = 1;
FishID = 4;
fishing(60, 70, 7944, 305, 620, ID);
break;
}
}
Also, open item.java and delete the randomNetFish static. It's useless.
part 2:
Code:
public void second(int NPCID, int ID) {
client c = (client) server.playerHandler.players[ID];
switch(NPCID) {
case 316: // Bait
Fishtime = 1;
FishID = 8;
fishing(20, 30, 363, 313, 622, ID);
c.deleteItem(313, c.GIS(313), 1);
break;
case 312: // Harpoon
Fishtime = 1;
FishID = 5;
fishing(85, 90, 383, 311, 618, ID);
break;
case 313: // Harpoon
Fishtime = 1;
FishID = 6;
fishing(85, 90, 383, 311, 618, ID);
break;
case 333: // Harpoon
Fishtime = 1;
FishID = 7;
fishing(99, 120, 389, 311, 618, ID);
break;
}
}