SRL Archive - OSR Help

Question about MiniMap


Element17

2012-02-28 03:56:42

Is there anyway to keep the player within a certain area?

I want to keep my player attacking the monsters only within the yellow box I have outlined.

http://s1192.photobucket.com/albums/aa321/andrewvar/?action=view¤t=sderh.jpg

Flight

2012-02-28 04:09:06

How about doing what I did in my StrongHolder: Make a DTM of the center of that room. Run you 'AttackTargets' (or whatever you call to start attacking) and if an NPC isn't found then call a different function/procedure to walk to that DTM (center of the room).

Element17

2012-02-28 04:52:40

Okay, do you mind me looking at your script? I kind of understand what your saying I think.

*Edit
http://villavu.com/forum/showthread.php?t=68112

Is that kind of what you were talking about?

okokokok

2012-02-28 05:13:06

From: 14578
Okay, do you mind me looking at your script? I kind of understand what your saying I think.

*Edit
http://villavu.com/forum/showthread.php?t=68112

Is that kind of what you were talking about?


No he means other DTMs, but this could be used too if used correctly.
Try this one: http://villavu.com/forum/showthread.php?t=71077

Anyway since i have troubles with DTM walking. That is why i use sps walking, but both work pretty well.

Element17

2012-02-28 12:19:31

From: okokokok
No he means other DTMs, but this could be used too if used correctly.
Try this one: http://villavu.com/forum/showthread.php?t=71077

Anyway since i have troubles with DTM walking. That is why i use sps walking, but both work pretty well.



That was actually very helpful in reading I feel like I understand it ha we will see tho! I also noticed you can use it to click NPCs is that better than find-object?

Nebula

2012-02-28 17:43:35

I would suggest making a small sps map of that region of the stronghold.

I can't remember it off of the top of my head, but there is a way to make a box by combining two sps points. If somebody could post this, that would be helpful.

Then all you would need to do is something like this:


If InArea(AreaHere) then
begin
StuffHere;
StuffHere;
end else
SPS_WalkToPos(A point in that area);

Er1k

2012-02-29 04:33:26

Your options are SPS to get your position, or DTM/DDTM anchor to lock your position from a region. Wt-fawaki has a tutorial on DDTM, very useful if the section of mm if it has unique marker.

Getdropped

2012-02-29 08:21:39

I feel that dtms are not as effective I have found out with my chicken script on finding a center location. Because of the fact it is searching for objects (eg trees) and sometimes if it walks too far it wont locate the dtm while it has a better change with sps to click on the location.
Hope that helps ;)

Er1k

2012-02-29 08:32:23

DTMs are good if your main points/subpoints are not interfered by players and NPCs.

Element17

2012-02-29 09:23:07

From: nosaj.421
DTMs are good if your main points/subpoints are not interfered by players and NPCs.


Well would a monster or other player standing in the middle of my DTM cause it to mess up? Also does anyone have any good tuts or sps walking? If not I'll do some searching on here.

Er1k

2012-02-29 09:54:24

The main point is fine if you set tol to 255, but if subpoints are messed up, chances are your DTM wont be found.