SRL Archive - OSR Help

Softening Clay


Wetish

2012-01-08 11:39:15

What code would you use to click make all in the chat box when softening clay ?
Its like when fletching you have to choose what you want to make and click on it. I am unsure of how to locate it and click on it.

PatDuffy

2012-01-08 11:41:46

there are several ways you could do that.

Mousebox, FindDTM(MCX1, etc.), finding color in the chatbox…

I suggest using MouseBox, the parameters should be in Mouse.simba in the SRL include folder.

Wetish

2012-01-08 11:43:30

From: PatDuffy
there are several ways you could do that.

Mousebox, FindDTM(MCX1, etc.), finding color in the chatbox…

I suggest using MouseBox, the parameters should be in Mouse.simba in the SRL include folder.


Ok thanks. How would I find the coordinates of the box that I am trying to click?

Gu3st...

2012-01-08 11:44:23

CountColor() on the Make-All text and MouseBox() should be all you'd need, really :)

Wetish

2012-01-08 11:56:56

It doesnt like this line of code

MouseBox(236, 403, 280, 454: True);

Whats wrong with it?

Sin

2012-01-08 11:58:25

Use a dtm. It's quite easy then.
Oh, btw theres a : instead of , in your parameters.

PatDuffy

2012-01-08 12:06:22

Mousebox also takes numbers for the click values, 1 is left and 0 is right.

Wetish

2012-01-08 12:19:33

Thanks Now I need to learn walking :)

cause

2012-01-10 03:50:40

I used a DTM and I found the coords for the chatbox are hardcoded into globals.simba:
if FindDTM(goldbarDTM, x, y, MCX1, MCY1, MCX2, MCY2) then
that's the code I use when smelting, MCX1…etc represent the area of your chatbox.

Kyle Undefined

2012-01-10 11:55:41

Use "mouse_Left" or "mouse_Right" when using "Mouse();".

TsterT

2012-01-10 21:47:32

Here's what I use:


Mouse(240, 415, 3, 3, True); //Click soften clay