This is a VERY simple script outlining the methodology for obtaining tradeskill writs with isxeq2. This contains no bells and whistles and is here primarily as a point of reference for other script writers.
Code:
function main()
{
; Please note that rather than using fancy "events", I was forced to hard code in
; "waits". The reason for this is because events fire immediately, while much of
; this requires things to be sent and retrieved from the server. There might be
; a better way, but this was the easiest. I used 1 or 2 second delays; however,
; you might need to adjust this based on your connection speed and latency.
; ...TODO: Move you so that the nearest NPC is the one that offers the writs. The best
; would be the one RIGHT next to the tradeskill writ desk that you have to click.
eq2execute target_nearest_npc
wait 2
Target:DoFace
wait 10
Target:DoubleClick
wait 10
; The following line chooses the FIRST option....adjust as you need
EQ2UIPage[ProxyActor,Conversation].Child[composite,replies].Child[button,1]:LeftClick
wait 20
; Accept the Quest being offered. Don't ask me why they use the same window here as the QuestReward window...
RewardWindow.Child[button,Accept]:LeftClick
wait 20
; Then we finish the conversation
EQ2UIPage[ProxyActor,Conversation].Child[composite,replies].Child[button,1]:LeftClick
; Now we doubleclick on the desk that has the writs...since I was using the NPC that's
; right beside the table, I didn't have to do any moving..but, if you are not, then you'll
; need to move your character to the desk before issuing this command.
Actor[desk]:DoFace
wait 10
Actor[desk]:DoubleClick
wait 20
; pick the first option available to us in the replydialog window
ReplyDialog:Choose[1]
wait 20
; Now get rid of the little dialogreply window that's left hanging on the screen for no reason.
eq2execute /default_esc_key_function
eq2execute /default_esc_key_function
; ALL done :) ..you know have a writ.
}