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/...rent=sderh.jpg
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/...rent=sderh.jpg
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).
Current projects:
[ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]
"I won't fall in your gravity. Open your eyes,
you're the Earth and I'm the sky..."
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?
Last edited by Element17; 02-28-2012 at 10:06 AM.
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.
07Scripter
I mostly write private scripts
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:
Simba Code:If InArea(AreaHere) then
begin
StuffHere;
StuffHere;
end else
SPS_WalkToPos(A point in that area);
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.
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![]()
|| Droppin' Bandits || Chicken Killer || Power Iron || Ash Collector ||
Herblore script || Edgeville Yew Chopper || Basic Gnome Agility Runner
Changing the world one script at a time
DTMs are good if your main points/subpoints are not interfered by players and NPCs.
The main point is fine if you set tol to 255, but if subpoints are messed up, chances are your DTM wont be found.
There are currently 1 users browsing this thread. (0 members and 1 guests)