Thread Rating:
  • 8 Vote(s) - 3.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feast of Famine (WIP)
#8
(10-28-2015, 11:32 AM)sebbs Wrote:  
(10-26-2015, 12:13 AM)snowolf69 Wrote:  NEED HELP WITH:
1) !!! Nepto Dragon !!!
- requires interaction with NPC to board ship at Costa del Sol
- needs teleport or NPC interaction task with weathernow shower or rain
- how would I format an NPC interaction?

Thats a nav thing if u tell us where and who it needs to interact with we can add it to the nav system so its automated to that map.

pic is better than a description

Code:
[137] = { name = "Eastern La Noscea",
            test = function()
                if (GilCount() > 100) then
                    if ((Player.pos.x > 218 and Player.pos.x < 800 and Player.pos.z > 51) and not (gotoPos.x > 218 and gotoPos.z > 51)) then
                        --d("Need to move from Costa area to Wineport.")
                        return true
                    elseif (not (Player.pos.x > 218 and Player.pos.z > 51) and (gotoPos.x > 218 and gotoPos.z > 51)) then
                        --d("Need to move from Wineport to Costa area.")
                        return true
                    elseif (Player.pos.x < 800 and gotoPos.x > 800) then
                        d("Need to board ship.")
                        return true
                    elseif (Player.pos.x > 800 and gotoPos.x < 800) then
                        d("Need to leave ship.")
                        return true
                    end
                end
                return false
            end,
            reaction = function()
                if ((Player.pos.x > 218 and Player.pos.x < 800 and Player.pos.z > 51) and not (gotoPos.x > 218 and gotoPos.z > 51)) then
                    if (CanUseAetheryte(12) and not Player.incombat) then
                        if (Player:IsMoving()) then
                            Player:Stop()
                            c_usenavinteraction.blockOnly = true
                            return true
                        end
                        if (Player.ismounted) then
                            Dismount()
                            c_usenavinteraction.blockOnly = true
                            return true
                        end
                        if (ActionIsReady(7,5) and not ActionList:IsCasting() and not IsPositionLocked()) then
                            if (Player:Teleport(12)) then
                                local newTask = ffxiv_task_teleport.Create()
                                newTask.aetheryte = 12
                                newTask.mapID = 137
                                ml_task_hub:Add(newTask, IMMEDIATE_GOAL, TP_IMMEDIATE)
                            end
                        end
                    else
                        local newTask = ffxiv_nav_interact.Create()
                        newTask.pos = {x = 344.447, y = 32.770, z = 91.694}
                        newTask.uniqueid = 1003588
                        ml_task_hub:CurrentTask():AddSubTask(newTask)
                    end
                elseif (not (Player.pos.x > 218 and Player.pos.z > 51) and (gotoPos.x > 218 and gotoPos.z > 51)) then
                    if (CanUseAetheryte(11) and not Player.incombat) then
                        if (Player:IsMoving()) then
                            Player:Stop()
                            c_usenavinteraction.blockOnly = true
                            return true
                        end
                        if (Player.ismounted) then
                            Dismount()
                            c_usenavinteraction.blockOnly = true
                            return true
                        end
                        if (ActionIsReady(7,5) and not ActionList:IsCasting() and not IsPositionLocked()) then
                            if (Player:Teleport(11)) then
                                local newTask = ffxiv_task_teleport.Create()
                                newTask.aetheryte = 11
                                newTask.mapID = 137
                                ml_task_hub:Add(newTask, IMMEDIATE_GOAL, TP_IMMEDIATE)
                            end
                        end
                    else
                        local newTask = ffxiv_nav_interact.Create()
                        newTask.pos = {x = 21.919, y = 34.0788, z = 223.187}
                        newTask.uniqueid = 1003589
                        ml_task_hub:CurrentTask():AddSubTask(newTask)
                    end
                elseif (Player.pos.x < 800 and gotoPos.x > 800) then
                    local newTask = ffxiv_nav_interact.Create()
                    newTask.pos = {x = 605.45, y = 11.62, z = 392.34}
                    newTask.uniqueid = 1003585
                    newTask.conversationIndex = 2
                    ml_task_hub:CurrentTask():AddSubTask(newTask)
                elseif (Player.pos.x > 800 and gotoPos.x < 800) then
                    local newTask = ffxiv_nav_interact.Create()
                    newTask.pos = {x = 885.85, y = 21.25, z = 135.438}
                    newTask.uniqueid = 1005414
                    ml_task_hub:CurrentTask():AddSubTask(newTask)
                end
            end,
        },

Can see how frepe coded it, NPC position to board ship:
Code:
newTask.pos = {x = 605.45, y = 11.62, z = 392.34}
newTask.uniqueid = 1003585
newTask.conversationIndex = 2

To leave the ship:
Code:
newTask.pos = {x = 885.85, y = 21.25, z = 135.438}
newTask.uniqueid = 1005414
Reply
 


Messages In This Thread
Feast of Famine (WIP) - by snowolf69 - 10-26-2015, 12:13 AM
RE: Legendary Fish Profile (WIP) - by sebbs - 10-26-2015, 05:00 AM
RE: Legendary Fish Profile (WIP) - by snowolf69 - 10-26-2015, 12:32 PM
RE: Legendary Fish Profile (WIP) - by sebbs - 10-26-2015, 12:45 PM
RE: Feast of Famine (WIP) - by snowolf69 - 10-26-2015, 06:55 PM
RE: Feast of Famine (WIP) - by Underwhelp - 10-27-2015, 04:38 PM
RE: Feast of Famine (WIP) - by sebbs - 10-28-2015, 11:32 AM
RE: Feast of Famine (WIP) - by Underwhelp - 10-28-2015, 02:03 PM
RE: Feast of Famine (WIP) - by snowolf69 - 11-11-2015, 12:50 AM
RE: Feast of Famine (WIP) - by mirai087 - 12-12-2015, 05:08 PM
RE: Feast of Famine (WIP) - by Chunky - 12-15-2015, 12:17 AM
RE: Feast of Famine (WIP) - by raven - 01-24-2016, 09:49 AM
RE: Feast of Famine (WIP) - by bluemages - 01-24-2016, 01:54 PM
RE: Feast of Famine (WIP) - by orin - 09-21-2016, 03:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products