Results 1 to 9 of 9

Thread: My First Script

  1. #1
    Join Date
    Aug 2006
    Location
    Alabama, U.S. of A.
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My First Script

    Ok, this is my first script. I would'nt really recomend using it, I don't even think the randoms work on it, but its my first script. After I learn how to make better/working randoms, I'm going to work on a varrock banker, but i also have to learn walking procedures and im having trouble with the radialwalk. Oh well. Here it is. Not expecting progress reports or anything. Tips would be nice.

    Oh and thanks for helping sumilion and ruroken
    I like pie, do you like pie?

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

    Default

    its alright for a first script, dont worry about radialwalk, (iv never had to use that so i dont know ether, shhhh )
    anyway, the randoms are fine since you took them straight from SRL, the only problem is that you dont include mining randoms, try adding something like this
    SCAR Code:
    {.include\srl\srl\skill\mining.scar}

    if(findgas(x,y))then
     runawaydirection('n')

    also look in mining.scar for the pick head finding procedures
    Join the Official SRL IRC channel. Learn how to Here.

  3. #3
    Join Date
    Aug 2006
    Location
    Alabama, U.S. of A.
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks ill do that. So yakman. You dont use radialwalk to walk or you just dont make walking scripts lol
    I like pie, do you like pie?

  4. #4
    Join Date
    Aug 2006
    Location
    Alabama, U.S. of A.
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok this is going to sound REALLY retarded, but i cant compile my own script...it says it cant find the identifier runawaydirection lol i feel so stupid right now..but how do i fix that
    I like pie, do you like pie?

  5. #5
    Join Date
    Sep 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.include SRL\SRL\extended\xMapWalk.scar}
    I'll test your script in a few minutes, I'll tell you my opinion

  6. #6
    Join Date
    Aug 2006
    Location
    Alabama, U.S. of A.
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol i knew it was something stupid like that
    I like pie, do you like pie?

  7. #7
    Join Date
    Sep 2006
    Posts
    62
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm going to test your script after school, I just made a quick look (sorry), some suggestions :

    1-Why not make a premade colour ? It would make it more user-friendly. If you can, add a form for make it really more user-friendly to people that know nothing about the scar scripting.

    SCAR Code:
    const
    // ***************** Colors taken in Very Bright Mode *********************
     Clay    = 4885165;
     Copper  = 4351888;
     Tin     = 8684172;
     Iron    = 2371664;
     Silver  = 10856117;
     Gold    = 3775149;
     Coal    = 2834753;
     Mithril = 7359564;
     Adamant = 6322272;
    // ************************************************************************
     rockcolor = Copper; // What kind of ore do you want to mine ?

    2-Don't forget to use randomwait to make the script less detectable :
    SCAR Code:
    wait(5000+random(500));
    You can also make a rockwait constant, in this, the player can fill the rockwait himself, it would make it more adapted to the player.

    3-Also, you can add findtalk; and findpick; in random verifications . If you add findtalk (two or three times). You'll need to declare the following bitmap and the constant Nickname. Findtalk will check for randoms that talk to him.
    SCAR Code:
    const Nickname = 'wnu' // Type 3-4 letters of your runescape username
    NickNameBmp:=CreateBitmapMaskFromText(Nickname,UpChars);
    For findpick, it find your head pick if lost. You need to add FindPickHeadColor; at your script. You can make that if the script don't find the head color, it terminate the script.
    SCAR Code:
    if not FindPickHeadColor then exit;

    4-Just look at the other script for some ideas, check the SRL include, check the tutorials etc... I'm also a newbie so I think i can't tell you too much things like that because I need me also to learn alot

    It a nice start, hope to see nexts versions of your script

  8. #8
    Join Date
    Aug 2006
    Location
    Alabama, U.S. of A.
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks, ill try to add that stuff, and ive already added more randoms, but after i fix a couple more bugs ill post the updated version. Can anyone tell me how to make it so it clicks more than one rock?
    I like pie, do you like pie?

  9. #9
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Sorry, can't tell, its a secret ( i never made a miner, shhh)

    @bibi, good suggestions, tho i kinda hate most forms, since you have to fill something in over and over again ^^ im soooo lazy
    Administrator's Warning:


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
  •