Results 1 to 5 of 5

Thread: mouse click option problem

  1. #1
    Join Date
    Dec 2011
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default mouse click option problem

    Having trouble renewing pouch with script

    what i have done:

    if FindDTM (pouch, x , Y, MSX1, MSY1, MSX2, MSY2) then
    writeln ('Congratz! found pouch');
    HumanMMouse (x, y, 7,7)
    wait(100+random(50));
    Mouse (x, Y, 0, 0, true);
    Wait (300+random(100));
    CloseBank;
    Wait (300+random(100));
    MouseItem(pouch, mouse_right);
    Wait(RandomRange(500, 75));
    ChooseOption('Summon')
    What am i doing wrong
    Last edited by uuziwuuzi; 01-28-2012 at 04:04 PM.

  2. #2
    Join Date
    Dec 2011
    Location
    Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You have to dismiss the old familiar before summoning a new one.

  3. #3
    Join Date
    Dec 2011
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    before summoning script cheks if there is a familiar.. it only does that when familiar is gone

  4. #4
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Simba Code:
    MSX1, MSY1, MSX2, MSY2
    should be
    Simba Code:
    MIX1, MIY1, MIX2, MIY2

    the coord's that you asked FindDTM to search in was the MainScreen (MS)
    you want FindDTM to search the MainInventory (MI)

    Edit : Please use SIMBA tags to wrap around your code, it makes it alot easier to read, and try to use standards in your scripting if your aiming for SRL Member's it's highly appreciated.

  5. #5
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    545
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by pur3b100d View Post
    Simba Code:
    MSX1, MSY1, MSX2, MSY2
    should be
    Simba Code:
    MIX1, MIY1, MIX2, MIY2

    the coord's that you asked FindDTM to search in was the MainScreen (MS)
    you want FindDTM to search the MainInventory (MI)

    Edit : Please use SIMBA tags to wrap around your code, it makes it alot easier to read, and try to use standards in your scripting if your aiming for SRL Member's it's highly appreciated.
    Thats not the issue, according to his code ( CloseBank; ) he has the bank open at that moment. he left-clicks the pouch so it will withdraw the pouch and then he summons it.

    There is nothing wrong with your code, so something else in the script will be wrong.

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
  •