03-18-2014, 10:40 AM
Hello,
WTS SelectDialog and SelectDialogWait functions library, allowing you to select dialog by position number or display dialog.
Documentation
NB: SelectDialog can not be used with string parameter for the gate keeper teleport location, since the town names are not contained in the html.
Examples :
For any questions/information, please send me a pm
Additional features that can be added :
- logging selection failure on excel file in case the dialog does not exist anymore or the position is incorrect.
WTS SelectDialog and SelectDialogWait functions library, allowing you to select dialog by position number or display dialog.
Documentation
Code:
SelectDialog(integer or string) : parse the npc html and perform a Click or ClickLink. Returns true in case of success, false in case of failure.
SelectDialogAndWait(integer or string) : parse the npc html and perform a ClickAndWait or ClickLinkAndWait. Returns true in case of success, false in case of failure.
NB: SelectDialog can not be used with string parameter for the gate keeper teleport location, since the town names are not contained in the html.
Examples :
Code:
dofile (GetDir() .. "\\scripts\\SelectDialog.lua")
-- Getting wizzard harmony
TargetNpc("Adventurers' Guide", 0)
Talk()
SelectDialogAndWait(2)
SelectDialog(3)
Code:
dofile (GetDir() .. "\\scripts\\SelectDialog.lua")
-- Going to gludio airship from gludio's gatekeeper
TargetNpc("Bella", 0)
Talk()
SelectDialogAndWait(1)
SelectDialog(1)
WaitForTeleport()
Code:
dofile (GetDir() .. "\\scripts\\SelectDialog.lua")
-- opening general store in Dion grocer
TargetNpc("Lars", 0)
Talk()
SelectDialogAndWait("buy general")
Code:
dofile (GetDir() .. "\\scripts\\SelectDialog.lua")
-- Going to kartia 85 solo from aden
MoveTo(147552, 27334, -2192, 30)
TargetNpc("", 33647)
SelectDialogAndWait(1)
SelectDialog(1)
WaitForTeleport()
Code:
dofile (GetDir() .. "\\scripts\\SelectDialog.lua")
-- Going to Goddard from Dion's gatekeeper
TargetNpc("Trisha", 0)
Talk()
SelectDialogAndWait("teleport")
SelectDialog(4)
WaitForTeleport()
For any questions/information, please send me a pm
Additional features that can be added :
- logging selection failure on excel file in case the dialog does not exist anymore or the position is incorrect.