MMOMinion

Full Version: Gathering options (LUA scripting)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
tried adding the spell action 43 for kings yield II for my mining, right before the bot starts gathering, at line 178 in ffxiv_task_gather.lua, though problem is bot stops running, and wont do the action either when it starts mining, so it just stands there without actually mining. Any ideas what I can do?

(Might be im even getting the code wrong :P

//line 178
local myspell = ActionList("actionid=241")
myspell:Cast(Player)


I also tried changing the area there by adding:

local list = Player:GetGatherableSlotList() //already there
local mytarget = Player:GetTarget()
local myspell = ActionList("actionid=241")
if (list ~= nil) then //already there
myspell:Cast(mytarget.id)


But sadly, that didnt work either.


edit:

says in console;
attempt to call method 'Cast' (a nil value), when i write directly into console.

edit2:
no worries, got it working with ActionList:Cast(241,0), sorry 'boat that.