Results 1 to 7 of 7

Thread: exp till getter

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default exp till getter

    is there a code that will go and get the xp left till my players next mining lvl out there

  2. #2
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    SCAR Code:
    XPTillNextLevel(Level: String);


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

    Default

    for mining specifically though, it'd be XPTillNextLevel('mining');

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Code:
    procedure Proggy;
    begin
      WriteLn('             _____  ______')
      WriteLn('            |     ||      \')
      WriteLn('            |     ||      |')
      WriteLn('            |     ||   ___/')
      WriteLn('           /_____/ |__|   ')
      writeLn('____________________________________________')
      writeln('Script has been running for ' +TimeRunning);
      Players[CurrentPlayer].Integers[3] := GetSkillInfo('mining', False);
      WriteLn('your mining lvl is ' + IntToStr(Players[CurrentPlayer].integers[3]));
      WriteLn('exp to next lvl is '+ XPTillNextLevel('Mining': String); <----------error line
      WriteLn('Player '+ Players[CurrentPlayer].Nick);
      WriteLn('loads done '+ IntToStr(g));
      WriteLn('primary ores mined ' + IntToStr(u));
      WriteLn('secondary ores mined ' + IntToStr(l));
      WriteLn('gems dropped ' + IntToStr(f));
      writeLn('plz post the proggie here http://www.villavu.com/forum/showthr...565#post542565');
    end;
    wut am i doing wrong i get this error


    Line 366: [Error] (17710:56): comma (',') expected in script



    btw the diagram thing looks a lot better in scar then on here

  5. #5
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Remove the part that says : String after 'Mining'. You don't add that when you're passing arguments to functions, only when declaring them.
    :-)

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

    Default

    haha I showed you how to use it, I put it right in my post how to add it into a script using the mining skill, but nice try anyway, soon you'll learn what to put in the parenthesis even when it's your first time looking at a procedure/function. Goodluck scripting and if you need anymore help PM me or another scripter.

    By the way, pretty nice looking proggy

  7. #7
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    got it i just had to make it an integer like the mining lvl ty all so much

    next thing wrong with my script then it pretty good for now


    for auto responding in smart do i just use the normal type send or do i have to use a special one
    Last edited by JPHamlett; 04-09-2009 at 03:25 AM.

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
  •