1
Scripting Chat / Re: Crafting menu resolution
« on: October 28, 2008, 04:31:20 AM »
Ok, I got it now, thank you!
I guess what I did wrong, was I attempted to reposition the crafting gump THEN give it offsets in hard coordinate form.
Of course, I left the script that actually had the values for tools, resources and coordinates in them at home, but this is the basic format I used when I wrote this portion from work.
Thank you for the snippets, I will rework the script to go with offsets instead of coordinate value.
I guess what I did wrong, was I attempted to reposition the crafting gump THEN give it offsets in hard coordinate form.
Code: [Select]
sub makebox
finditem carptool C_ , #backpackid ; finds carp tool in pack
if #findkind = -1
{
display OK You have no Jointing Planes on you
halt
}
set %jointplane #findid
set #lobjectid %jointplane
finditem wood C_ , %backpackid
if #findcnt < 10
{
display OK You need at least 10 boards to make a box, you have #findcnt.
halt
}
event macro 17
wait 2s
contpos 0000 0000 ; location of gump
wait 1s
click 0000 0000 ; click containers
wait 1s
click 0000 0000 ; click wooden box
wait 2s
click 0000 0000 ; closes gump
return
Of course, I left the script that actually had the values for tools, resources and coordinates in them at home, but this is the basic format I used when I wrote this portion from work.
Thank you for the snippets, I will rework the script to go with offsets instead of coordinate value.