MMOMinion
Possible to add to Teleport? - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: Support - English, Deutsch, 中文 (https://www.mmominion.com/forumdisplay.php?fid=92)
+---- Forum: English Support & Questions (https://www.mmominion.com/forumdisplay.php?fid=93)
+---- Thread: Possible to add to Teleport? (/showthread.php?tid=4533)



Possible to add to Teleport? - Exmortem - 10-26-2013

Wondering if it's possible to add a setting to NOT teleport if players are near, i'd love to have the option selected while gathering but obviously if people are close I wouldn't wanna let it run.

Thanks.


RE: Possible to add to Teleport? - ferenz - 10-27-2013

We won't be doing any more work on the teleport code; we supply it as a tool for addon developers to use but we don't like to encourage teleporting ourselves because its much higher risk for bans than 'regular' botting. I believe some users have already created teleport addon modules, you might try asking about this in the lua modules forum instead.


RE: Possible to add to Teleport? - Shaolin2 - 10-27-2013

what is with the Players near the Teleport Target?
!!!Warning Teleport Hack is risky
no matter how you use it !!!

But here the LUA changes.
Go to your Botfolder/LuaMods/ffxivminion/
open ffxiv_task_gather.lua with a Texteditor
go to Line 82-95 and replace the Code with this

Code:
function e_movetogatherable:execute()
    local pos = EntityList:Get(ml_task_hub.CurrentTask().gatherid).pos
    if (pos ~= nil and pos ~= 0) then
        local Playerliste = EntityList("nearest,type=1,maxdistance=25")
        if ( (TableSize(Playerliste) == 0) and (gGatherTP == "1") ) then
            GameHacks:TeleportToXYZ(pos.x,pos.y,pos.z)
        else
            local newTask = ffxiv_task_movetopos:Create()
            newTask.pos = pos
            newTask.range = 1.5
            newTask.gatherRange = 1.0
            ml_task_hub:CurrentTask():AddSubTask(newTask)
        end
    end
end

maxdistance=25 set here your choise of Distance to the nearest Player.