marpis
2009-09-15 23:54:29
Hi.
I have a great idea to make map walking reflection-style possible, like
WalkToTile(X, Y, RX, RY, FlagDistance)
with 100% color, AND without having to open the worldmap.
I started remaking the world map by taking screenshots and then attaching the minimap parts together. This way it will be as close to the real dynamic minimap view as possible.
The idea
The basic idea is that we pick a point x, y in the big map (checked with ms paint, the tile is just the co-ords of the pixel we want to walk to), take a photo of a 20x20 area around that point (just copy a part of the big map) and try to find it in-game in minimap.
Example:
I want to walk to the lumbridge bridge, I am currently standing next to the bridge. I open the map with ms paint and mouse-over the lumby bridge. In the bottom right corner I see the position of my mouse, that is the tile I want to walk to. I copy these co-ords to SCAR, and tell the script to walk there. Let's say the co-ords were 225, 365. Then to walk to lumby bridge, we simply call
Simplified:
User: I want you to walk to (225, 365)
Scar: Okay, let me see where that place is located on my map… Oh, I see that is the lumby bridge! There's some water around it, and there are also dark brown spots around it. I try to find 20x20 place in MM that contains water and dark brown spots!
Techniques
I will copy a 20x20 picture from the map, then turn it into a DTM with a function I have already made. If that DTM is not found, let's try taking every 2nd subpoint away from the DTM. If that's not found either, let's take every 3rd subpoint away, etc etc until there are just a few subpoints left.
Very simple actually :)
The code so far
http://pastebin.com/m1176337a
There are some things that I made to debugging purposes, and that will be taken away.
Contact
PM me on forums or just post here.
I am rarely on MSN, and even less on IRC.
I have a great idea to make map walking reflection-style possible, like
WalkToTile(X, Y, RX, RY, FlagDistance)
with 100% color, AND without having to open the worldmap.
I started remaking the world map by taking screenshots and then attaching the minimap parts together. This way it will be as close to the real dynamic minimap view as possible.
The idea
The basic idea is that we pick a point x, y in the big map (checked with ms paint, the tile is just the co-ords of the pixel we want to walk to), take a photo of a 20x20 area around that point (just copy a part of the big map) and try to find it in-game in minimap.
Example:
I want to walk to the lumbridge bridge, I am currently standing next to the bridge. I open the map with ms paint and mouse-over the lumby bridge. In the bottom right corner I see the position of my mouse, that is the tile I want to walk to. I copy these co-ords to SCAR, and tell the script to walk there. Let's say the co-ords were 225, 365. Then to walk to lumby bridge, we simply call
DMW(225, 365, 2 {randomness here}, 5 {flag distance here});
Simplified:
User: I want you to walk to (225, 365)
Scar: Okay, let me see where that place is located on my map… Oh, I see that is the lumby bridge! There's some water around it, and there are also dark brown spots around it. I try to find 20x20 place in MM that contains water and dark brown spots!
Techniques
I will copy a 20x20 picture from the map, then turn it into a DTM with a function I have already made. If that DTM is not found, let's try taking every 2nd subpoint away from the DTM. If that's not found either, let's take every 3rd subpoint away, etc etc until there are just a few subpoints left.
Very simple actually :)
The code so far
http://pastebin.com/m1176337a
There are some things that I made to debugging purposes, and that will be taken away.
Contact
PM me on forums or just post here.
I am rarely on MSN, and even less on IRC.