FishingAce

Simple right click casting.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Qrt Qrt Wed, 06 May 2009 17:57:02

    Cambri4's modification to r81 seemed to work. However when I switched the 2 weapons on my rogue the addon triggered and thought my char was in 'fishing mode', turning off music etc. Equipping fishing pole and un-equipping didn't help.

  • Avatar of Cambri4 Cambri4 Fri, 24 Apr 2009 12:50:42

    I simply love FishingAce!
    But since my recently acquired Jeweled Fishing Pole didn't work with FishingAce r81 either, I started to investigate..
    The new fishing poles don't seem work with FishingAce because it checks the icon name of the equipped mainhand item. Blizzard started using new icons for fishing poles, so it doesn't recognize the new fishing poles introduced in 3.1.
    In order to solve this problem, I took a different approach to the fishing pole recognition.

    First of all, I added a new table including the ItemIDs of every fishing pole in the game.
    You could add this before the FISHINGLURE table

    local FISHINGPOLES = {45992,45991,45858,44050,25978,19970,19022,12225,6367,6366,6365,6256}

    The main changes are in the IsFishingPole() function.
    Just swap this with the old function.

    local function IsFishingPole()
     local slot = GetInventorySlotInfo("MainHandSlot")
     local link = GetInventoryItemLink("player", slot)
     local _, id, _ = SplitLink(link)
     for i,val in ipairs(FISHINGPOLES) do
      if (string.find(id,val)~=(nil)) then
       return true
      end
     end
     return false
    end

    Instead of comparing the Icons, it compares the ItemIDs.
    This way FishingAce can easily be edited for any new fishing poles Blizzard might implement, since you would only have to add the item ID to the FISHINGPOLES table.
    The amount of lines of code is actually the same. There might be a more elegant solution, but it suited my needs.
    I hope this helps all those lucky enough to acquire one of those fancy new fishing poles. :)

    Cambria

  • Avatar of Gigi Gigi Thu, 23 Apr 2009 22:35:16

    The right click on water to cast seems to be buggy. It won't work with the Jeweled fishing pole. It still works with the Mastercraft Kalu'ak fishing pole. So if I have the Jeweled one on and right click to cast nothing happens. If I switch to the Kalu'ak pole it works. Same thing happens if I go from the Kalu'ak to the Jeweled. No errors pop up or anything. It just doesn't work with the new pole.

    Just figured I would post this since you have updated this mod.

  • Avatar of nokia3320 nokia3320 Sat, 29 Nov 2008 00:37:51

    I just search this for a long time , thx

  • Avatar of foreverphk foreverphk Mon, 10 Nov 2008 14:02:31

    I always encounter error on line 313. Here is the fix for all interested: if ( GetCVar("autoLootDefault") == "0" ) then --if ( not GetAutoLootDefault() ) then

  • Avatar of colon319 colon319 Mon, 27 Oct 2008 16:59:24

    can't work TWOW Orz PLZ check ?! Work on 3.0.2  !! THX~~

Facts

Date created
18 Jul 2008
Categories
Last update
05 Aug 2009
Development stage
Release
Language
  • deDE
  • enUS
  • esES
  • frFR
  • koKR
  • zhCN
  • zhTW
License
All Rights Reserved
Curse link
FishingAce
Recent files

Authors

Relationships

Required dependency
Ace2
Embedded library
LibBabble-Zone-3.0
LibCrayon-3.0
LibStub
LibTourist-3.0