Results 1 to 11 of 11

Thread: Question about MiniMap

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default Question about MiniMap

    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

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    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..."


  3. #3
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    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.

  4. #4
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by 14578 View Post
    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.
    07Scripter
    I mostly write private scripts

  5. #5
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by okokokok View Post
    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?

  6. #6
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    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);

  7. #7
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  8. #8
    Join Date
    Nov 2011
    Location
    United states
    Posts
    516
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    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

  9. #9
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DTMs are good if your main points/subpoints are not interfered by players and NPCs.
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

  10. #10
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by nosaj.421 View Post
    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.

  11. #11
    Join Date
    Nov 2011
    Posts
    1,532
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The main point is fine if you set tol to 255, but if subpoints are messed up, chances are your DTM wont be found.
    Current activity: Recovering from vacation
    - Nulla pars vitae vacare officio potest -
    SRL membership? Can I buy that?
    Scripts - AGS - SWF - WAR - EMS - W100S-EM
    If you need scripting help, you can pm me. Remember, if you need help you have to ask for it properly though

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •