Thread: Fishing Cage bug [PI]

Results 1 to 2 of 2
  1. #1 Fishing Cage bug [PI] 
    Registered Member
    Join Date
    Nov 2012
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    So I am having this problem. Where the players can fish, but not cage fish.
    I already checked, if there's anyone else with this issue, but apparently not.
    Can somebody maybe help me with this?

    Here's my fishing.java:
    Spoiler for (Title):
    package server.model.players.skills;

    import server.model.players.Client;
    import server.util.Misc;

    public class Fishing {

    private int fishType;
    private int exp;
    private int req;
    private int equipmentType;
    private Client c;

    public Fishing(Client c) {
    this.c = c;
    }

    public void resetFishing() {
    this.exp = 0;
    this.fishType = -1;
    this.equipmentType = -1;
    this.req = 0;
    c.fishtimer = -1;
    c.fishing = false;
    }

    public void FishingProcess() {
    // Fishing
    if (c.fishtimer > 0) {
    c.fishtimer--;
    }

    if (c.fishing && c.getItems().freeSlots() <= 0) {
    c.fishing = false;
    c.sendMessage("Your inventory is full");
    c.frame1();
    }
    if (c.fishing && c.fishtimer <= 0 && c.getItems().freeSlots() > 0) {
    if (c.getItems().playerHasItem(c.fishitem)) {
    if (c.playerLevel[10] >= c.fishreqt) {
    if (c.fishitem == 307 && !c.getItems().playerHasItem(313)) {
    c.sendMessage("You need bait to fish here!");
    c.fishing = false;
    } else if (c.fishitem == 309
    && !c.getItems().playerHasItem(314)) {
    c.sendMessage("You need feathers to fish here!");
    c.fishing = false;
    } else {
    if (c.fishreq2 != 0 && c.playerLevel[10] >= c.fishreq2
    && Misc.random(1) == 1) {
    c.getItems().addItem(c.fishies2, 1);
    c.getPA().addSkillXP(c.fishXP, 10);
    } else {
    c.getItems().addItem(c.fishies, 1);
    c.getPA().addSkillXP(c.fishXP, 10);
    }
    if (c.fishitem == 307)
    c.getPA().addSkillXP(c.fishXP, 10);
    c.fishtimer = Misc.random(fishtime(c.fishies,
    c.fishreqt));
    // c.sendMessage("You catch a " +
    // c.getItems().getItemName(c.fishies).toLowerCase()) ;
    }
    } else {
    c.fishing = false;
    c.sendMessage("You need a fishing level of " + c.fishreqt
    + " to fish for "
    + c.getItems().getItemName(c.fishies));
    }
    } else {
    c.fishing = false;
    c.sendMessage("You need a "
    + c.getItems().getItemName(c.fishitem) + " to fish "
    + c.getItems().getItemName(c.fishies));
    }
    }

    if (c.fishing) {
    c.startAnimation(c.fishemote);
    // frame174(378, 3);
    }
    if (c.attemptingfish)
    if (c.clickObjectType > 0
    && c.goodDistance(c.objectX + c.objectXOffset, c.objectY
    + c.objectYOffset, c.getX(), c.getY(),
    c.objectDistance)) {
    c.attemptingfish = false;
    c.fishing = true;
    }
    }

    public int fishtime(int fish, int req) {
    int time = 10;
    if (fish == 317) {// Shrimp 1
    time = 20;
    }
    if (fish == 327) {// Sardine 5
    time = 25;
    }
    if (fish == 355) {// Trout 20
    time = 30;
    }
    if (fish == 341) {// Cods 23
    time = 35;
    }
    if (fish == 349) {// Pike 25
    time = 38;
    }
    if (fish == 359) {// Tuna 35
    time = 40;
    }
    if (fish == 377) {// Lobsters 40
    time = 45;
    }
    if (fish == 383) {// Sharks 76
    time = 50;

    }
    int LevelXP = c.playerLevel[10] - req;
    if (LevelXP > req / 3)
    LevelXP = req / 3;
    time -= LevelXP;
    return time;
    }
    }


    Thank you.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2010
    Age
    29
    Posts
    1,886
    Thanks given
    446
    Thanks received
    523
    Rep Power
    0
    Ctrl + A then hit delete.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 10-29-2012, 05:24 PM
  2. Cage Interface Id/configs
    By Arithium in forum Requests
    Replies: 3
    Last Post: 10-14-2012, 06:09 AM
  3. Cage fighter gets his leg broken
    By Dunhel in forum Videos
    Replies: 12
    Last Post: 04-22-2012, 02:24 AM
  4. Nicolas Cage wants cake...
    By Zoft in forum Videos
    Replies: 2
    Last Post: 01-19-2011, 03:46 AM
  5. Cage Match NOW!
    By Core in forum Console
    Replies: 1
    Last Post: 01-13-2009, 10:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •