Results 1 to 6 of 6

Thread: Need some (mostlikely)easy help.

  1. #1
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Red face Need some (mostlikely)easy help.

    Hey! I'm trying to make an assistance script that will turn on prayers and other things. I'm going to set a constant of a key that will ultimately turn on the prayer. So I need help on how to store the box for the prayer(x1, y1, x2, y2).
    I set a variable named PI1Box which will activate the Protect Item PRAYER when the user presses the specified key. I just need to know what I would set the variable type to.

    Like:
    Code:
    var
      PI1Box: "Variable type here. Tell me what it is please.";
    Or should I just set the boxes as constants like this:
    Code:
    const
      PI1Box = (000, 000, 000, 000);
    Last question: If I were to set the boxes as constants, Would I then be able to use mousebox like this(?):
    Code:
    if BlahBlahBlah then
    begin
      MouseBox(PI1Box, 1);
    end;

  2. #2
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    TBox;

    Edit: At least, TBox in scar.

    SCAR Code:
    program New;
    var
      blargh : tbox;
    begin
      blargh.x1 := 50;
      blargh.y1 := 52;
      blargh.x2 := 52;
      blargh.y2 := 54;
      Writeln(inttostr(blargh.x1))
    end.

  3. #3
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks. Yea, I'm pretty sure it works in simba because it's compiling.

  4. #4
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Double post(I figured it would be better than a new thread): What would I set the variable type to if I wanted the variable to have an x and a y value?

  5. #5
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    TPoint.

  6. #6
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea, thanks. Literally half an hour after I posted it I remembered... It's been a while.

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
  •