so it would basicly be if click last were at 325 400 look like this with gumpwait
gosub gumpwait
gosub gumpclick 325 400
sub Gumpclick
set %clickx #contposx + %1
set %clicky #contposy + %2
click %clickx %clicky
return
And the two sets are actually gosub gumpclick 350 (set %clickx #contposx + %1) 400 (set %clicky #contposy + %2)
setclickx setting 350 click on the contain position 1% is the number I input in the call in this case 325? And %2 is the second number, in this case 400?
Well I think I understand what you are driving at and, basically yes. If you are thinking of Gump basics they have a name, a size, and sometimes locations within them that you want to click something or place something.
Your basic logic would be something like:
Use item
Wait for the gump
When gump is open
Do something
When "Do Something" is to click a button within a menu then you sometimes have to wait for the gump again or sometimes you don't.
When you are waiting for the gump you need logic to tell the code what you are waiting for - ie, a gump name or gump size. Preferably you will use both of these as there are a lot of gumps with the same gump name for example.
As for creating a set of subs, these do already exist however don't let that stop you! You want a Gump Wait and a Click sub. Make sure your Gump Wait takes in criteria for what gump you are waiting for and the Click takes in your Click coordinates.
Hey Cerv, some of those tutorials can still be pulled out of the internet archive. Not all but some. If I remember correctly C2's old Menu tutorial is still out there. We'll have to see what else is there

X