Results 1 to 6 of 6

Thread: Just look, cant think of a name.

  1. #1
    Join Date
    Feb 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Just look, cant think of a name.

    Well i got an awsome auto talker, but sitting there just pressing the hotkeys is very boring so i get distracted by the TV and miss Trades.

    I was wondering if a script could run, and when a trade is offered to me, it trades that

    +

    (THIS MIGHT NOT BE ABLE TO WORK) A sound is played. Like the second it trades a sound is played on my computer, it can be any sound just whatever file is selected as the hotkey sound.

    Is this posible?
    Making an ELITE FORCE!!

    lvl 60+ WCers: 7/20
    lvl 60+ Miners: 4/20

  2. #2
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    285
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes it is possible, you can use the built-in procedure:
    SCAR Code:
    procedure PlaySound(FileName: string); - play the specified WAV file.
    to make one.

    I might be able to make one for you once I get some sleep
    Huehuehuehuehue

  3. #3
    Join Date
    Feb 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    KOOL!! Thanks mate!
    Making an ELITE FORCE!!

    lvl 60+ WCers: 7/20
    lvl 60+ Miners: 4/20

  4. #4
    Join Date
    Feb 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    anyone else think they can do it?
    Making an ELITE FORCE!!

    lvl 60+ WCers: 7/20
    lvl 60+ Miners: 4/20

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    428
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Here you go

    Here's a procedure that will trade a person trading you.


    SCAR Code:
    {.include SRL\SRL.scar}

    procedure ClickTrade;
    var
      TradeColor, a, b: Integer;
    begin
      if (FindColorSpiralTolerance(a, b, 8388736, 20, 350, 580, 440, 3)) then
        MMouse(a, b, 0, 0);
    end;


    It should work

  6. #6
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    285
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I forgot all about this >.< Exams kill your brain D: Sorry!
    I'll make one now....
    SCAR Code:
    program TradeAlerter;
    {.include SRL\srl.scar}
    {.include SRL\SRL\misc\trade.scar}

    // Setup
    const
      YourMessage = 'Buying Chaos 300gp ea!'; // Message to type
      WavName = 'Garfield';
     
    begin
      SetupSRL;
      ActivateClient;
      repeat
        Typesend(YourMessage);
        wait (350+random(650))
      until(AcceptTrade)
      PlaySound(WAVName);
      Writeln('Come back from TV!')
    end.

    Is this what you wanted?

    It is NOT Tested... I think you should have the WAV file either at the root SCAR directory or where the script is, I have no idea.

    PS. Added the WAV file I used in an attachment, my speaker isn't working but I hope it's something good... :/
    Huehuehuehuehue

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
  •