Page 3 of 4 FirstFirst 1234 LastLast
Results 51 to 75 of 95

Thread: [Aerolib] Creating your first script

  1. #51
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Quote Originally Posted by psrkallez06 View Post
    You are the best!! Worked perfectly!

    I had one more question which confuses me. I want a similar function to the GetInvCount but instead i want it to show the Current player health.

    The closest i got was in the folder: SRL-OSR. i found this:

    Code:
    function GetCurrentHealth: Integer;
    var
      tpa : TPointArray;
    begin
      tpa    := returnTPAExceptColors([4938344, 0], [20, 0], intToBox(522,56,541,69));
      result := strToIntDef(getTextATPA(clusterTPAEx(tpa,1,10), 5, 'StatChars07'), 0);
    end;
    But i have no idea how to actually use this to get it to show my health. Can you help? Thank you once again!
    You can search the function list on the left side of simba, use keywords to try and find what you're looking for. For example in this case "Health" will show a function "getCurrentHealth". Essentially the same one you found the in OSR include but updated to work. This function is used the same way as getInvCount, in that it will return a integer of the current health value. So you can do Variable := getCurrentHealth; or Writeln(getCurrentHealth); and so on..

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  2. #52
    Join Date
    Apr 2017
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Nice thank you. The weird thing is that even tho i have 10 HP, Simba shows the value 0..

    d9f99503add2e91429176571e6fbcf77.png

  3. #53
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    Quote Originally Posted by psrkallez06 View Post
    Nice thank you. The weird thing is that even tho i have 10 HP, Simba shows the value 0..

    d9f99503add2e91429176571e6fbcf77.png
    Have you properly targetted the client, have your brightness highest and using the official minimap orbs?

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  4. #54
    Join Date
    Apr 2017
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Have you properly targetted the client: yes
    have your brightness highest: yes

    and using the official minimap orbs = what do you mean by that?

    Thanks!

  5. #55
    Join Date
    Dec 2011
    Posts
    193
    Mentioned
    5 Post(s)
    Quoted
    51 Post(s)

    Default

    The round orbs next to the minimap that tells your health, prayer and run. Are you using the ones by Jagex or ones made by 3rd party client? Or none at all?

    OSRS Color Scripts: Borland_Salamanders | Borland_Iron_Ores
    Utilities & Snippets: [Color] OSBuddy Item Looting

  6. #56
    Join Date
    Apr 2017
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Oh i see, I'm uting the dreambot client (using a proxy while i try out my scripts)

  7. #57
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by psrkallez06 View Post
    Oh i see, I'm uting the dreambot client (using a proxy while i try out my scripts)
    To get your current health without switching tabs, go to: Simba\Includes\AeroLib\core\minimap\Orbs.simba

    Look for the function: GetCurrentHealth and GetHealthPercent. Both are quite useful. Make sure there are no other overlays on your screen from other clients.

  8. #58
    Join Date
    Sep 2014
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Trying to get back into the game - thank you for this

  9. #59
    Join Date
    Jul 2017
    Posts
    21
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Looks like I'm a little late to this but hopefully some people will still help me out
    I'm just trying to run the script and i'm getting a couple of declaration errors; Terminatereason and currenttask. This is what I wrote.

    program new;
    //{$DEFINE SMART}
    {$i AeroLib/AeroLib.Simba}

    var
    TinRock: TMSObject;

    Procedure PlayerSetup;
    begin
    Me.Active := True;
    Me.Name := '';
    Me.Pass := '';
    Me.Member := False;

    TinRock.create('Mine Rocks', ['ine rocks', 'Mine', 'rock', 'ine r'], [createCol(5395291, 15, 0.13, 0.07)], 59, 0, 0, 0);
    end;

    Procedure FindRock
    var
    pnt:tpoint;
    begin
    if TinRock.Find(pnt) then
    FastClick(Mouse_Left);
    end;

    Procedure MainLoop;
    begin
    if not isLoggedIn then
    TerminateReason('Not logged in.');
    case CurrentTask of
    MINEORE: FindRock();
    end;
    end;

    begin
    initAL;
    PlayerSetup;
    repeat
    MainLoop;
    Until(False);
    end.

    And here is what the debugger says;

    Error: Unknown declaration "TerminateReason" at line 35
    Compiling failed.
    Error: Unknown declaration "CurrentTask" at line 28
    Compiling failed.
    Error: Unknown declaration "TerminateReason" at line 29
    Compiling failed.

    Help would be appreciated thanks!

  10. #60
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by jokerface25 View Post
    Looks like I'm a little late to this but hopefully some people will still help me out
    I'm just trying to run the script and i'm getting a couple of declaration errors; Terminatereason and currenttask. This is what I wrote.

    program new;
    //{$DEFINE SMART}
    {$i AeroLib/AeroLib.Simba}

    var
    TinRock: TMSObject;

    Procedure PlayerSetup;
    begin
    Me.Active := True;
    Me.Name := '';
    Me.Pass := '';
    Me.Member := False;

    TinRock.create('Mine Rocks', ['ine rocks', 'Mine', 'rock', 'ine r'], [createCol(5395291, 15, 0.13, 0.07)], 59, 0, 0, 0);
    end;

    Procedure FindRock
    var
    pnt:tpoint;
    begin
    if TinRock.Find(pnt) then
    FastClick(Mouse_Left);
    end;

    Procedure MainLoop;
    begin
    if not isLoggedIn then
    TerminateReason('Not logged in.');
    case CurrentTask of
    MINEORE: FindRock();
    end;
    end;

    begin
    initAL;
    PlayerSetup;
    repeat
    MainLoop;
    Until(False);
    end.

    And here is what the debugger says;

    Error: Unknown declaration "TerminateReason" at line 35
    Compiling failed.
    Error: Unknown declaration "CurrentTask" at line 28
    Compiling failed.
    Error: Unknown declaration "TerminateReason" at line 29
    Compiling failed.

    Help would be appreciated thanks!
    Yep that was my bad.

    TerminateReason is a custom function I made.

    You can either add the following block to your script:
    Simba Code:
    Function TerminateReason(TReason: string): boolean;
    begin
      AddReport('Terminated Script: ' +TReason, True);
      TerminateScript;
    end;

    so it looks like:
    Simba Code:
    program new;
    //{$DEFINE SMART}
    {$i AeroLib/AeroLib.Simba}

    var
    TinRock: TMSObject;

    Procedure PlayerSetup;
    begin
      Me.Active := True;
      Me.Name := '';
      Me.Pass := '';
      Me.Member := False;

      TinRock.create('Mine Rocks', ['ine rocks', 'Mine', 'rock', 'ine r'], [createCol(5395291, 15, 0.13, 0.07)], 59, 0, 0, 0);
    end;

    Function TerminateReason(TReason: string): boolean;
    begin
      AddReport('Terminated Script: ' +TReason, True);
      TerminateScript;
    end;

    Procedure FindRock
    var
      pnt:tpoint;
    begin
      if TinRock.Find(pnt) then
        FastClick(Mouse_Left);
    end;

    Procedure MainLoop;
    begin
      if not isLoggedIn then
        TerminateReason('Not logged in.');
      case CurrentTask of
        MINEORE: FindRock();
      end;
    end;

    begin
      initAL;
      PlayerSetup;
      repeat
        MainLoop;
      Until(False);
    end.

    or change

    Simba Code:
    TerminateReason('Not logged in.');
    to
    Simba Code:
    TerminateScript;

  11. #61
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Thanks for the help. Really good for a beginner like myself. With this script it seems though the mouse goes to the exact same spot each time on the ore(Checked the coords and they're always the same). How can I vary my script to make the click box bigger?

  12. #62
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by hash1mate View Post
    Thanks for the help. Really good for a beginner like myself. With this script it seems though the mouse goes to the exact same spot each time on the ore(Checked the coords and they're always the same). How can I vary my script to make the click box bigger?
    Yeah there isn't really any way to do that with this particular method of object finding. The TMSObject.Find function moves the mouse for you, using a MissMouse function, and has the random x,y set to 0 by default.

    The other method we could use is TMSObject.FindAll. This finds all of the objects and sorts them from a specific point (usually the center of the screen).

    Here is the method for that. I have added comments to help you understand what has been done. Let me know if you have any questions

    Simba Code:
    Procedure FindRock;
    var
      pnt:tpoint;
      RockPoints: TPointArray; //Required to store all of the points of objects that we find.
      TempBox: TBox;
      i:integer; //Required to loop through the rock like objects that we find.
    begin
      Antiban();
      if (GetInvCount = 28) then
      begin
        CurrentTask := DROPORE;
        Exit;
      end;
      if TinRock.findAll(10, MSCP, RockPoints) then //Finds every object that matches the specifications of our TMSObject (in this case Tin Rock).
      begin
        for i := 0 to high(RockPoints) do //Now that we have found at least 1 rock in our array, we need to loop through and make sure they are really rocks. 0 is always the first point, then high is the last slot of the array.
        begin
          MissMouse(RockPoints[i], 5, 5); //We move our mouse to the point with a 5x and 5y variance of the point. The RockPoints[i] is the point in the array that we are accessing. If it was the first slot in the array, i=0, if it was the second slot, i=1 etc.
          if WaitUpTextMulti(['Mine', 'rock', 'ne roc'], 500) then //Checks to see if the uptext is what we want.
          begin
            FastClick(MOUSE_LEFT); //if upetxt is valid, we click.
            break; //since the uptext is valid, we break the for..to..do loop.
          end;
        end;
      end;
      TempBox := ToBox(pnt.X -5, pnt.y -5, pnt.x +5, pnt.y +5);
      if ColorGone(RockCol, TempBox, 10000) then
        Exit;
    end;

  13. #63
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Thanks for the comments you put in. In creating an actual powermining script would you need to add some randomness to the dropping action like wait a random amount after each drop action? Or is MissMouse good enough for this? To not get banned of course. Thanks.

  14. #64
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    It depends on your own play style.

    If you are a fast clicker, then you won't need to limit the speed with a delay. I wouldn't use missmouse for the drop function personally. It would be better to do the drop with shift drop, interacting with each slot individually. This tutorial was made before shift drop was a thing.

    Simba Code:
    Procedure DropInv;
    var
      i, SSlot: integer;
    begin
      if PickInv then
        SSlot := 2
      else
        SSlot := 1;
      if GameTab(TAB_INV) then
      begin
        KeyDown(32); // Press and holds down the shift key.
        for i := SSlot to 28 do
        begin
          if itemInSlot(i) then
            MouseBox(InvBox(i), MOUSE_LEFT); // Clicks the slot that has ore in it. The shift key is still held down.
        end;
        KeyUp(32); // Unpresses the shift key.
      end;
      Antiban();
      CurrentTask := MINEORE;
    end;

    This is going to go left to right from top to bottom, which isn't the most efficient way.
    Another way to do this is to create our own path.

    Simba Code:
    Procedure DropInv;
    var
      i: integer;
      DropArray: TIntegerArray;
    begin
      if PickInv then
        DropArray := [5, 9, 13, 17, 21, 25, 26, 22, 18, 14, 10, 6, 2, 3, 7, 11, 15, 19, 23, 27, 28, 24, 20, 16, 12, 8, 4] //Is the inventory going down then up from the 5th slot.
      else
        DropArray := [1, 5, 9, 13, 17, 21, 25, 26, 22, 18, 14, 10, 6, 2, 3, 7, 11, 15, 19, 23, 27, 28, 24, 20, 16, 12, 8, 4]; //Is the inventory going down then up from the 1st slot.
      if GameTab(TAB_INV) then
      begin
        KeyDown(32); // Press and holds down the shift key.
        for i := low(DropArray) to high(DropArray) do //low(DropArray) is the lowest part of our array (in this case 1 or 5). high(DropArray) is the highest part of our array (in this case 4).
        begin
          if itemInSlot(DropArray[i]) then //DropArray[i] is the value of the integer. If we were 6 numbers into our array, i would be 6, but DropArray[i] would be 25 or 21, depending on the DropArray we use.
            MouseBox(InvBox(DropArray[i]), MOUSE_LEFT); // Clicks the slot that has ore in it. The shift key is still held down.
        end;
        KeyUp(32); // Unpresses the shift key.
      end;
      Antiban();
      CurrentTask := MINEORE;
    end;

  15. #65
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    I appreciate the examples. I'm still unfamiliar with a lot of the different types. I'm trying to dissect your code to create my own simple prayer pot sipper script. Would 'MouseBox(InvBox' and any other code you've used above be good for this? I've created a DTM already. It's similar in the sense that i'd need the mouse to traverse through the whole inventory. Thanks a lot.

  16. #66
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by hash1mate View Post
    I appreciate the examples. I'm still unfamiliar with a lot of the different types. I'm trying to dissect your code to create my own simple prayer pot sipper script. Would 'MouseBox(InvBox' and any other code you've used above be good for this? I've created a DTM already. It's similar in the sense that i'd need the mouse to traverse through the whole inventory. Thanks a lot.
    I would highly recommend looking at my other tutorial. It features information about inventory items and how to create and interact with them.

    Mousebox is a function built into aerolib that will click a random part of a tbox. InvBox gets the tbox parameters of the inventory slot. You can see how this fits together.

    Look at the other tutorial about interacting with your inventory and then feel free to come back to me with any questions

  17. #67
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    That's actually the guide I was using to get my DTM, really helped. I'll drop you a pm once I've read more. Do you happen to know the type to use in order to detect current prayer points? Can't seem to find it anywhere. Thanks.
    Last edited by hash1mate; 08-08-2017 at 08:15 PM.

  18. #68
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by hash1mate View Post
    That's actually the guide I was using to get my DTM, really helped. I'll drop you a pm once I've read more. Do you happen to know the type to use in order to detect current prayer points? Can't seem to find it anywhere. Thanks.
    Yeah you can find it in ...Simba\Includes\AeroLib\core\minimap\orbs.simba

    The function for it is:
    Simba Code:
    function getPrayerPoints(): Integer;
    So you would use it with a variable to store the integer value, or use it directly in a statement like:
    Simba Code:
    if (getPrayerPoints < 10) then

  19. #69
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Quote Originally Posted by Dan the man View Post
    Yeah you can find it in ...Simba\Includes\AeroLib\core\minimap\orbs.simba

    The function for it is:
    Simba Code:
    function getPrayerPoints(): Integer;
    So you would use it with a variable to store the integer value, or use it directly in a statement like:
    Simba Code:
    if (getPrayerPoints < 10) then
    Thanks. Any way I could contact you directly? I don't have post count yet to pm.

  20. #70
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by hash1mate View Post
    Thanks. Any way I could contact you directly? I don't have post count yet to pm.
    You could jump on the Villavu Discord https://discordapp.com/invite/6P9rfpB
    I am on discord most nights, but if I am not there, then the other guys can certainly give you a hand.

    Otherwise feel free to keep posting on this thread

  21. #71
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Quote Originally Posted by Dan the man View Post
    You could jump on the Villavu Discord https://discordapp.com/invite/6P9rfpB
    I am on discord most nights, but if I am not there, then the other guys can certainly give you a hand.

    Otherwise feel free to keep posting on this thread
    Yeah. It's pretty quiet on there atm. I just need some help tidying up this script. https://pastebin.com/raw/M29RRMEE. It's a simple nmz ppot and overload sipper. Borrowed some code from a similar script, the comments at the top are what I need to finish and possibly some more. If you could look when you've got time i'd appreciate it. Thanks.

  22. #72
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by hash1mate View Post
    Yeah. It's pretty quiet on there atm. I just need some help tidying up this script. https://pastebin.com/raw/M29RRMEE. It's a simple nmz ppot and overload sipper. Borrowed some code from a similar script, the comments at the top are what I need to finish and possibly some more. If you could look when you've got time i'd appreciate it. Thanks.
    Ok I have had a squiz through the script. Is a good start, but it seems like you have taken a lot of useless fat from the other script that is not necessary at all.

    I would recommend starting from the ground up, look at the core fundamentals of what you want to do, then expand from there.

    For example:

    Code:
    Create items.
    Input user settings.
    Repeat
      Check prayer pots
      Check Overload pots
      Antiban
      MouseOffScreen
    Until script is ended.
    Anyway, I have commented on the code.

    Simba Code:
    program CombatJackSucks
    {$i AeroLib/AeroLib.Simba}
    //if overload runs out, sip overload after 5min + random(100,1000)
    //fix prayerpot sipping
    //mouse off screen antiban

    var
      aFound: Extended;
      item_overload: TItem;
      item_PrayerPot: TItem;
      obj_prayericon : TItem;
      item_Absorb : TItem;
      item_cake : TItem;
      minimap : TBox;
      invbox1 : TBox;
      phealth : Integer;
      absorbtimer, OverloadTime, PointsToSipAt: Integer;
      OverloadTimer:Timer;
      UseOverloads: boolean;

    procedure PlayerSetup; //Put your user settings here.
    begin
      {* User Overload potions? *}
      UseOverloads := true;

      {* How many remaining prayer points before we drink a potion? *}
      PointsToSipAt := 10;
    end;


    procedure startafk;
    begin;
      if UseOverloads then // Did our user opt to use Overload potions?
        if (OverloadTimer.TimeElapsed > OverloadTime) then // Yes they did, so lets check the timer against our next sip timer.
          DrinkOverload; // Ok we have exceeded 5-5.5 min so its time to sip.
      if (getPrayerPoints =< PointsToSipAt) then // Are our prayer points equal to or less than the User designated amount?
        PrayerPot; // Yes they are, so lets sip a potion.
      MMouseOffClient('Left'); //We are done with inputting stuff for this loop, time to move the mouse off of the client.
    end;


    procedure drinkoverload;
    var
      pnt : TPoint;
      x ,y : Integer;
    begin
      writeln('Drinking overload');
        if item_overload.findIn(invbox1,pnt) then
        begin
          humanMMouse(pnt,2,2);
          wait(50+random(20));
          ClickMouse(x,y,mouse_Left); //A better function to use would be FastClick(MOUSE_LEFT);
          wait(100+random(20));       // Alternatively you can simply use Item_Overload.Interact(MOUSE_LEFT); This will move the mouse to the item and left click on it for you.
          OverloadTimer.start();
          OverloadTime := randomrange(300000, 330000);
        end;
    end;

    procedure createItems;
    begin
      item_overload.Name := 'Overload';
      obj_prayericon.Name := 'prayer';
      item_cake.Name := 'Dwarven rock cake';
      item_absorb.Name := 'Absorb';
      item_PrayerPot.Name := 'Prayer Potion';
      item_overload.DTM:= DTMFromString('mggAAAHicY2NgYLjGwsBwF4jPA/FFIL4DpauYGBiKgLgEiAuAuA6KBfn4gLoYMTAXA3aAqRKCIQAAaUMIOQ==');
      obj_prayericon.DTM := DTMFromString('mbQAAAHicY2VgYMhnYWAoAeJUIE6Hsi8wMjCcAOKTQHwZitds3sCgKWfL4G6SxWCuEcggL6HPIALUj44ZsWAwAAAq6QtA');
      item_cake.DTM := DTMFromString('mbQAAAHicY2VgYHBiYmAwB2J3ILYFYm8gfgEUfwPEH4D4DhA/AuLSbH8gyYiCFRkwASMWDAYAMLoHMw==');
      item_absorb.DTM := DTMFromString('mbQAAAHicY2VgYHBiYmDwAmJLILYBYjcgFmVkYOAHYj4g5gBidiBev2s/UDUjClYEkuiYEQsGAwA64wRz');
      item_PrayerPot.DTM:= DTMFromString('mggAAAHicY2NgYNgJxFuBeAMQHwbiPVCxCiBOA+JCIC6FsuOB2GJXF5BkwsAiDNgBIw4MAQBduwiG');;
    end;



    procedure PrayerPot;
    var
      pnt : TPoint;
      x ,y : Integer;

    begin
    if (getPrayerPoints < random(10, 20)) then
    writeln('Drinking Prayer Pot');
        if item_PrayerPot.findIn(invbox1,pnt) then
        begin
          humanMMouse(pnt,2,2);
          wait(50+random(20));
          ClickMouse(x,y,mouse_Left); //A better function to use would be FastClick(MOUSE_LEFT);
          wait(100+random(20));
        end;
    end;

    procedure UnloadDTMs; //This unloads DTMs from memory. Very important step. Whenever you create a DTM, you must unload it when the script finishes.
    begin
      FreeDTM(item_overload.DTM);
      FreeDTM(obj_prayericon.DTM);
      FreeDTM(item_cake.DTM);
      FreeDTM(item_absorb.DTM);
      FreeDTM(item_PrayerPot.DTM);
    end;

    procedure mainLoop;
    begin;
      startafk; // Since we called repeat below, this procedure will keep looping over and over again until we call for it to stop.
    end

    begin
      initAL;
      minimap := ToBox(500, 91, 600, 130); //There is a default parameters in Aerolib for this (Area_MM or MMX1, MMY1, MMX2, MMY2).
      invbox1 := ToBox(550, 208, 735, 465); //There is also a default parameter for this (Area_Inv or MIX1, MIY1, MIX2, MIY2).
      createitems; // We want to create our items before main loop.
      AddOnTerminate('UnloadDTMs'); //This is very important when working with DTMs. This will run the procedure "UnloadDTMs" when the script is told to terminate.
      PlayerSetup; // We want to setup our user settings and items before we get to our mainloop, so its all ready to go.
      mouseSpeed := Random(15, 30);  // Not required with Aerolibs mouse movements.
      repeat // Keeps our main loop repeating instead of terminating after 1 loop.
        mainLoop;
      until(false); //Will never stop repeating unless we call to terminate the script manually (terminateScript;).
    end;

  23. #73
    Join Date
    Aug 2017
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Honestly, can't thank you enough for the time you're spending to help and The comments are extremely helpful too. I've made ammends, just one q.
    ' if (getPrayerPoints =< PointsToSipAt) then '
    this line kept saying invalid expression and i changed it to just < with no equal and it compiled ok. What's the reason for this?
    Do you think this script is completely OK to use on an rs account? Would you add anything yourself? I'm not a fan of a ton of antibans, a ton of other bot scripters have told me it actually has the opposite effect.
    Last edited by hash1mate; 08-09-2017 at 08:28 AM.

  24. #74
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    There is a lot of stuff that should be removed from it.

    I would personally start from scratch, work out what U want it to do, and build those features in yourself so you know it's going to work.

    Ie you have a heap of DTMs that aren't being used (rock cake, absorb pot etc).

    Also the =< symbole was my bad. It should have been <=


    = means equal to.
    > means greater than.
    < means less than.
    <= means less than or equal to.
    >= means greater than or equal to.

    Always happy to help out someone who wants to learn

  25. #75
    Join Date
    Aug 2017
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Thanks for the guide appropriate it

Page 3 of 4 FirstFirst 1234 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
  •