Page 69 of 117 FirstFirst ... 1959676869707179 ... LastLast
Results 1,701 to 1,725 of 2916

Thread: [AeroLib] HoodzFighter

  1. #1701
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Sk1nyNerd View Post
    heres a loot items thing i made a couple weeks ago. LootListIDs is the array of ids we are looking for and LootListName is the corresponding name to that id. idk if this helps or not
    Simba Code:
    function LootItems: Boolean;
    var
      i, j, k: integer;
      LootLocation: Tpoint;
      AvailableLoots: TGroundItemArray;
    begin
      Result := False;

      AvailableLoots := R_GetGroundItemsDistance(10);

      for i := 0 to High(AvailableLoots) do
      begin
        for j := 0 to High(LootListIDs) do
        begin
          if (AvailableLoots[i].ID = LootListIDs[j]) then
          begin
            for k := 0 to High(LootListNames) do
            begin
              LootLocation := R_TileToMS(AvailableLoots[i].Tile);
              MMouse(LootLocation.x, LootLocation.y, 2, 2);
              HumanWait;
              if (R_IsUpText(LootListNames[k])) then
              begin
                ClickMouse2(mouse_left);
                Result := True;
              end else
              begin
                ClickMouse2(mouse_right);
                R_WaitChooseOption('Take ' + LootListNames[k], 350);
                R_ChooseOption('Take ' + LootListNames[k]);
                Result := True;
              end;
            end;
          end else
            Exit;
        end;
      end;

    end;
    Thanks but i already finished it

  2. #1702
    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Error] C:\Simba\Includes\SRL-OSR\SRL\misc\SmartParams.Simba(76:20): Unknown identifier 'SmartGetAvailablePID' at line 76
    Compiling failed.
    Seem to get this every time any idea why or how to fix? Always seems to be due to smart releted graphics such as the )SMART_drawtext command and what not

  3. #1703
    Join Date
    Mar 2014
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Hey Hoodz, I would LOVE to see guthan support on this script You think that is possible?

    I really like this script thank you so much for it.

  4. #1704
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by pascal20 View Post
    Hey Hoodz, I would LOVE to see guthan support on this script You think that is possible?

    I really like this script thank you so much for it.
    im close to perfect this script, but i want to make a better in combat function for the reflection version.

  5. #1705
    Join Date
    Mar 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It didn“t worked, if i try to start there comes:

    Exception in Script: Duplicate declaration "status" at line 15, column 16

  6. #1706
    Join Date
    Aug 2012
    Location
    The Dark Tower
    Posts
    154
    Mentioned
    5 Post(s)
    Quoted
    56 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    im close to perfect this script, but i want to make a better in combat function for the reflection version.
    What exactly are you having problems with for the reflection in-combat function?

  7. #1707
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    im close to perfect this script, but i want to make a better in combat function for the reflection version.
    mines a little something like this if it helps

    Simba Code:
    function AttackTheMonster: Boolean;
    var
      TheMonster: TNPC;
      MonsterLocation : Tpoint;
      CurrentCompassAngle: Extended;
    begin
      Result := False;
      CurrentCompassAngle := rs_GetCompassAngleDegrees;

      if R_FindNpc(AttackMonster, TheMonster) then
      begin
        if ((TheMonster.InCombat) or (R_InFight) or (R_IsAnimating)) then
          Exit;

        //if (sqrt(sqr(MonsterLocation.x + StartingTile.x) + sqr(MonsterLocation.y + StartingTile.y)) > SearchRadius) then
         // Exit;

        MonsterLocation := TheMonster.Tile;
        MonsterLocation := R_TileToMs(TileLocation);

        if (MonsterLocation := (-1,-1) then
        begin
          TileLocation := R_TiletoMM(MonsterLocation);
          R_BlindWalk(TileLocation);
          FFlag(2);
          wait(50 + random (100, 300));
          Exit;
        end;

        //SMART_DrawDotsEx(True, [MonsterLocation], clGreen);
        MMouse(MonsterLocation.x, MonsterLocation.y, 0, 0);

        if (R_WaitUpText(['Attack', AttackMonster], 350)) then
        begin
          if(R_IsUpTextMulti(['Attack', AttackMonster]))  then
          begin
            case random(10) of
              0..5: ClickMouse2(mouse_left);
              6..9: begin
                      ClickMouse2(mouse_right);
                      HumanWait;
                      if R_OptionExists('Attack') then
                        R_ChooseOption('Attack') else
                        begin
                          R_WaitChooseOption('Cancel',750);
                          wait(500 + random(250));
                          Exit;
                        end;
                    end;
            end;
            FFlag(0);
            wait(1500 + random(250,750);
          end;
        end; (*else
        begin
          MakeCompass(CurrentCompassAngle + randomrange(45,70));
          Exit;
        end;*)


        if (R_InFight) then
        begin
          Result := True;
          while (TheMonster.HitPoints > 0) do
          begin
            EatFood;
          end;
        end;
          Exit;
      end;

    end;

    edit: AttackMonster is the Global Constant the user defines and the CurrentCompassAngle is used to rotate the camera incase theres a tree or something between the player and the monster when it moves the mouse

    edit2: if your having troubles with it trying to click another monster while it just clicked one monster its cause the R_InFight doesnt indicate ur in a fight until you have a splash on the monster i believe, i think elfyyy said the R_InFight was updated in a recent update but i havent checked if this issue was fixed

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  8. #1708
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Hoenu Hoenu View Post
    It didn“t worked, if i try to start there comes:

    Exception in Script: Duplicate declaration "status" at line 15, column 16
    in simba... Script -> Interpreter -> PascalScript.

  9. #1709
    Join Date
    Dec 2013
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    28 Post(s)

    Default

    i am pretty sure it is me , but i am killing chickens right now and i have the feeling it takes way to long till he attacks t a new one...so sometimes it takes up to 30 secs till he attacks a new chicken

  10. #1710
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by gawain View Post
    i am pretty sure it is me , but i am killing chickens right now and i have the feeling it takes way to long till he attacks t a new one...so sometimes it takes up to 30 secs till he attacks a new chicken
    what version are you using?

  11. #1711
    Join Date
    Dec 2013
    Posts
    74
    Mentioned
    1 Post(s)
    Quoted
    28 Post(s)

    Default

    what version do you mean?
    your script smart or what?
    i use HoodzFighter_osr-srl17

    EDIT: i have 2.5 lol

  12. #1712
    Join Date
    Dec 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice script, well done

  13. #1713
    Join Date
    Jan 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Any particular reason mine would be saying "searching monsters" then "no monsters found - moving camera" continously even though there are monsters all around me?

    Edit: My mistake, forgot I had to change monster colours.

    Edit 2: Got it now, working great. Is there any up to date Anti-randoms code that does them?

  14. #1714
    Join Date
    Mar 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Everytime I try to use the bot it never fights the monster but only says "searching for monsters-moving camera angle" Any help?

  15. #1715
    Join Date
    Mar 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Warning! You passed a wrong ys to a finder function: -4. That is below 0, thus out of bounds. Setting the value to 0 for now.
    any idea why?

  16. #1716
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by poop123456 View Post
    Warning! You passed a wrong ys to a finder function: -4. That is below 0, thus out of bounds. Setting the value to 0 for now.
    any idea why?
    just ignore

  17. #1717
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    uploaded the newest color version. should be way better!

    reflection version coming soon (bank support) same as thread cleanup

  18. #1718
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    uploaded the newest color version. should be way better!

    reflection version coming soon (bank support) same as thread cleanup
    Congrats on the re-release. :P Good work man.
    Solar from RiD.

  19. #1719
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Solar View Post
    Congrats on the re-release. :P Good work man.
    wait until you see the reflection version

  20. #1720
    Join Date
    Apr 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Exception in Script: Unknown declaration "HowManyPlayers" at line 40, column 3

    How to fix?

  21. #1721
    Join Date
    May 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Hoodz, I don't know if I am just stupid but, when I start the script no window or RS page pops up like it used to when I used it ages ago, is this normal? At the bottom is says seaching for monster and stuff even if I gave false loggin details to check if it worked, so I'm a bit confused right now haha.

    -Eggy

  22. #1722
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by eggyd View Post
    Hoodz, I don't know if I am just stupid but, when I start the script no window or RS page pops up like it used to when I used it ages ago, is this normal? At the bottom is says seaching for monster and stuff even if I gave false loggin details to check if it worked, so I'm a bit confused right now haha.

    -Eggy
    read line 2 in the script


    --------------------------------------------------------------------------------------------------------------------


    other great news! - almost ready to release the newest reflection version, but before i release it i want to add some preset locations (with banking!). so please post some places you want with banking!

  23. #1723
    Join Date
    Apr 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    your script is dope dude, thanks a lot. looking forward to any future updates! if I could suggest just one thing - if there are no monsters around it should rotate the camera instead of just turn it 180 degrees, say you are in the experiments in the back or anywhere for that matter it will only stick with 1 spawn rather then 2 because it cant find the other npcs. but this script is awesome!

  24. #1724
    Join Date
    Sep 2008
    Posts
    754
    Mentioned
    8 Post(s)
    Quoted
    275 Post(s)

    Default

    Will it support guthan ?
    Quit gaming

  25. #1725
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by samerdl View Post
    Will it support guthan ?
    if i can lend a guthan set, then yes

Page 69 of 117 FirstFirst ... 1959676869707179 ... LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •