Page 1 of 2 12 LastLast
Results 1 to 25 of 32

Thread: Soulsplit Fighter [Beta]

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

    Default Soulsplit Fighter [Beta]

    Soulsplit Fighter [Beta]
    Requested by numerous people




    This script is in BETA mode. The combat detection is a little bit scratchy ATM. So don't cry when it does not detect combat well


    You need my RSPS include from https://github.com/officerBarbrady/srlRSPS

    Use 'old school' graphics on Soulsplit. Your simba interpreter must be set to 'lape'.

    By default it is set up to kill cave crawlers
    Attached Files Attached Files

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

    Default

    nice release!

    just one question, i see you are using this function a lot:
    Simba Code:
    function center(bx: TBox): TPoint;
    begin
      if ((bx.X1 > bx.X2) or (bx.Y1 > bx.Y2)) then
      begin
        if (bx.X1 > bx.X2) then
          Swap(bx.X1, bx.X2);
        if (bx.Y1 > bx.Y2) then
          Swap(bx.Y1, bx.Y2);
      end;
      Result := Point(Round(bx.X1 + ((bx.X2 - bx.X1) div 2)), Round(bx.Y1 + ((bx.Y2 - bx.Y1) div 2)));
    end;

    why dont you include it in your rsps include?

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

    Default

    Quote Originally Posted by hoodz View Post
    nice release!

    just one question, i see you are using this function a lot:
    Simba Code:
    function center(bx: TBox): TPoint;
    begin
      if ((bx.X1 > bx.X2) or (bx.Y1 > bx.Y2)) then
      begin
        if (bx.X1 > bx.X2) then
          Swap(bx.X1, bx.X2);
        if (bx.Y1 > bx.Y2) then
          Swap(bx.Y1, bx.Y2);
      end;
      Result := Point(Round(bx.X1 + ((bx.X2 - bx.X1) div 2)), Round(bx.Y1 + ((bx.Y2 - bx.Y1) div 2)));
    end;

    why dont you include it in your rsps include?
    it's in there under inventory type forgot :s

  4. #4
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Or could just use MiddleBox, which is even faster

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

    Default

    Quote Originally Posted by Olly View Post
    Or could just use MiddleBox, which is even faster
    Yea I have had a habbit of using centerbox because Jani sent to me with explode box in a snippet a long time ago and I used them both ever sense

  6. #6
    Join Date
    Feb 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey thanks for the script, ran it all night at the cave crawlers and worked great. I'm new to the Simba scene and don't fully understand the code yet; if I am trying to change the monster I want it to attack I'm assuming the values I would change would be color,health,uptext, and name. Does anything else have to be modified?

  7. #7
    Join Date
    Jan 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    it's in there under inventory type forgot :s
    hey, im using your script it says this:

    Compiled successfully in 312 ms.
    Successfully executed.
    Compiled successfully in 343 ms.
    Successfully executed.
    Compiled successfully in 312 ms.
    Successfully executed.
    Compiled successfully in 343 ms.
    Successfully executed.

    when i click run it stops after 2-3 secs

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

    Default

    Quote Originally Posted by Spiritkid View Post
    hey, im using your script it says this:

    Compiled successfully in 312 ms.
    Successfully executed.
    Compiled successfully in 343 ms.
    Successfully executed.
    Compiled successfully in 312 ms.
    Successfully executed.
    Compiled successfully in 343 ms.
    Successfully executed.

    when i click run it stops after 2-3 secs
    Did you select the client?

  9. #9
    Join Date
    Jan 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Did you select the client?
    fixed it, had set so "lape", then reload simba,

    but now i have some problems to select other mother like moss giant :P

  10. #10
    Join Date
    Jan 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Did you select the client?
    can you probs. help me what do i need to change when i want fight other monsters?

  11. #11
    Join Date
    Jan 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    "Exception in Script: Don't know which overloaded method to call with params (Int32, AnsiString, function():AnsiString, function():array of record [0]AnsiString; [4]record [0]Int32; [4]Int32; [8]Int32; [12]Int32; end; [20]record [0]Int32; [4]Int32; [8]Int32; [12]Int32; end; end) at line 229, column 6"
    how do i fix this?

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

    Default

    Quote Originally Posted by trashcan View Post
    "Exception in Script: Don't know which overloaded method to call with params (Int32, AnsiString, function():AnsiString, function():array of record [0]AnsiString; [4]record [0]Int32; [4]Int32; [8]Int32; [12]Int32; end; [20]record [0]Int32; [4]Int32; [8]Int32; [12]Int32; end; end) at line 229, column 6"
    how do i fix this?
    Redownload it, uploading a new version that fixed the error (I updated the include and the script got outdated)

  13. #13
    Join Date
    Jun 2013
    Posts
    147
    Mentioned
    2 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by Spiritkid View Post
    can you probs. help me what do i need to change when i want fight other monsters?

    Simba Code:
    procedure _monster.init;
    begin
      with self do
      begin
        color := [9148055];    //change 9148055 to the color of your monster
        tol := [15];
        health := 22;          //input how much health it has
        filter := 130;
        hue := [0.10];
        sat := [0.15];
        uptext := ['ave','rawl','raw'];   //change the ave rawl and raw to the words of your monster, Moss Giant = ['oss', 'iant']
        options := ['ttack','tack'];
        rightClick := true;
        useUptext := true;
        checkCombat := false;
        name := 'Cave crawler';          //change to the name of your monster
      end;
    end;

  14. #14
    Join Date
    Jan 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    thanks for the fix, but after running for 10s, i get this error

    "Uptext [ave, rawl, raw] not found
    Unexpected out of combat"

  15. #15
    Join Date
    Jun 2013
    Posts
    147
    Mentioned
    2 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by trashcan View Post
    thanks for the fix, but after running for 10s, i get this error

    "Uptext [ave, rawl, raw] not found
    Unexpected out of combat"
    Are you using the built in cave crawler colors n stuff, or trying to use your own monster? If you are using your own, be sure to change the uptext to match your monster, and always leave out the first letter. Moss Giant = ['oss', 'iant']

  16. #16
    Join Date
    Jan 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by koryperson View Post
    Are you using the built in cave crawler colors n stuff, or trying to use your own monster? If you are using your own, be sure to change the uptext to match your monster, and always leave out the first letter. Moss Giant = ['oss', 'iant']
    built-in cave crawlers

  17. #17
    Join Date
    Jan 2014
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Is this for the soul split that just came out, or the one that's been out?

  18. #18
    Join Date
    Jun 2013
    Posts
    147
    Mentioned
    2 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by trashcan View Post
    built-in cave crawlers
    Are you using the settings it says to use? OldSchool graphics?

  19. #19
    Join Date
    Jan 2014
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by koryperson View Post
    Are you using the settings it says to use? OldSchool graphics?
    I did everything as instructed.

  20. #20
    Join Date
    Feb 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm getting this error :
    Exception in Script: File "RSPS/srlRSPS.Simba" not found at line 1, column 5
    I think I got to install srlRSPS.simba, but where do I get it and how do I install it?

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

    Default

    Quote Originally Posted by hossie View Post
    I'm getting this error :
    Exception in Script: File "RSPS/srlRSPS.Simba" not found at line 1, column 5
    I think I got to install srlRSPS.simba, but where do I get it and how do I install it?
    Download the .zip from the link, extract it to c:/simba/includes, and then rename 'srlRSPs-master' to 'srlRSPS'

  22. #22
    Join Date
    Jun 2013
    Posts
    147
    Mentioned
    2 Post(s)
    Quoted
    41 Post(s)

    Default

    By the way Brady, what do the functions in your include support? Only 317?

    And if it isn't too much hassle, do you have a small list of the most useful functions in your include as well?

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

    Default

    Quote Originally Posted by koryperson View Post
    By the way Brady, what do the functions in your include support? Only 317?

    And if it isn't too much hassle, do you have a small list of the most useful functions in your include as well?
    Yea I was planning on making a list, the include is rather difficult to use if you are not familar with lape. When I am finished I will be writing a tutorial on how to use it. All of the follows are available for 317 servers:

    Code:
    -317 functions -
    
      chatbox.simba
    
        function _317_getchat(line:integer;colors:tintegerArray):string;
        function _rsps_server.getChatText(line:integer):string;
        function _rsps_server.getChatText:tstringarray; overload;
        function _rsps_server.clickNpcText(text:string):boolean;
    
      inventory.simba
    
        function rsps_inventory.slotFull(slot:Integer):Boolean;
        function rsps_inventory.count:Integer;
        function rsps_inventory.full:Boolean;
        procedure rsps_inventory.interactItem(slot:Integer; Button:Integer);
        function rsps_inventory.searchBitmap(BMPSearch, tol:Integer;click, cont:Boolean):Boolean;
        function rsps_inventory.countBitmap(bmpSearch, tol:Integer):Integer;
        function rsps_inventory.countDTM(DTMSearch:Integer):Integer;
        function rsps_inventory.searchDTM(DTMSearch:Integer;click, cont:Boolean;button:Integer):Boolean;
        function rsps_inventory.searchDTM(DTMSearch:Integer;cont:Boolean;button:Integer):Boolean; overload;
        function rsps_inventory.searchDTM(DTMSearch:Integer;button:Integer):Boolean; overload;
    
      mainscreen.simba
    
        function _rsps_server.findObject(Colors, tols:TintegerArray;hue,sat:TExtendedArray;dist, minLength:integer;uptext:tstringarray;Useuptext,rightClick:boolean):boolean;
        function _rsps_server.findObject(Color, tol:integer;hue,sat:Extended;dist, minLength:integer;uptext:tstringarray;Useuptext,rightClick:boolean):boolean; overload;
        function _rsps_server.findObject(Color, tol:integer;hue,sat:Extended;uptext:tstringarray):boolean; overload;
    
      minimap.simba
    
        function minimap.getText(b:tbox;colors:tintegerArray;font:string):integer;
        function minimap.getHealth:integer;
        function minimap.getPrayer:integer;
        function minimap.getRun:integer;
        function minimap.getCompassRadians:Extended;
        function minimap.GetCompassAngleDegrees:Extended;
        function minimap.getDots(color, tol:integer;hmod, smod:extended):integer;
    
      mouse.simba
    
        procedure mmouse(x, y, rx, ry: integer);
        procedure mmouse(x, y:Integer);overload;
        procedure ClickMouse2(button: variant);
        procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);
        procedure Mouse(mousex, mousey: Integer; button: variant);overload;
        procedure Mouse(mousex, mousey: Integer; button: fnct_actionOptions);overload;
        procedure Mouse(mousex, mousey: Integer)overload;
        procedure MouseBoxEx(x1, y1, x2, y2: Integer; Dist,ClickType: Integer);
    
      text.simba
    
        function _317_getuptext():string;
        function _317_GetChooseOptions(): Array of TOptions;
        function _rsps_server.chooseOptionMulti(Texts: TStringArray; TextType: String; Action: fnct_ActionOptions): Boolean;
        function _rsps_server.chooseOptionMulti(Txt: TStringArray): Boolean; overload;
        function _rsps_server.chooseOption(Txt, TextType: string): Boolean;
        function _rsps_server.chooseOption(Txt: String): Boolean; overload;
        procedure TypeSend(Text: string; PressEnter: Boolean);
        procedure TypeSend(Text: string);overload;
    
      timing.simba
        function _rsps_server.WaitOptionMulti(S: TStringArray; TextType: string; Action: fnct_ActionOptions; Time: Integer): Boolean;
        function _rsps_server.IsUpTextMulti(Text: TStringArray): Boolean;
        function _rsps_server.waitOptionMulti(S: TStringArray; Time: Integer): Boolean; overload;
        function _rsps_server.waitUpTextMulti(S: TStringArray; Time: Integer): Boolean;
        function _rsps_server.IsUpText(UpText: string): Boolean;
        function WaitFunc(Func: function: Boolean; WaitPerLoop, MaxTime: Integer): Boolean;
        procedure markTime(var t:Integer);
        function timeFromMark(i:Integer):Integer;
        function MsToTime(MS, TheType: Integer): string;

  24. #24
    Join Date
    Jun 2013
    Posts
    147
    Mentioned
    2 Post(s)
    Quoted
    41 Post(s)

    Default

    Ahhh thanks for that, although I'm not even near familiar with Lape so I'll just avoid it x)

  25. #25
    Join Date
    Jan 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Hey, I'm new to Simba and all that, and I'm not really sure how to use this script; let alone any scripts. I am using the portable version and when I attempt to run it, I get this error: Exception in Script: Found unexpected token "(", expected "Identifier" at line 11, column 26 in file "C:\testmw\Simba\Includes\RSPS\core\inventory.simb a".
    Any help would be appreciated!

Page 1 of 2 12 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
  •