Results 1 to 14 of 14

Thread: How to drop wood?

  1. #1
    Join Date
    Dec 2007
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to drop wood?

    Hey,
    I am trying to make a basic power cutter as my first script. I have looked everywhere to try and find out how to drop the wood after it is cut.

    Any help would be greatly appreciated.

  2. #2
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    scar Code:
    procedure DropItem(i: Integer);
    By: Lorax
    Description:
         Drops item at given position (1-28)

    EDIT
    Or
    scar Code:
    procedure DropAll;
    By: Lorax
    Description:
         Drops all items

  3. #3
    Join Date
    Dec 2007
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is there a guide that explains how to make a procedure work after you put in the script. So it will look like

    procedure DropItem;

    begin
    end;

    Now how do you figure out what to put in between begin and end for each different procedure?

  4. #4
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

  5. #5
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    personally id use DTMs for dropping its better and itll teach u DTM that what i used on my revision of my first script noobpowerminer and now i can use dtms for almost anything

  6. #6
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you can simple check if the item exists in that inv slot, then mmouse over it, check the uptext and if it's uptext is 'og' then dropitem(). Would look something like this

    SCAR Code:
    for i := 1 to 28 do
    begin
      if itemexist(i) then
      begin
        MMouseItem(i);
        ...
      end;
    end;

  7. #7
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    you can simple check if the item exists in that inv slot, then mmouse over it, check the uptext and if it's uptext is 'og' then dropitem(). Would look something like this

    SCAR Code:
    for i := 1 to 28 do
    begin
      if itemexist(i) then
      begin
        MMouseItem(i);
        ...
      end;
    end;
    Some of the items may not be logs, so hovering over every item could look a bit bot-like. Like someone said, DTMs are a good choice.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  8. #8
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    Some of the items may not be logs, so hovering over every item could look a bit bot-like. Like someone said, DTMs are a good choice.
    you can save the ones that arent to an array. Or do a color check at the inv slot, I find that dtm's are kinda slow, and I just dont really like them

  9. #9
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    you can save the ones that arent to an array. Or do a color check at the inv slot, I find that dtm's are kinda slow, and I just dont really like them
    Bitmaps are faster. ^^ Haha but I think a simple color check would suffice.

  10. #10
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    you can save the ones that arent to an array. Or do a color check at the inv slot, I find that dtm's are kinda slow, and I just dont really like them
    Quote Originally Posted by ian. View Post
    Bitmaps are faster. ^^ Haha but I think a simple color check would suffice.
    It's not like you are negative on time, you got time to much so a Dtm will suffice or bitmap.
    It's not like you should drop something every 100 ms and that is then a very very very very slow dtm(Which is ofc the makers fault ).
    ~Hermen

  11. #11
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    It's not like you are negative on time, you got time to much so a Dtm will suffice or bitmap.
    It's not like you should drop something every 100 ms and that is then a very very very very slow dtm(Which is ofc the makers fault ).
    People complain a lot about making things faster, that's the only reason I said that.

  12. #12
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    I don't like things to be too fast. Sometimes I find that things are that fast that they don't look very human-like.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  13. #13
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by R1ch View Post
    I don't like things to be too fast. Sometimes I find that things are that fast that they don't look very human-like.
    same as if they are slow or mis-click, i dunno i find that dropitem() and MMouseItem() bring more randomness to the table aswell as increase the speed, but thats just my opinion

  14. #14
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Blumblebee View Post
    you can simple check if the item exists in that inv slot, then mmouse over it, check the uptext and if it's uptext is 'og' then dropitem(). Would look something like this

    SCAR Code:
    for i := 1 to 28 do
    begin
      if itemexist(i) then
      begin
        MMouseItem(i);
        ...
      end;
    end;
    That's probably your best bet, except I would check the InvBox for the Log color before I hovered the mouse over it.

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
  •