Results 1 to 6 of 6

Thread: Using 1 item with all items in the inventory?

  1. #1
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Using 1 item with all items in the inventory?

    Code:
    procedure LightFires;
    begin
    if (InventoryFull) then
    repeat
    MouseItem(1,true)
    MouseItem(3,true)
    LightWait;
    until(false);
    end;
    is my code..

    is there and easier way then going MouseItem 1-28 copy and pasting all those, or can i just do something simpler?

    if someone can help me please post and explain so i can learn, i dont like leeching
    Thick As Blood

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    function CoordsToInvSpot(gx,gy:integer):integer;
    var col,row:integer;
    begin
      if ((gx>569) and(gx<600)) then col:=1;
      if ((gx>611) and(gx<642)) then col:=2;
      if ((gx>653) and(gx<684)) then col:=3;
      if ((gx>695) and(gx<723)) then col:=4;

      if ((gy>213) and(gy<244)) then row:=1;
      if ((gy>249) and(gy<280)) then row:=2;
      if ((gy>285) and(gy<316)) then row:=3;
      if ((gy>322) and(gy<352)) then row:=4;
      if ((gy>357) and(gy<387)) then row:=5;
      if ((gy>393) and(gy<424)) then row:=6;
      if ((gy>429) and(gy<459)) then row:=7;
     
      result:=((row-1)*4)+col;
    end;

    procedure pauser;
    begin
      if isfkeydown(12) then
      begin
        repeat
          wait(30);
        until isfkeydown(11);
      end;
    end;

    procedure Enchant;
    var ex,ey,i:integer;
    begin
      repeat
        pauser;
        i:=i+1;
        useitem(1);
        wait(200+random(100));
        pauser;
        finddtm(dtmuncutgem,ex,ey,554, 205, 743, 465);
        useitem(coordstoinvspot(ex,ey+10));
        wait(500+random(100));
        pauser;
      until countitemdtm(dtmuncutgem)=0;
    end;

    From my gemcutter, (which you can see was modified from my enchanter )

    Use all black (65536) points for the DTM of the logs, and make the parent dot be near the top.

  3. #3
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i was using the Log mask from the DTM in the Firemaking skill.scar script i'll just have to make my own now thanks boreas
    Thick As Blood

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Np. DTMs>Bmps

  5. #5
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Boreas View Post
    Np. DTMs<Bmps



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  6. #6
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I know you and Fawki and most of the other devs love bmps, but you gotta admit, for inventory, DTMs are better. There's no reason to store so much information about something that is 2D, and always has the same outline.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using Items with each other in inventory
    By arteest90 in forum OSR Help
    Replies: 17
    Last Post: 11-21-2008, 11:41 PM
  2. Replies: 5
    Last Post: 10-02-2007, 01:28 PM
  3. INventory Items with DTM?
    By wtf i sp4nk in forum OSR Help
    Replies: 3
    Last Post: 05-21-2007, 02:38 AM
  4. Items in inventory help
    By wtf i sp4nk in forum OSR Help
    Replies: 2
    Last Post: 05-20-2007, 09:58 PM

Posting Permissions

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