Results 1 to 5 of 5

Thread: im confused...

  1. #1
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default im confused...

    check my last post i have another question.

    well ive been trying to get my script to use the global stats. i have it do everything but it doesnt send the xp gained for some reason. this is what i have in my script to find the xp gained.
    SCAR Code:
    Function exp:integer;
    Begin
      Case LowerCase(Players[CurrentPlayer].String1) Of
        'bronze' :  xp:=91;
        'iron'   :  xp:=12 * CountItemBmpTol(Bar,10);
        'steel'  :  xp:=157;
        'silver' :  xp:=387;
        'gold'   :  xp:=630;
        'mith'   :  xp:=150;
        'addy'   :  xp:=280;
        'rune'   :  xp:=255;
     End;
     Begin
       Result := xp;
       Players[CurrentPlayer].Integer3:=Players[CurrentPlayer].Integer3 + xp;
         begin
           ReportVars[3]:= ReportVars[3] + xp;
         end;
     End;
    End;

    anyone find anything wrong with this or why it wont send the var to global stats?
    also i have like the same thing for bars made and it works.
    SCAR Code:
    Function totalbars:integer;
    begin
      Case LowerCase(Players[CurrentPlayer].String1) Of
        'bronze' :  barsmade:=14;
        'iron'   :  barsmade:=CountItemBmpTol(Bar,10);
        'steel'  :  barsmade:=9;
        'silver' :  barsmade:=28;
        'gold'   :  barsmade:=28;
        'mith'   :  barsmade:=5;
        'addy'   :  barsmade:=4
        'rune'   :  barsmade:=3;
       End;
       Begin
       Result := barsmade;
       end;
         begin
           ReportVars[1] := ReportVars[1] + CountItemBmpMaskTol(BarMask,20,25);
           BarMade:= Players[CurrentPlayer].Integer1 * BarsMade;
         end;
    end;
    im confused...

  2. #2
    Join Date
    Aug 2006
    Location
    London
    Posts
    2,021
    Mentioned
    2 Post(s)
    Quoted
    0 Post(s)

    Default

    the information is sent when you call SRLRandomsReport

    so put that in your progress report procedure and it should send it every time you have a progress report

    also make sure you have SRLId and SRLPassword
    Join the Official SRL IRC channel. Learn how to Here.

  3. #3
    Join Date
    Feb 2006
    Location
    Myrtle Beach, SC USA!
    Posts
    841
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    fakawi noticed earler today there was a typo where i had var4's value twice. i just fixed it so all should be well.

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    why not apply for membership xcanadamanx?
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  5. #5
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks guys.
    Fawaki: a membership for SRL members?i will after i finish my Smelter. but till i smooth out the bugs i will apply.
    Edit: I just checked the stats my xp is now showing THANKS!

    edit: one other thing i have a question for...on our threads for our scripts how do you change the date the script was updated because i have updated my script and i cant find a way to change the date.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Confused
    By massive630 in forum OSR Help
    Replies: 11
    Last Post: 01-19-2009, 11:29 PM
  2. I'm a little confused
    By 499185 in forum SRL Site Discussion
    Replies: 5
    Last Post: 09-21-2007, 04:23 AM
  3. UID.dat .. really confused to what it does :S:S
    By koolkishan in forum News and General
    Replies: 13
    Last Post: 09-07-2007, 08:25 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
  •