Results 1 to 6 of 6

Thread: Help with a few odds and ends

  1. #1
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with a few odds and ends

    I am almost done with a castle wars script, but i am facing a few problems.

    1. My antiban won't compile for some reason, it says the GameTab is undefiable, not sure why.

    Code:
    procedure Antiban1;
    begin
      case random(250) of
        0: begin StatsGuise('Antiban') GameTab(tab_Stats) HoverSKill('Magic', False) GameTab(28) end;
        1: begin StatsGuise('Antiban') SleepAndMoveMouse(7000 + Random(500)); end;
        2: begin StatsGuise('Antiban') GameTab(tab_Inv) ExamineInv; GameTab(28); end;
        3: begin StatsGuise('Antiban') GameTab(Tab_Stats); Wait(3000 + Random(500)); GameTab(28); end;
        4: begin StatsGuise('Antiban') GameTab(tab_Stats HoverSkill('Random', False); GameTab(28); end;
      end;
    end;

    2. Can you add scripts to the Msi-Run tab, and if you can, how, and how should it go into the loop.

    3. Isn't there a bunch of functions that should go into almost all the scripts also?

    I am a bit new to this kind of scripting, i do have a little bit of knowledge in javascripting but the differences is a bit confusing.

  2. #2
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    You missed a closing ")" in your fifth line inside your case statement.
    You won't be able to add a castle wars script to MSI I'm afraid.
    It's a great stand alone script though

    3. Isn't there a bunch of functions that should go into almost all the scripts also?
    Yes, this is why the SRL Resource Library was created. Because all scripts use many of the same functions.

  3. #3
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank, don't know how i missplaced the closing bracket. But the GameTab is still getting unknown identifiar.

  4. #4
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Could you upload/post your script here in code tags?
    If you want it kept private pm it to me and I'll take a look at your compiler errors. I really can't help you otherwise.

  5. #5
    Join Date
    Jan 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, be warned, its extremely simple, though i haven't got the going up the ladder in the game done yet, no one is playing CW at the moment. Will pm u it.

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Simba Code:
    program CastleWars;
      {$define SMART}
      {$i srl/srl.scar}
      {$i SRL/SRL/Misc/stats.simba}
    You need to include SRL.
    Also you used ClickNorth and passed it a bad parameter.
    ClickNorth(true); or ClickNorth(false); should be used.

    Also you could work on some standards but at it compiles now

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
  •