Results 1 to 6 of 6

Thread: Coordinates Command ?

  1. #1
    Join Date
    Mar 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Coordinates Command ?

    hey guys, was stuck trying to edit a script and was having issues with obtaining a coordinates command.

    So basically what I want to do is something along the lines of the following:

    Simba Code:
    //If Coordinates(xx,yy) return false Then
    //go to coordinates(xx,yy)

    simple command but was having trouble finding the command. Any insight is greatly appreciated

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    What do you mean coordinates? Like SPS?

  3. #3
    Join Date
    Mar 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    What do you mean coordinates? Like SPS?
    Ok, so if I wanted to edit my fight caves script after the update because it was getting stuck at the very beginning after clicking on the cave. I would need to add an IF statement to detect if it was stuck at the very beginning after clicking the cave entrance.

    something like:
    //If location(false) Then
    //walktocenter

    What command would I use to detect if it was at a certain location?

    Sorry if I'm explaining this terribly.

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    to start off: we do not use injection here, only color. saying that, standard injection methods (like tile based walking) are not used here.

    with that said, the closest thing to tile based walking that we do have here is called SPS. look up tutorials for that, it might be able to help you. You can also detect things on the screen/minimap to determine your general location.

  5. #5
    Join Date
    Mar 2013
    Location
    0100111001001100
    Posts
    56
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by exo89 View Post
    Ok, so if I wanted to edit my fight caves script after the update because it was getting stuck at the very beginning after clicking on the cave. I would need to add an IF statement to detect if it was stuck at the very beginning after clicking the cave entrance.

    something like:
    //If location(false) Then
    //walktocenter

    What command would I use to detect if it was at a certain location?

    Sorry if I'm explaining this terribly.
    Example i'll use this in my script: (CHECKS THE LOCATION)

    if pointInBox(OurPos, IntToBox(0000, 0000, 0000, 0000)) then
    Result := 'FightCave';

    if pointInBox(OurPos, IntToBox(0000, 0000, 0000, 0000)) then
    Result := 'ToMiddle';
    procedure ToMiddle;
    var
    ToMiddleVar: TPointArray;
    begin


    if (CheckLocation = 'fightcave') then exit;

    ToMiddleVar:=[Point(0000, 0000), Point(0000, 0000)];
    SPS_WalkPath(ToMiddlevar) // walks to the cave
    end;
    and then your loop

    To get your locations use SPS_Debug := true;

    If u need help add me on skype: Maikel23350
    Last edited by maikel233; 05-11-2013 at 11:46 PM.

  6. #6
    Join Date
    Sep 2008
    Posts
    754
    Mentioned
    8 Post(s)
    Quoted
    275 Post(s)

    Default

    What script are you using?.

    You could add a simple function to your Cave entrance procedure.
    After you find Cave and click it, you add:

    Simba Code:
    clickmouse2(mouse_left); // this is supposed to be your click  for entering the cave.
    if DidClick(True,500) then // you can change the 500 to any time you want
    begin                        // so if a red click passes, it will wait till your character reaches center.
    wait(randomrange(6000,10000); // you could try changing the wait time.
    clicktocontinue;                // of course you need this. No need to explain.
    Rest of the script.

    SPS doesn't work too well in cave, i made 4 different custom maps, and they all just barely worked, waste of time and energy to invest into it.

    edit:
    Another thing you can do is

    Simba Code:
    if GetColor(641,11) = 0 then
    begin    
    MouseBox(654,145,658,151,1);
    wait(randomrange(5000,10000);
    This will detect the blackness outside cave boundaries and get you south. All taken from my script. Small things but they are very effective.

    You could also use RadialWalkAutoColor, works kinda of.
    Last edited by samerdl; 05-12-2013 at 12:02 AM.

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
  •