Fishing System V62

Results 1 to 7 of 7
  1. #1
    Member Mapleleaf1 is offline
    MemberRank
    Oct 2017 Join Date
    71Posts

    Fishing System V62

    Fixed.
    Last edited by Mapleleaf1; 31-07-18 at 06:19 PM.


  2. #2
    Valued Member Fenomenoide is offline
    MemberRank
    May 2016 Join Date
    VenezuelaLocation
    131Posts

    Re: Fishing System V62

    When you compile it, no errors in the netbeans console?

  3. #3
    Member Mapleleaf1 is offline
    MemberRank
    Oct 2017 Join Date
    71Posts

    Re: Fishing System V62

    Quote Originally Posted by Fenomenoide View Post
    When you compile it, no errors in the netbeans console?
    no erors

  4. #4
    Proficient Member Pipotron is offline
    MemberRank
    Sep 2017 Join Date
    PastalandLocation
    156Posts

    Re: Fishing System V62

    First of all, note that the guide you're following explicitly says that the add-on is for v75+ servers, while yours is a v62. Make sure that all those packets, constants and functions are also present in your server (for example, do you have the static function catchMonster in MaplePacketCreator.java? Or, how did your UseChairHandler.java look, before? Are you sure this is compatible?).

    Now for the actual code; you need to check those functions some more. A few points:
    - You have a function called getRandomItem(), but it's never used, since there's no calls to it.
    - Math.Random()*3 can return 0, 1 or 2. You should handle this last case aswell.
    - You can remove that empty switch with chr.getWorld(), as it's a call to a function that ends up doing nothing, so a (extremely minor, but still) waste of calculations.
    - You should remove those two overrides in UseChairHandler and CancelChairHandler, as they'd only throw an error.


    This just as a basic read from the code. There may be something more that I didn't notice yet. Besides, there's some code optimization to be done there (that iteration on the whole server every 30 seconds feels potentially painful), but let's focus on the bugs, first, shall we.

  5. #5
    Member Mapleleaf1 is offline
    MemberRank
    Oct 2017 Join Date
    71Posts

    Re: Fishing System V62

    Quote Originally Posted by Pipotron View Post
    First of all, note that the guide you're following explicitly says that the add-on is for v75+ servers, while yours is a v62. Make sure that all those packets, constants and functions are also present in your server (for example, do you have the static function catchMonster in MaplePacketCreator.java? Or, how did your UseChairHandler.java look, before? Are you sure this is compatible?).

    Now for the actual code; you need to check those functions some more. A few points:
    - You have a function called getRandomItem(), but it's never used, since there's no calls to it.
    - Math.Random()*3 can return 0, 1 or 2. You should handle this last case aswell.
    - You can remove that empty switch with chr.getWorld(), as it's a call to a function that ends up doing nothing, so a (extremely minor, but still) waste of calculations.
    - You should remove those two overrides in UseChairHandler and CancelChairHandler, as they'd only throw an error.


    This just as a basic read from the code. There may be something more that I didn't notice yet. Besides, there's some code optimization to be done there (that iteration on the whole server every 30 seconds feels potentially painful), but let's focus on the bugs, first, shall we.
    Thank you !
    So how i add it to v62 ?
    I use leaderms v2 ,
    What i need to add for fishing system work?

  6. #6
    Account Upgraded | Title Enabled! super861 is offline
    MemberRank
    Oct 2009 Join Date
    229Posts

    Re: Fishing System V62

    i've worked on a fishing system a while back and got it to a point where it worked the way i wanted. i made a thread about it when i was working on it to get some help. maybe you could read through it as it might give you some insight on this. remember not to bump the threads as they are kind of old now ;)

    http://forum.ragezone.com/f566/maple...ystem-1134484/
    http://forum.ragezone.com/f566/issue...nager-1134554/

  7. #7
    Member Mapleleaf1 is offline
    MemberRank
    Oct 2017 Join Date
    71Posts

    Re: Fishing System V62

    Quote Originally Posted by super861 View Post
    i've worked on a fishing system a while back and got it to a point where it worked the way i wanted. i made a thread about it when i was working on it to get some help. maybe you could read through it as it might give you some insight on this. remember not to bump the threads as they are kind of old now ;)

    http://forum.ragezone.com/f566/maple...ystem-1134484/
    http://forum.ragezone.com/f566/issue...nager-1134554/
    Thank you !
    and its can work for v62 to?



Advertisement