10-28-2015, 02:03 PM
(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