Results 1 to 4 of 4

Thread: Adding stuff to DeclarePlayers?

  1. #1
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default Adding stuff to DeclarePlayers?

    SCAR Code:
    procedure PlayerSetup;
    begin
      HowManyPlayers := 2;
      CurrentPlayer := 0;
      NumberOfPlayers(HowManyPlayers);

      Players[0].Name       := ''; //Username
      Players[0].Pass       := ''; //Password
      Players[0].Nick       := ''; //3-4 letters of username. e.x sern
      Players[0].Active     :=  True;
      Players[0].Strings1   := 'Bait'; //How i define this?

      Players[1].Name       := ''; //Username
      Players[1].Pass       := ''; //Password
      Players[1].Nick       := ''; //3-4 letters of username. e.x sern
      Players[1].Active     :=  True;
      Players[1].Strings1   := 'Net'; //How i define this?

      Writeln('Using ' + IntToStr(HowManyPlayers) + ' Player(s)');
     end;

    If i compile this, i get an 'Unknown Identifier' error, because the Strings1 thing.. I looked it off someone else's script, but, that didnt work

    I want to make the strings1 do this:

    SCAR Code:
    if (FindObj(x, y, 'pot', 15394011, 25)) or FindObj(x, y, 'ishing', 13216659, 25) then
      begin
      if (Players[CurrentPlayer].Strings1 = 'Net') then
      begin
       Mouse(x, y, 5, 5, true);
      end;
      if (Players[CurrentPlayer].Strings1 = 'Bait') then
      begin
       Mouse(x, y, 5, 5, false);
       ChooseOption('Bait');
      end;

    So it knows if it has to just click, or right click>bait.
    It would be even better when i could name it 'Players[CurrentPlayer].Style'
    Instead of 'Players[CurrentPlayer].Strings1'
    Ce ne sont que des gueux


  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    its supposed to be:

    Players[].Strings[0-99]

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Thx so much !

    Btw, soz Narcle for the PM, Jukka was just b4 u :P
    Ce ne sont que des gueux


  4. #4
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    SRL 4 made it so that you have pretty nice amount of space for your integers, booleans, extendeds and strings,

    Players[x].Strings[0-99] := 'A String!';
    Players[x].Integers[0-99] := 100;
    Players[x].Extendeds[0-99] := 100.0;
    Players[x].Booleans[0-99] := True; // True or False ofc...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Outdated]DeclarePlayers with SRL's Playerform
    By Sumilion in forum Outdated Tutorials
    Replies: 27
    Last Post: 05-26-2011, 06:29 AM
  2. DeclarePlayers
    By HairyDuncan2 in forum OSR Help
    Replies: 5
    Last Post: 09-03-2007, 03:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •