Jump to content
oddjobmj

Find Anvil in RSC

Recommended Posts

Hello!

 

As the title suggests I am trying to find an anvil so I can click on it to smith. This is in RSC. I can't seem to get a DTM to work because of the possible slightly different rotations/views in the world. I tried picking one parent point and 2-3 nearby points which is actually not too hard to find and this works sometimes but every once in a while it gets stuck in a loop moving the mouse between two points and neither of them are on an anvil. For example:

 

        repeat
          FindDTM(AnvilDTM,x,y,W-200,H-250,W-125,H-138);
          Wait(750);
          MoveMouse(x,y);
          Wait(750);
        until FindDTM(AnvilTextDTM,x1,y1,W-508,H-349,W,H-335);

 

Alternatively: I was hoping to do something similar to a FindColorSpiral but the mouse would do the spiral in one place (near the middle of the screen) but look instead for a DTM in the top left corner of the screen. The DTM would simply be the text that shows when the mouse hovers over an anvil. Is there a good way to do something like this?

 

Edit: To be clear, simply looking for the color of the anvil won't work because the building it is in has the same range of colors.

 

Thank you!

Edited by oddjobmj
Link to comment
Share on other sites

DTMs won't work for mainscreen unless you do Demise style (would not recommend usually) you'll need to learn how to use FindColorS and TPA sorting.

 

Thanks for the reply!

 

mainscreen as in not minimap and other menus?

 

Not sure what you mean by Demise style but I have had quite a bit of luck for DTMs, actually. They're useful for text and finding things like bankers. Instead of simply spotting the black of their shirts, for example, which can easily be picked up in other regions such as bricks and edges of landscape features you can select 3 pixels in some small area which almost guarantees a large black surface and then just do that until the dtm for the banker text pops up in the top left corner.

 

I have also had some success with flax but it requires a few OR operations.

 

Anyway, I think the best solution is to simply use a modified client and change the anvil model to some a solid color. It is pretty easy now with all the sources floating around to find the mudclient version of the server client and emulate that with a similar release. The hard part now is finding the anvil model... I haven't had much luck! It doesn't seem to be in any of the rscd files.

 

I am still interested in more robust methods relying solely on scar-divi, however. I will look into TPA which I don't believe I have used.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...