Results 1 to 8 of 8

Thread: GameTab.Scar ~~ InClan/JoinClan

  1. #1
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default GameTab.Scar ~~ InClan/JoinClan

    I made a function, InClan, that returns whether or not you are in a clan, previously I had made JoinClan, so whenever I login it would join a clan, but with the new update, if you were in a clan when you logged out, it'd auto-join you back in, so I made a function to determine whether or not you were already in a clan to see if you needed to join a clan. I will also make InClan(ClanName: String);, I just thought of it now, but I'm going to make so it sees if you are in the clan of the string entered, and if the string entered = '', then it'll just see if you are in any clan or not. For now, here's Function InClan: Boolean; and procedure JoinClan(ClanName: String); :

    Code:
    {*******************************************************************************
    function InClan;
    by: Baked0420
    description: Checks if you are in a clan
    *******************************************************************************}
    function InClan: Boolean;
    var
     x, y: Integer;
    begin
      If(GetCurrentTab <> Tab_Clan) then
        GameTab(Tab_Clan);
      Result:= not(FindBitmapMaskTolerance(CreateBitmapMaskFromText('Not in chat', StatChars), x, y, MIX1, MIY1, MIX2, MIY2, 50, 10));
    end;
    
    
    
    {*******************************************************************************
    procedure JoinClan(CharacterName: String);
    by: Baked0420
    description: Joins the clan of the character name you put in.
    *******************************************************************************}
    procedure JoinClan(ClanName: String);
    var
     x, y: Integer;
    begin
     if(not(InClan)) then
      begin
        If(GetCurrentTab <> Tab_Clan) then
          GameTab(Tab_Clan);
        Wait(200 + random(200));
        if(FindBitmapMaskTolerance(CreateBitmapMaskFromText('Join Chat', StatChars), x, y, MIX1, MIY1, MIX2, MIY2, 50, 10)) then
          MouseBox(x, y, x+45, y+10, 1);
        Wait(100 + random(200));
        TypeSend(ClanName);
      end;
    end;

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    iv tried making a whole clanchat.scar a while ago, but it wasnt accepted

    but i like yours

    also, i think this belongs in /misc/

    e: forgot you said gametab in the titles XD
    Last edited by Awkwardsaw; 10-25-2009 at 07:58 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    thanks and yea, it would go in gametab.

    any suggestions?

  4. #4
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm sorry to say that this has been suggested before, and denied.
    I can only speak for myself, when I say that I won't add it.

    Nice work tho

  5. #5
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    thanks, makes me feel good when a Dev says good job

    but why not add it? there are no clan procedure/functions in gametab, and there is Tab_Clan, and people could use it for auto-talking/anti-ban, well, your the dev, your choice, I think it could be useful, but if people want to use it, they can just copy/paste + credit, doesn't have to be in include.

  6. #6
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    GameTab is getting stuffed up as it is...

    I know people hate to hear this, but maybe in the near future.

  7. #7
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    I don't see an actual use for this, perhaps antiban, and i see nothing wrong in including it;

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

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

    Default

    Its more like an "extra" and not really required. I doubt a script is gonna have a conversation in the clan channel.
    (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.

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
  •