Thread Rating:
  • 17 Vote(s) - 2.59 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beta Findings
#63
(10-07-2013, 04:01 AM)an0nym1z3r Wrote:  In case anyone is interested, I found a quick 'workaround' to automatically re-summon your pet in case of death while grinding.
1.) Start up ffxivminion. You MUST do this step first before modifying the ffxiv_helpers.lua file as the MD5 will be different and automatically overwrite the file if you do not.
2.) Open up ffxiv_helpers.lua in the LuaMods/ffxivminion folder with notepad/wordpad or any lua/text editor.
3.) Edit the GetNearestGrindAttackable to the following... Make sure to replace the 170 (which is the ID of Summon II) with the ID of the summon spell you wish to use.

Code:
function GetNearestGrindAttackable()
    local mypet = Player.pet
    if ( TableSize(mypet) > 0) then
        ml_debug("Name: ".. mypet.name)
    else
        ml_debug("Summoning pet")
        -- Cast Summon II for now
        local skill = ActionList:Get(170)
        if (skill ~= nil) then
            if (skill.cd == 0) then
                skill:Cast(0)
            end
        end
    end
    local level = Player.level
    local el = EntityList("nearest,alive,attackable,onmesh,minLevel="..tostring(level-1)..",maxlevel="..tostring(level+1))
    if ( el ) then
        local i,e = next(el)
        if (i~=nil and e~=nil) then
            return e
        end
    end
    ml_debug("GetNearestAttackable() failed with no entity found matching params")
    return nil
end

4.) Reload the code by going to 'Control' -> 'Reload Lua Modules'

Question for the devs. It looks like the intended way to do this would be to update the ffxiv_combat_arcanist.lua file appropriately and then add my own 'menu' item which would stop/start that script instead. Is this the intended approach?

The ffxiv_combat_arcanist task would not be called until you are in combat, so if you want to summon only in combat then you could add a cne to that task that checks to see if your pet is alive and summon if not. Also, be careful with this:

Code:
local skill = ActionList:Get(170)

The ActionList should actually be indexed using both an actionID and an actionType. The Get() call with only one param is basically overloaded to only check for general action types (spells only your class casts) but would not necessarily work for pet spells, general spells (teleport, return, etc), limit breaks, etc. The wiki has more information as well as a general (very slightly outdated but still 95% accurate) explanation of how the framework is designed to function:

https://github.com/MMOMinion/FFXIVMinion/wiki

If you'd like to contribute then please fork the repo and send a pull request with your code whenever you have something you'd like us to review and potentially add. Thanks for the interest and for sharing your code.
Reply
 


