Results 1 to 5 of 5

Thread: in box (best way to describe it)

  1. #1
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default in box (best way to describe it)

    Let say i picked up someone and it was at 3250, 3399 (which is in box).
    How can i tell if it is in the box. Script would go: if pointsinbox then ~~~

    Point 1 = 3290, 3464 North East

    Point 2 = 3156, 3464 North West

    Point 3 = 3290, 3375 South East

    Point 4 = 3156, 3375 South West
    I do visit every 2-6 months

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    If this is supposed to be one box, just take the top-most coords and the x-axis to the left, and the bottom-most coords with the x-axis to the right.

  3. #3
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    think of it like this.
    Lets make it simpler.
    Rectangle
    Ne := 7,10
    Se := 7,5 box -> []
    SW := 6,5
    NW := 6,10

    say i put a dot in the box [.] and that cord is 6,7. i need a script to tell if a that or any other like 6,8 is in the box
    I do visit every 2-6 months

  4. #4
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    PointInBox(TPoint, TBox): Boolean;

    IntToBox(x1, y1, x2, y2)

    PointInBox(Point(x, y), Inttobox(1, 1, 8, 8));

    like that?
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  5. #5
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ty sooo much. When were these functions made?
    I do visit every 2-6 months

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Describe your craziest party!
    By gerauchert in forum The Bashing Club / BBQ Pit
    Replies: 30
    Last Post: 01-09-2008, 08:24 AM

Posting Permissions

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