SRL Archive - OSR Help

Help with non-rs script


who23

2012-08-31 19:53:56

So ive been playing this game for a while, and decided to see if i could make a script, for educational purposes, dont really plan on using the bot all that much. The script i wanted to automate was fighting monsters. This game utilizes "screens" where you are, and if you go the border of the screen you move to the screen north/west/south/east depending on where you went.

I ran into a barrier when trying to figure out how to have the bot find these monsters. They are free moving, and hovering the mouse over the monster shows nothing, there is no "fight "monster name" (level X)" like in RS. Only way to engage combat is to right click and then click "attack (monster name)". The only thing i need is to have it run around on the same screen and attack these monsters. Eating/anything else isn't needed. help would be appreciated :D

who23

2012-09-03 13:20:50

any help would be appreciated

Roflme

2012-09-03 16:10:08

You should tell us the game so we can understand what exactly you require :p

who23

2012-09-03 18:01:51

its Queville, but the name of the game is largely irrelevant.

Roflme

2012-09-03 20:37:52

From: who23
its Queville, but the name of the game is largely irrelevant.


Not really… Now that I have the name of the game I can google search images/videos… You should have posted those rather than a text description. Pictures would have been great.

AFAIK have the script find the color of the monster you want to attack, and have it right click and select attack. Get the position of your character (get the color of your character) and of the monster, and if the X/Y coordinates of your character are different than the X/Y coordinates of the monster you want to attack then hold a specific key until coordinates match. (If WASD movement, if your X coord > monster X coord, hold D until your X coord is in range of attacking. etc. etc. etc.) This doesn't account for anything blocking your path (bridge, water, tree, rock, any obstruction in the way, etc. etc.) although a fail safe could be made for that. Search a box inbetween you and the monster and if any obstructions are in the way (use some method of detecting them) then *insert keys required to move around it here*.

A screenshot of the area you'd want to kill the monsters on would be very helpful.

who23

2012-09-04 17:25:02

http://screencast.com/t/aeivONydeE5

Thanks for spending so much time on my problem :D. Its mouse movement just like runescape. Im very new to scripting, how would i go about doing all the things you mentioned?

Emaziz

2012-09-04 17:57:59

Based on the graphics it does seem like an easy game to bot on and to learn about scripting. Assuming you already know basic usage of Simba and SRL like variables and mouse movement, I suggest you read this bitmap tutorial which would help you get the coordinates of the monsters you wish to attack.

A good alternative to using bitmaps is using DTMs. If you wish to learn about that you may try this DTM tutorial. However I think you'd be better off learning about bitmaps first.

Roflme

2012-09-04 18:10:41

From: who23
http://screencast.com/t/aeivONydeE5

Thanks for spending so much time on my problem :D. Its mouse movement just like runescape. Im very new to scripting, how would i go about doing all the things you mentioned?

Well:
From: Emaziz
Based on the graphics it does seem like an easy game to bot on and to learn about scripting. Assuming you already know basic usage of Simba and SRL like variables and mouse movement, I suggest you read this bitmap tutorial which would help you get the coordinates of the monsters you wish to attack.

A good alternative to using bitmaps is using DTMs. If you wish to learn about that you may try this DTM tutorial. However I think you'd be better off learning about bitmaps first.


^This



If you know the basics, and the game is as simple as I think it is, then a simple FindColor, MoveMouse, ClickMouse (unless they've good bot detection, then use MMouse/Mouse/etc.) and if findcolor(of obstruction) then hold one of the keys (W/A/S/D) to get around/ if your color isn't near the enemy mob's color then hold one of they keys down.

Bitmaps/DTMs just look challenging but I'd suggest reading the tutorials because they aren't that difficult and once you learn how to do both they're very helpful for accuracy. I learned the basic of DTMs by simply opening up the DTM editor :p no tutorial was needed.

You'll just be doing lots of trial and error until you get something that works.