Page 1 of 1

MouseClick Logger in createpath.lua

Posted: Fri Sep 11, 2009 5:54 pm
by GurdyMan
Just a minor extension on createpath.lua using the file as of revision 235. I added a mouseclick logger to the waypoint options. It simply made for less work than running a mouse logger script, writing down output, then adding into the waypoint file.

It outputs something like this:

Code: Select all

- <waypoints>
- <!--  # 1 
  --> 
  <waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
- <!--  # 2 
  --> 
  <waypoint x="5" z="19">player:mouseclickL(390, 316);</waypoint> 
- <!--  # 3 
  --> 
  <waypoint x="5" z="19">player:mouseclickL(242, 120);</waypoint> 
  </waypoints>
The above file moves to the Housekeeper NPC, opens the menu and (after the 5 second pause) opens the Bank Box and then immediately closes it.

Also, had to add:

Code: Select all

[550] = "  (%s)\tInsert mouseclick event (at mouse position)\n",
to the english language file.

Re: MouseClick Logger in createpath.lua

Posted: Sat Sep 12, 2009 1:36 am
by d003232
GurdyMan wrote:Just a minor extension on createpath.lua using the file as of revision 235. I added a mouseclick logger to the waypoint options. It simply made for less work than running a mouse logger script, writing down output, then adding into the waypoint file.
thx for your help. I will put it to the SVN later.

Re: MouseClick Logger in createpath.lua

Posted: Sat Sep 12, 2009 6:49 am
by GurdyMan
Thank you. Doubtless you'll have to make it look neater than my beginner level coding.

Re: MouseClick Logger in createpath.lua

Posted: Sat Sep 12, 2009 8:17 am
by Administrator
I haven't looked at this yet, but I do have one quick question about your changes.

Code: Select all

<waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
Did you add something to automatically insert that, or must that be done manually still?

Re: MouseClick Logger in createpath.lua

Posted: Sat Sep 12, 2009 8:37 am
by d003232
Administrator wrote:I haven't looked at this yet, but I do have one quick question about your changes.

Code: Select all

<waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
Did you add something to automatically insert that, or must that be done manually still?
I uploaded it and added some more options and changes. Now you can choose between:
  • add merchant
  • add NPC (like transporter or quest NPC)
  • add mouseclick
  • add choice Option
Now it's on the limit. If one need more options, he has to edit the waypint files directly.

Re: MouseClick Logger in createpath.lua

Posted: Sat Sep 12, 2009 2:08 pm
by GurdyMan
Administrator wrote:I haven't looked at this yet, but I do have one quick question about your changes.

Code: Select all

<waypoint x="5" z="19">player:merchant("Housekeeper");</waypoint> 
Did you add something to automatically insert that, or must that be done manually still?
That was already an option.