Results 1 to 4 of 4

Thread: LF a lil DEMO on proggys

  1. #1
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default LF a lil DEMO on proggys

    First let me start off by saying i just started scripting yesterday stayed up for about 12 hours or so and got my first script done , any help you offer would be very appreciated. I would like permission to use a progress report that someone posts in this thread . I admit I could just open a script and take one, I dont wanna do it that way i would like someone to post one here so I can ask questions on it. Would like to include a description of a few things as well. I know how to add a clock that works i would like an explanation on increments(Inc), and would also like to know if it would be possible to do math in a script then show that number in a proggy, like x being your incremented variable multiplied by a set integer such as 10 then subtracted by another number such as (x-10x).
    So (10x-76x)
    Lastly i would like to know if there is a way to draw on XPGained during the running of the script because I'm doing something that is random in XP, and therefore cant use a base number of Xp like for say chopping a tree.

    I realize this is a ton to ask of someone and not everyone would be inclined to answer I would be eternally grateful and will continue scripting siting your help specifically in my first few works.(I'm making like 600-800k an hour with this first one and don't really want it getting ruined.)

  2. #2
    Join Date
    Feb 2006
    Location
    Aussie
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    For a start, this isn't a tutorial, so this shouldn't be in this section.

    Here is my progress report from my Iron Miner:

    Progress Report:
    Procedure ProgressReport;
    var
      hh, mm, ss: Integer;
    begin
      ConvertTime(TimeFromMark(CharRun), hh, mm, ss);
      Writeln('                                             ');
      Writeln('    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ');
      Writeln('    |J|a|g|e|x|_|F|a|g|e|x| |S|c|r|i|p|t|i|n|g| ');
      Writeln('    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ');
      Writeln('Presents '+SCRIPT_NAME+' v '+SCRIPT_VERSION+'!');
      Writeln('                                             ');
      Writeln(' Total running time - '+TimeRunning);
      Writeln(' Current Player - '+ Players[CurrentPlayer].Name);
      Writeln(' This player running time - '+intToStr(hh)+' Hours, '+intToStr(mm)+' Minutes, '+intToStr(ss)+' Seconds');
      Writeln(' Iron Ore mined - '+intToStr(Players[CurrentPlayer].Integers[8]));
      Writeln(' Total loads complete - '+intToStr(loadsComplete));
      Writeln(' Total Exp gained - '+intToStr(Players[CurrentPlayer].Integers[8]*ironExp));
      Stats_Commit;
    end;


    As you can see, you can easily do maths in it. I use maths to work out EXP gained.

  3. #3
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks alot and i couldnt find the "help section" new to these forums as well

  4. #4
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    193
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Jagex_Fagex View Post
    For a start, this isn't a tutorial, so this shouldn't be in this section.

    Here is my progress report from my Iron Miner:

    Progress Report:
    Procedure ProgressReport;
    var
      hh, mm, ss: Integer;
    begin
      ConvertTime(TimeFromMark(CharRun), hh, mm, ss);
      Writeln('                                             ');
      Writeln('    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ');
      Writeln('    |J|a|g|e|x|_|F|a|g|e|x| |S|c|r|i|p|t|i|n|g| ');
      Writeln('    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ');
      Writeln('Presents '+SCRIPT_NAME+' v '+SCRIPT_VERSION+'!');
      Writeln('                                             ');
      Writeln(' Total running time - '+TimeRunning);
      Writeln(' Current Player - '+ Players[CurrentPlayer].Name);
      Writeln(' This player running time - '+intToStr(hh)+' Hours, '+intToStr(mm)+' Minutes, '+intToStr(ss)+' Seconds');
      Writeln(' Iron Ore mined - '+intToStr(Players[CurrentPlayer].Integers[8]));
      Writeln(' Total loads complete - '+intToStr(loadsComplete));
      Writeln(' Total Exp gained - '+intToStr(Players[CurrentPlayer].Integers[8]*ironExp));
      Stats_Commit;
    end;


    As you can see, you can easily do maths in it. I use maths to work out EXP gained.
    You could do the same thing with this
    Simba Code:
    procedure WritelnEx(str : string);
    begin
      str := Replace(str, '\n', #13#10, [rfReplaceAll]);
      Writeln(str);
    end;

    WritelnEx('lalalalalalaalalaalal\n' +
                 'NEW LINE woot');

    Tons of tuts in here - http://villavu.com/forum/showthread.php?t=76632

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
  •