Results 1 to 6 of 6

Thread: [RSPS] RSPS include bank.simba error

  1. #1
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Question [RSPS] RSPS include bank.simba error

    i got the rsps include but i got an error in bank.simba
    Code:
    Exception in Script: Unknown declaration "upCharsEx" at line 20, column 57 in file "C:\Program Files (x86)\Simba\Includes\RSPS\core\bank.simba"
    this is bank.simba
    Code:
    {$include_once interface.simba}
    //{$include_once misc/datatypes/string.simba}
    {$include_once RSPS/misc/datatypes/string.Simba}
    
    (*
      File name: Bank.simba
      Description: Bank functions
      Authors: Officer Barbrady
    *)
    
    
    
    (*
      Author: Officer Barbrady
      Description: Returns true if finds bank text
    *)
    
    function _724_BankScreen: Boolean;
    begin
      exit(findTextTPA(4106994, 20, 20, 22, 400, 45, 'ank', upCharsEx, nothing));
    end;
    
    (*
      Author: Officer Barbrady
      Description: Returns true if interface text contains ank of
    *)
    
    function _317_bankScreen:boolean;
    var
      f:string;
    begin
      f := _317_getInterfaceName();
      result := (f.contains('ank of'));
    end;
    
    (*
      Author: Officer Barbrady
      Description: Closes bank, just calls closeInterface called close bank
      for naming purposes (and old timers)
    *)
    
    procedure _317_closeBank();
    begin
      _317_closeInterface();
    end;

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

    Default

    Can you show me a picture of your fonts folder @xX4m4zingXx;

  3. #3
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default


  4. #4
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    wow it now just works but it attacks a monster and then it sees that the thing changes and then it just stops the script
    this is my code right now:
    Code:
    Program AttachMonster;
    {$I RSPS/srlRSPS.Simba}
    function differentCount(time:integer): Boolean;
    var
    _white_count:integer;
    begin
      _white_count := countColorTolerance(16646143, 429, 80, 516, 95, 5);
      Wait(time);
      result := (_white_count <> countColorTolerance(16646143, 429, 80, 516, 95, 5));
    end;
    
    function inCombat:boolean;
    begin
      result := differentCount(3300);
    end;
    
    Procedure AttackMonster
    var
      X,Y:Integer;
    begin
      if FindColorTolerance (X, Y, 10337744, 44, 91, 556, 425, 2) then
      begin
      MouseSpeed := 15;
      Mouse(x, y);
      end
    else
      begin
      writeln('Couldnt find any monsters')
      end;
    end;
    begin
      while (not inCombat()) do
        AttackMonster;
    end.

  5. #5
    Join Date
    Jul 2013
    Location
    An horse
    Posts
    300
    Mentioned
    9 Post(s)
    Quoted
    120 Post(s)

    Default

    Put the while loop in a repeat loop.

    Simba Code:
    begin
      repeat
        while not inCombat() do
          attackMonster();
      until(false);
    end.

    E: You may want to put a small wait in there so the game has time to show that it is in combat.
    Last edited by Foundry; 03-29-2014 at 09:01 PM.
    Currently lurking while messing around with dll injection. Will continue contributing after I finish my quest.

  6. #6
    Join Date
    Jul 2013
    Posts
    45
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    Ok, ty that works.
    but now i want to add something whole new.
    i want it that it drinks potions.
    do i do that with color finding or something like the same as incombat thing in my script?

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
  •