Page 11 of 12 FirstFirst ... 9101112 LastLast
Results 251 to 275 of 295

Thread: THE Beginner's Simba Tutorial

  1. #251
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Goatchees View Post
    mHOW long will it take till i can make simba scripts >_> I wanna make a barb agility 9_9, A fisher, TRee chopper and banker 6_6. I understand the loops i mean i cant write them but by reading it I understand everything of the information that you stated.
    Just read up on some tutorials, is varies from person to person. Start small and then learn more and more complicated stuff

  2. #252
    Join Date
    May 2013
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Can a pro make a script that does hunter and alchs while it waits? im talking runescape

  3. #253
    Join Date
    Jun 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Thanks, I found this really helpful!

  4. #254
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by Goatchees View Post
    Can a pro make a script that does hunter and alchs while it waits? im talking runescape
    It would depend on what was being hunted and how dedicated the scripter was.

  5. #255
    Join Date
    Apr 2013
    Location
    United States
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Thank you!! This guide was very helpful to me

  6. #256
    Join Date
    Jun 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I just saw this tutorial and I was wondering if you could re upload the link to the PDF, it would be a lot easier for me if i had the PDF version. If not it's fine.

  7. #257
    Join Date
    Jun 2012
    Posts
    6
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Just read up on some tutorials, is varies from person to person. Start small and then learn more and more complicated stuff
    Hey, I'm kinda new but can understand really well and follow instructions, Basically I am going to write a test script for chopping a magic tree but I have found the Color Tolerance Code unreliable so I have decided to follow your method on creating a new font. I so far just created only two letters from my desired object which is Magic Tree, the two letters I have created are a,g, both lowercase saved with correct numbers according to your chart. Now I was wondering how can I use them now that they are in the folder 'sgUpChars'

  8. #258
    Join Date
    Sep 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Came back to villavu after a while and this tutorial helped me refresh my scripting knowledge
    F2P = F2M

  9. #259
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by azzamate View Post
    Hey, I'm kinda new but can understand really well and follow instructions, Basically I am going to write a test script for chopping a magic tree but I have found the Color Tolerance Code unreliable so I have decided to follow your method on creating a new font. I so far just created only two letters from my desired object which is Magic Tree, the two letters I have created are a,g, both lowercase saved with correct numbers according to your chart. Now I was wondering how can I use them now that they are in the folder 'sgUpChars'
    Sorry for the late response:
    "stringvariable here := GetTextAtExWrap(x1, y1, x2, y2, minspacing, maxspacing, hsspacing, Color, tolerance, 'sgUpChars');"

    for minspacing put 0, and for maxspacing I put 7, and for hsspacing i put 1

    Are you making a font set for silabgarza?

  10. #260
    Join Date
    Jun 2012
    Posts
    6
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Sorry for the late response:
    "stringvariable here := GetTextAtExWrap(x1, y1, x2, y2, minspacing, maxspacing, hsspacing, Color, tolerance, 'sgUpChars');"

    for minspacing put 0, and for maxspacing I put 7, and for hsspacing i put 1

    Are you making a font set for silabgarza?
    Yes I am :P

  11. #261
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by azzamate View Post
    Yes I am :P
    Ok, let me load up the server and see if my font from SS works and if it does I'll upload them here so you can use it (no use in making 60 chars eh?)

    @azzamate Ok here you go this should return the uptext:

    Simba Code:
    function sg_GetUpText(tol:Integer): String;
    Var
      Colors:TIntegerArray;
      i:Integer;
    begin
      // white, blue, yellow, orange, green
     // Colors := [16776960, 16777215, 65535, 4161758, 384517];
     // 20 tol is decent
      Colors := [13948116, 13750794, 645593, 4161758, 384517];
      for i:=0 to high(Colors) do
        Result := Result + GetTextAtExWrap(9, 9, 231, 18, 0, 8, 1, Colors[i], tol, 'SSUpChars');
    end;

    Extract SSUpchars to C:/Simba/fonts

    Example test script:

    Simba Code:
    {$I SRL/SRL.Simba}
    function sg_GetUpText(tol:Integer): String;
    Var
      Colors:TIntegerArray;
      i:Integer;
    begin
      // white, blue, yellow, orange, green
     // Colors := [16776960, 16777215, 65535, 4161758, 384517];
     // 20 tol is decent
      Colors := [13948116, 13750794, 645593, 4161758, 384517];
      for i:=0 to high(Colors) do
        Result := Result + GetTextAtExWrap(9, 9, 231, 18, 0, 8, 1, Colors[i], tol, 'SSUpChars');
    end;

    begin
      ActivateClient;
      wait(1500);
      writeln(sg_getupText(25));
    end.

  12. #262
    Join Date
    Apr 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great guide it's been very helpful getting started, thank you very much

  13. #263
    Join Date
    Jun 2012
    Posts
    6
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Ok, let me load up the server and see if my font from SS works and if it does I'll upload them here so you can use it (no use in making 60 chars eh?)

    @azzamate Ok here you go this should return the uptext:

    Simba Code:
    function sg_GetUpText(tol:Integer): String;
    Var
      Colors:TIntegerArray;
      i:Integer;
    begin
      // white, blue, yellow, orange, green
     // Colors := [16776960, 16777215, 65535, 4161758, 384517];
     // 20 tol is decent
      Colors := [13948116, 13750794, 645593, 4161758, 384517];
      for i:=0 to high(Colors) do
        Result := Result + GetTextAtExWrap(9, 9, 231, 18, 0, 8, 1, Colors[i], tol, 'SSUpChars');
    end;

    Extract SSUpchars to C:/Simba/fonts

    Example test script:

    Simba Code:
    {$I SRL/SRL.Simba}
    function sg_GetUpText(tol:Integer): String;
    Var
      Colors:TIntegerArray;
      i:Integer;
    begin
      // white, blue, yellow, orange, green
     // Colors := [16776960, 16777215, 65535, 4161758, 384517];
     // 20 tol is decent
      Colors := [13948116, 13750794, 645593, 4161758, 384517];
      for i:=0 to high(Colors) do
        Result := Result + GetTextAtExWrap(9, 9, 231, 18, 0, 8, 1, Colors[i], tol, 'SSUpChars');
    end;

    begin
      ActivateClient;
      wait(1500);
      writeln(sg_getupText(25));
    end.

    Where is the link to download your font by the way?

    Edit: Nevermind I just downloaded it from your stall theiver, Whats your username on it maybe I can add you lol

  14. #264
    Join Date
    Aug 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Just finished this beginner's tutorial and it was very insightful. Thank you very much! Will continue on to the Intermediate one.

  15. #265
    Join Date
    Sep 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    It's probably just me but i'm having a hard time learning this.

  16. #266
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by alltehsmallthings View Post
    It's probably just me but i'm having a hard time learning this.
    I had too, had to read this like 3 times before I understand it So keep calm, take breaks. And stay motivated!

    Creds to DannyRS for this wonderful sig!

  17. #267
    Join Date
    Feb 2012
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    Why do I get this error while tryig the 3rd example in beginner's part ("putting it all together")?

    Exception in Script: Duplicate declaration "Exp" at line 6, column 15

    EDIT: It works when I change "Exp" variable to for example "Exps". But why Exp didn't work?

  18. #268
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Nufineek View Post
    Why do I get this error while tryig the 3rd example in beginner's part ("putting it all together")?

    Exception in Script: Duplicate declaration "Exp" at line 6, column 15

    EDIT: It works when I change "Exp" variable to for example "Exps". But why Exp didn't work?
    It looks like exp() has been added to the language since this was written.

    I couldn't find it in the docs but I wrote a program and googled the results.

    It's returning the 'exponential growth' of a number.

    Code:
    program new;
      var i : integer ;
        j : extended;
    begin
    
    for i := 1 to 10 do
      begin
        j := exp(i);
        writeln(j);
      end;
    end.
    Returning:

    Code:
    2.71828182845905
    7.38905609893065
    20.0855369231877
    54.5981500331442
    148.413159102577
    403.428793492735
    1096.63315842846
    2980.95798704173
    8103.08392757538
    22026.4657948067
    Googled:

    http://www.systemdynamics.org/DL-IntroSysDyn/exgr.htm

  19. #269
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Nufineek View Post
    Why do I get this error while tryig the 3rd example in beginner's part ("putting it all together")?

    Exception in Script: Duplicate declaration "Exp" at line 6, column 15

    EDIT: It works when I change "Exp" variable to for example "Exps". But why Exp didn't work?
    Glad you caught this. It indeed wasn't built into Simba when I wrote the guide. I'll fix that right now.

  20. #270
    Join Date
    Jan 2012
    Posts
    85
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Is this updated for SRL 6?
    <3

  21. #271
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Aph0tix View Post
    Is this updated for SRL 6?
    No, it is not; however, there aren't many SRL commands in the guide; it's mostly programming concepts. I will hopefully have time soon to go through and update it for Lape and SRL-6, but I'm not sure if/when that will be.

  22. #272
    Join Date
    Nov 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great guide, will help me in the future!

  23. #273
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    No, it is not; however, there aren't many SRL commands in the guide; it's mostly programming concepts. I will hopefully have time soon to go through and update it for Lape and SRL-6, but I'm not sure if/when that will be.
    Wicked. So no ETA on all of this?

  24. #274
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by tasmania View Post
    Wicked. So no ETA on all of this?
    I have no idea, sorry. I have a lot of real life stuff keeping me busy. I wouldn't expect it anytime soon, unfortunately.

  25. #275
    Join Date
    Jan 2014
    Posts
    58
    Mentioned
    1 Post(s)
    Quoted
    37 Post(s)

    Default

    Huge thanks for this guide. I'd rep you twice if I could.

Page 11 of 12 FirstFirst ... 9101112 LastLast

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
  •