MMOMinion

Full Version: Please add gathering points to Player Entity
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This data doesn't seem accessible at the moment, currently you have to do something like
Code:
for i, item in pairs(list) do
            if item.chance > 50 then
                if Player.job == FFXIV.JOBS.MINER then                
                    local ca = ActionList:Get(295)
                    if (ca.isready and not ca.iscasting) then
                        ActionList:Cast(295,0)
                    end
                    ca = ActionList:Get(230)
                    if (ca.isready and not ca.iscasting) then
                        ActionList:Cast(230,0)
                    end
                end
                Player:Gather(item.index)
                ml_task_hub:CurrentTask().gatherTimer = os.time()
                return
            end
        end
modified in ffxiv_task_gather.lua

and even then it will spam the skills still as you cannot check gp.
Thanks.
Thank you for pointing this out, it will be added in the next update.
also you should just use ca:Cast() when you use ActionCast you should be passing the correct type, 0 is not a type. the
Enum is :
ACTIONS = 1,
ITEM = 2,
GENERAL = 5,
MINIONS = 8,
CRAFT = 9,
MAINCOMMANDS = 10,
PET = 11,
MOUNT = 13,

when you use actionObj:Cast() it is for self cast spells and actionObj:Cast(targetId) - well you get the picture
Is there a way to see if something is able to be cast before casting it? it just seems to spam "cannot execute at this time", atleast for skill 295... I tried, ActionList:CanCast(295) for example.

Suggestion, add sprint option to the function ffxiv_task_movetopos:Init():
Code:
ca = ActionList:Get(3)
if (ca.isready and not ca.iscasting) then
ca:Cast(3)
end

Also, how does distance work? Something like this doesn't seem to be working when I am trying to mount if a gather node is a certain distance away:
Code:
if gatherable.distance > 10 then
            ca = ActionList:Get(4)
            if (ca.isready and not ca.iscasting) then
                ActionList:Cast(4,0)
            end
end
This also does not work as it does not wait for the mount to finish casting..
Mounts are not in the action list at the moment. It will be added soon.