Messages In This Thread
Beta Findings - by satbuster - 10-05-2013, 01:00 PM
RE: Beta Findings - by meitsme - 10-05-2013, 01:02 PM
RE: Beta Findings - by charbonmax - 10-05-2013, 02:18 PM
RE: Beta Findings - by satbuster - 10-05-2013, 02:49 PM
RE: Beta Findings - by z0mg - 10-05-2013, 03:06 PM
RE: Beta Findings - by satbuster - 10-05-2013, 03:33 PM
RE: Beta Findings - by TigerRoarz - 10-05-2013, 04:07 PM
RE: Beta Findings - by satbuster - 10-05-2013, 04:48 PM
RE: Beta Findings - by odano1988 - 10-05-2013, 04:59 PM
RE: Beta Findings - by z0mg - 10-05-2013, 05:10 PM
RE: Beta Findings - by odano1988 - 10-05-2013, 05:12 PM
RE: Beta Findings - by z0mg - 10-05-2013, 05:16 PM
RE: Beta Findings - by satbuster - 10-05-2013, 05:17 PM
RE: Beta Findings - by Gabi - 10-05-2013, 05:17 PM
RE: Beta Findings - by satbuster - 10-05-2013, 05:41 PM
RE: Beta Findings - by odano1988 - 10-05-2013, 05:53 PM
RE: Beta Findings - by z0mg - 10-05-2013, 06:28 PM
RE: Beta Findings - by satbuster - 10-05-2013, 06:33 PM
RE: Beta Findings - by z0mg - 10-05-2013, 06:34 PM
RE: Beta Findings - by satbuster - 10-05-2013, 06:36 PM
RE: Beta Findings - by odano1988 - 10-05-2013, 06:58 PM
RE: Beta Findings - by z0mg - 10-05-2013, 07:14 PM
RE: Beta Findings - by changwang - 10-05-2013, 08:13 PM
RE: Beta Findings - by an0nym1z3r - 10-05-2013, 10:08 PM
RE: Beta Findings - by kinosix - 10-05-2013, 11:41 PM
RE: Beta Findings - by an0nym1z3r - 10-06-2013, 03:53 AM
RE: Beta Findings - by squareroot - 10-05-2013, 10:58 PM
RE: Beta Findings - by odano1988 - 10-06-2013, 12:25 AM
RE: Beta Findings - by burpengary - 10-06-2013, 01:10 AM
RE: Beta Findings - by Rhynox - 10-06-2013, 03:54 AM
RE: Beta Findings - by Shisa - 10-06-2013, 04:00 AM
RE: Beta Findings - by an0nym1z3r - 10-06-2013, 04:26 AM
RE: Beta Findings - by Shisa - 10-06-2013, 04:28 AM
RE: Beta Findings - by ferenz - 10-06-2013, 04:46 AM
RE: Beta Findings - by Shisa - 10-07-2013, 12:58 AM
RE: Beta Findings - by OogieBoogie - 10-06-2013, 05:08 AM
RE: Beta Findings - by satbuster - 10-06-2013, 06:28 AM
RE: Beta Findings - by andysx - 10-06-2013, 08:21 AM
RE: Beta Findings - by banned4haxx - 10-06-2013, 08:21 AM
RE: Beta Findings - by satbuster - 10-06-2013, 09:39 AM
RE: Beta Findings - by soulmonger - 10-06-2013, 09:52 AM
RE: Beta Findings - by TigerRoarz - 10-06-2013, 11:51 AM
RE: Beta Findings - by xoured - 10-06-2013, 12:12 PM
RE: Beta Findings - by zSchnitzel - 10-06-2013, 12:40 PM
RE: Beta Findings - by burpengary - 10-06-2013, 12:49 PM
RE: Beta Findings - by xoured - 10-06-2013, 01:25 PM
RE: Beta Findings - by madraven - 10-06-2013, 01:26 PM
RE: Beta Findings - by xoured - 10-06-2013, 01:36 PM
RE: Beta Findings - by Rhynox - 10-06-2013, 03:22 PM
RE: Beta Findings - by GetsugaTenshouX - 10-06-2013, 04:41 PM
RE: Beta Findings - by ForeverVirgin - 10-06-2013, 07:59 PM
RE: Beta Findings - by fifidong - 10-06-2013, 10:30 PM
RE: Beta Findings - by ng4g3d - 10-06-2013, 11:35 PM
RE: Beta Findings - by clbraver - 10-06-2013, 06:21 PM
RE: Beta Findings - by xoured - 10-06-2013, 11:29 PM
RE: Beta Findings - by ferenz - 10-07-2013, 01:12 AM
RE: Beta Findings - by Shisa - 10-07-2013, 01:18 AM
RE: Beta Findings - by Sully13 - 10-07-2013, 01:54 AM
RE: Beta Findings - by kinosix - 10-07-2013, 07:03 AM
RE: Beta Findings - by burpengary - 10-07-2013, 02:05 AM
RE: Beta Findings - by Shisa - 10-07-2013, 02:43 AM
RE: Beta Findings - by an0nym1z3r - 10-07-2013, 04:01 AM
RE: Beta Findings - by ferenz - 10-07-2013, 05:30 AM
RE: Beta Findings - by satbuster - 10-07-2013, 01:38 PM
RE: Beta Findings - by soulmonger - 10-07-2013, 02:34 PM
RE: Beta Findings - by odano1988 - 10-07-2013, 03:29 PM
RE: Beta Findings - by lilj0nyeah - 10-07-2013, 04:20 PM
RE: Beta Findings - by Shisa - 10-07-2013, 04:28 PM
RE: Beta Findings - by GetsugaTenshouX - 10-07-2013, 06:25 PM
RE: Beta Findings - by ferenz - 10-07-2013, 06:54 PM
RE: Beta Findings - by odano1988 - 10-07-2013, 07:32 PM
RE: Beta Findings - by odano1988 - 10-07-2013, 07:59 PM
RE: Beta Findings - by xoured - 10-07-2013, 10:19 PM
RE: Beta Findings - by burpengary - 10-07-2013, 10:34 PM
RE: Beta Findings - by critical - 10-07-2013, 10:51 PM
RE: Beta Findings - by xoured - 10-07-2013, 11:23 PM
RE: Beta Findings - by burpengary - 10-08-2013, 12:23 AM
RE: Beta Findings - by burpengary - 10-08-2013, 01:48 AM
RE: Beta Findings - by ferenz - 10-08-2013, 03:05 AM
RE: Beta Findings - by bot123 - 10-08-2013, 03:18 AM
RE: Beta Findings - by HalbsDiablo - 10-08-2013, 03:44 AM
RE: Beta Findings - by odano1988 - 10-08-2013, 05:02 AM
RE: Beta Findings - by Original-Jedi - 10-30-2013, 07:30 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products