MMOMinion
Please add gathering points to Player Entity - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90)
+---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104)
+---- Thread: Please add gathering points to Player Entity (/showthread.php?tid=4162)



Please add gathering points to Player Entity - trixisowned - 10-10-2013

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.


RE: Please add gathering points to Player Entity - Powder - 10-10-2013

Thank you for pointing this out, it will be added in the next update.


RE: Please add gathering points to Player Entity - Powder - 10-10-2013

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


RE: Please add gathering points to Player Entity - trixisowned - 10-11-2013

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..


RE: Please add gathering points to Player Entity - Powder - 10-11-2013

Mounts are not in the action list at the moment. It will be added soon.