Fishing Rod doesn't show up? just emote (delta)
[Only registered and activated users can see links. Click Here To Register...]
As you can see the emote doesn't show up, does anyone have a fix for this? here are my fish codes that i created:
Quote:
public void fish(int id) {
if (!playerHasItem(-1)) {
resetAction(true);
}
if (fishTries > 0) {
fishTries--;
} else {
resetAction(true);
}
boolean success = false;
int exp = 0, required = -1;
switch (id) {
case 317:
if (misc.random(playerLevel[playerFishing] + 5) >= 5) {
success = true;
exp = 1500;
}
break;
case 335:
if (misc.random(playerLevel[playerFishing] + 5) >= 5) {
success = true;
exp = 2500;
}
break;
case 377:
if (misc.random(playerLevel[playerFishing] + 5) >= 25) {
success = true;
exp = 4000;
}
break;
case 383:
if (misc.random(playerLevel[playerFishing] + 5) >= 25) {
success = true;
exp = 5000;
}
break;
case 389:
if (misc.random(playerLevel[playerFishing] + 5) >= 25) {
success = true;
exp = 10000;
}
break;
}
if (success) {
if (playerHasItem(-1)) {
sM("You catch some " + getItemName(id));
addItem(id, 1);
addSkillXP(exp, playerFishing);
} else {
sM("Not enough space in your inventory.");
resetAction(true);
}
} else {
//sM("Failed attempt!");
}
}
Quote:
case 17:
// second click npc.
if (NPCID == 316) {
/* Net From Net & Bait - Any Sea */
if ((IsItemInBag(307) == true && IsItemInBag(313) == true)) {
startFishing2(316);
sM("You attempt to catch some trout.");
faceNPC(NPCSlot);
} else {
resetAction();
sM("You need a " + getItemName(307)
+ " and " + getItemName(313)
+ " to fish here.");
}
}
Quote:
public void startFishing2(int object) {
int req = -1, reqFishing = 1;
switch (object) {
case 316:
pEmote = 622;
fishId = 335;
reqFishing = 20;
req = 307;
break;
}
fishTries = misc.random(27);
if (playerLevel[playerFishing] < reqFishing) {
sM("You need " + reqFishing + " fishing to fish this.");
return;
}
if (!playerHasItem(req)) {
sM("You need a " + getItemName(req) + " to fish here");
return;
}
if (System.currentTimeMillttis() - lastAction >= 5000)
fishing = true;
}
Help? this also doesn't work for catching shrimps...