Results 1 to 7 of 7

Thread: scannig inventory for dtms??

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default scannig inventory for dtms??

    yo i need to know how to scan the inventory for a trout dtms AND count it until it finds 10 trouts plz

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    repeat
    if FindDTM(stuff)then
    trout:=trout+1
    until trout:=10
    that what you want?
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if (FindDTM(TroutDTM, x, y, MIX1, MIY1, MIX2, MIY2)) then

  4. #4
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    theres a function in SRL/SRL/Extended/xInventory.scar, pretty sure name is
    SCAR Code:
    CountItemDtm(blahblah);

  5. #5
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    dan got it ty

  6. #6
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    SCAR Code:
    repeat
    if FindDTM(stuff)then
    trout:=trout+1
    until trout:=10

    This wont work.. It could find the same DTM 10 times. Just do like The_Rs_Monkey said.
    Hup Holland Hup!

  7. #7
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ooo ok thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Inventory Empty
    By Cstrike in forum OSR Help
    Replies: 9
    Last Post: 10-14-2008, 10:54 PM
  2. Inventory DTMs and global problems :S
    By StrikerX in forum OSR Help
    Replies: 3
    Last Post: 07-15-2008, 03:19 AM
  3. Items in inventory help
    By wtf i sp4nk in forum OSR Help
    Replies: 2
    Last Post: 05-20-2007, 09:58 PM
  4. Inventory
    By 3Garrett3 in forum OSR Help
    Replies: 5
    Last Post: 03-18-2007, 01:42 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
  •