Results 1 to 7 of 7

Thread: problem with WithdrawItem

  1. #1
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default problem with WithdrawItem

    now i have absolutly no idea why, but i always get the following
    ** Warning in WithdrawItem: Could not Find dtm in Bank. [Uptext: hide]**
    this is the code
    SCAR Code:
    WithdrawItem(DTM, 'dtm', 0, 'hide', [])

    it hovers over the Cowhide but never withdraws any...

    and before anyone says it, the Cowhide is called Cowhide in the game

    ~shut

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

    Default

    Quote Originally Posted by Shuttleu View Post
    now i have absolutly no idea why, but i always get the following

    this is the code
    SCAR Code:
    WithdrawItem(DTM, 'dtm', 0, 'hide', [])

    it hovers over the Cowhide but never withdraws any...

    and before anyone says it, the Cowhide is called Cowhide in the game

    ~shut
    If its mousing over the DTM correctly then its probably the uptext reading Cowhide wrong. Try 'owh', 'whi', 'whid' or something like that, would be even better if you use an array of uptexts.
    (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.

  3. #3
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    If its mousing over the DTM correctly then its probably the uptext reading Cowhide wrong. Try 'owh', 'whi', 'whid' or something like that, would be even better if you use an array of uptexts.
    i have already tried using different combinations and it never finds it (well it does but it never withdraws any and it says it hasn't), and i dont thnk you can use a array of strings can you?

    ~shut

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

    Default

    Quote Originally Posted by Shuttleu View Post
    i have already tried using different combinations and it never finds it (well it does but it never withdraws any and it says it hasn't), and i dont thnk you can use a array of strings can you?

    ~shut
    WaitOptionMulti(); WaitUpTextMulti(); etc.

    Edit: NVM.

    You could make an array of strings however and loop through them.
    SCAR Code:
    StrArr := [uptextsHere];
    for i := 0 to High(StrArr) do
      WithdrawItem(DTM, 'dtm', 0, StrArr[i], [])
      etc..
    Last edited by NCDS; 08-02-2010 at 10:17 PM.

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

    Default

    WithDrawItemEx or WithDrawItemMulti I think? Don't have SRL on the computer or I'd look real quick.

    Do a test and have it read the uptext of the item and write it out to see what its reading.
    (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.

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    i got this
    Code:
    Compiled succesfully in 1560 ms.
    SRL Compiled in 16 msec
    WithdraZ-1 Cowrhide / 7 more options
    Successfully executed.
    Compiled succesfully in 1420 ms.
    SRL Compiled in 15 msec
    WithdraZ-1 Cowrhide / 7 more options
    Successfully executed.
    Compiled succesfully in 1404 ms.
    SRL Compiled in 15 msec
    Withdraw-1 Cowl,ide / 7 more options - . _ _
    Successfully executed.
    Compiled succesfully in 1310 ms.
    SRL Compiled in 31 msec
    Withdr^1 ^hide / 7 more options
    Successfully executed.
    ~shut

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

    Default

    Quote Originally Posted by Shuttleu View Post
    i got this
    Code:
    Compiled succesfully in 1560 ms.
    SRL Compiled in 16 msec
    WithdraZ-1 Cowrhide / 7 more options
    Successfully executed.
    Compiled succesfully in 1420 ms.
    SRL Compiled in 15 msec
    WithdraZ-1 Cowrhide / 7 more options
    Successfully executed.
    Compiled succesfully in 1404 ms.
    SRL Compiled in 15 msec
    Withdraw-1 Cowl,ide / 7 more options - . _ _
    Successfully executed.
    Compiled succesfully in 1310 ms.
    SRL Compiled in 31 msec
    Withdr^1 ^hide / 7 more options
    Successfully executed.
    ~shut
    Try using just 'ide' then, as that seems to be the easiest found combination.

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
  •