2791
Scripting Chat / Crafting Script Question
« on: February 18, 2013, 05:51:13 PM »
Ok I am trying to learn more about scripting and I am more of a hands on person. I have read the tutorials which were very helpful but I didn't see one that addressed crafting. I am dissecting Paulonius' Blacksmith Script and can not figure out how or where he gets the numbers to tell the mouse where to click. (Well if I am understanding this sub correctly anyways)
If I am understanding it correctly, the numbers in this tell the mouse where to click?
If so, how did he get those numbers to tell what location to click in?
Code: [Select]
;======================================================================
sub InitTinkerGump ; Makes sure you have two kits and sets it to use iron
finditem %Tinkertools C_ , #backpackid
if #findcnt < 1
{
display Get a tinker tool in your backpack and restart the script.
halt
}
if #findcnt < 2
{
gosub MakeTinkerKit
}
TinkerSetLoop:
finditem %Tinkertools C_ , #backpackid
set #lobjectid #findid
event macro 17
gosub waitforgump %cwin
if ! #result
{
Goto TinkerSetLoop
}
Gosub OffSetClick 30 370
gosub waitforgump %cwin
if ! #result
{
Goto TinkerSetLoop
}
Gosub OffSetClick 230 70
gosub waitforgump %cwin
if ! #result
{
Goto TinkerSetLoop
}
Gosub OffSetClick 30 450
wait 5
Return
If I am understanding it correctly, the numbers in this tell the mouse where to click?
Code: [Select]
Gosub OffSetClick 30 450
If so, how did he get those numbers to tell what location to click in?