Results 1 to 10 of 10

Thread: Lot of Questions

  1. #1
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Lot of Questions

    I haven't been on for quite some time, but i feel like making a script again as i just got back into the rs game. I will be making an autofighter for a specific monster as ive found it is probably the best to train on in f2p for any level.

    My questions are (yes, i have alot) :

    What can i use to get the hp of my character?
    What can i use to tell my character to eat when their hp have dropped?
    What is the best method for finding and clicking on a monster?
    How can i find the items the monster has dropped, and then proceed to pick them up?

    Edit:
    how can i get perfect north?

  2. #2
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Function GetMMLevels(LevelType:  String;var ColorSign:  String): integer;
    By: Raymond / Wizzup
    Description:
         Returns the level shown next to the minimap.
         Colorsign returns the color of the text (Green,Yellow,Orange,Red).
         Returns -1 if failed.

    SCAR Code:
    if HPPercent < 50 then
      Eat; //Eating procedure

    For me, T2DPointArrays. Find Object will work good enough for you.

    DTMs might work.

    Impossible to get perfect north through normal means. There's one in the pinball random, but it's rather complicated.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  3. #3
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Lee Lok Hin View Post
    SCAR Code:
    Function GetMMLevels(LevelType:  String;var ColorSign:  String): integer;
    By: Raymond / Wizzup
    Description:
         Returns the level shown next to the minimap.
         Colorsign returns the color of the text (Green,Yellow,Orange,Red).
         Returns -1 if failed.

    SCAR Code:
    if HPPercent < 50 then
      Eat; //Eating procedure

    For me, T2DPointArrays. Find Object will work good enough for you.

    DTMs might work.

    Impossible to get perfect north through normal means. There's one in the pinball random, but it's rather complicated.
    Ok thanks alot, can you explain how i should use the find object?

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You can use reflection to make it a whole lot easier for you
    What can i use to get the hp of my character?
    I'm pretty sure it's HPPercent (Found in GameTab)
    What can i use to tell my character to eat when their hp have dropped?
    If HPPercent = {Value} then {code}
    What is the best method for finding and clicking on a monster?
    FindObjTPA is the best, but FindObj is easy and works good
    How can i find the items the monster has dropped, and then proceed to pick them up?
    This can be done several ways, if it's one item you want, you can make a DTM of it.
    how can i get perfect north?
    MakeCompass('N');
    Hope this helps

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    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
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Gametab.scar
    SCAR Code:
    {*******************************************************************************
    function HpPercent: Integer;
    By: Wizzup?
    Description: Returns Hp left as a percentage.
                 If The HP level is set, it does not switch tabs.
    *******************************************************************************}


    {*******************************************************************************
    Function GetMMLevels(LevelType : String;var ColorSign : String): integer;
    By: Raymond / Wizzup
    Description: Returns the level shown next to the minimap.
    Colorsign returns the color of the text (Green,Yellow,Orange,Red).
    Returns -1 if failed.
    *******************************************************************************}

    to tell your character to eat you can check in inventory for a DTM of a certain food. How to use a DTM

    To find a monster you can either use a function from srl/core/Object.scar or you can make your own monster finder. to make your own i suggest you read up on TPoint Arrays. if you wish to use FindObjTPA i would advise you to go here.

    To find objects dropped you can either use a DTM again or an Object Finder (FindObjTPA).

    For perfect north just do as Camo says,

    MakeCompass('n');

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  6. #6
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    In my honest opinion, I think A first script should always be colour.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  7. #7
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Btw guys wizzups HpPercent uses GetMMLevels so you don't need to use it separately, unless ur looking at run energy or something else.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  8. #8
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    Btw guys wizzups HpPercent uses GetMMLevels so you don't need to use it separately, unless ur looking at run energy or something else.

    GetMMLeveles will give you an exact number (and color), while GetHPPercentage will give him a percetange he might want to use one or the other

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  9. #9
    Join Date
    Aug 2007
    Location
    Vancouver
    Posts
    394
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    So how do i pickup items using dtms? also how can i use dtms on the minimap ex. to click a specific location.

  10. #10
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Dangerous Garden Tools View Post
    So how do i pickup items using dtms? also how can i use dtms on the minimap ex. to click a specific location.
    Add tolerance

    IF FindDTM(x, y, DTM, mmx1, mmy1, mmx2, mmy2)then
    begin
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Few questions.
    By Dervish in forum OSR Help
    Replies: 6
    Last Post: 03-09-2009, 08:43 PM
  2. A few questions
    By RSMacroLegend in forum OSR Help
    Replies: 6
    Last Post: 11-29-2007, 03:23 AM
  3. several questions
    By lnknprkn in forum RuneScape News and General
    Replies: 0
    Last Post: 11-14-2007, 02:37 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
  •