Results 1 to 18 of 18

Thread: Unofficial P07 Include Not working?

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

    Default Unofficial P07 Include Not working?

    My script compiles perfectly fine, but some functions in the P07 include don't work.

    I have some ore in my inventory,
    Code:
    writeln(P07_InvCount);
    Just returns 0, even though there's things in my inventory.

    Also
    Code:
    P07_DropAll;
    Does nothing.

    Can someone help?

    Code:
    program EssMiner;
    
    {$I SRL/SRL.Simba}
    {$I P07Include.Simba}
    
    Const
    TITLE    = 'EssMiner'; //Do not change
    AUTHOR   = 'Trixie'; //Do not change
    VERSION  = '1.0a'; //Do not change
    WEILDING = 'True'; //Are you weilding your axe? (true or false only!)
    
    
    var
    WieldAxe:Boolean;
    EssCol1,EssCol2,x,y:Integer;
    
    Procedure SaveColors;
    Begin
    //Change these to 2 colors of essence!
      EssCol1 := 8487307;
      EssCol2 := 8487307;
    End;
    
    Procedure DropEss;
    Begin
      if (WieldAxe = True) then
      Begin
        P07_DropAll;
      End;
      if (WieldAxe = False) then
      Begin
        P07_DropAllExcept([1]);
      End;
      MoveMouse(x ,y);
      ClickMouse(x, y, 1);
    End;
    
    Procedure FindEss;
    begin
      If P07_FindObj(x, y, 'Rune Essence', EssCol1, 25) or
      P07_FindObj(x, y, 'Rune Essence', EssCol2, 25) Then
      Begin
        writeln('we found it');
      End;
    End;
    
    Procedure MineEss;
    begin
    
      if(P07_InvFull = True) Then
      Begin
        DropEss;
      End;
    End;
    
    begin
      x := 304
      y := 89
    
      //You needn't touch this part, it's to check if you are holding your axe or not
      if (StrToBool(WEILDING) = True) then
      Begin
        WieldAxe := True
      End;
    
      if (StrToBool(WEILDING) = False) then
      Begin
        WieldAxe := False
      End;
      //End of axe hold check
    
      //MoveMouse(x, y);
      //Wait(10);
      //ClickMouse(x, y, 1);
    
      Writeln(P07_InvCount);
    
      Repeat
        //MineEss;
      Until(false);
    end.
    (I commented out some lines to find out why it wasn't dropping my items)

    Thanks

  2. #2
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    p07_InvCount returns an integer value so you do..
    writeln(IntToStr(P07_InvCount));

    As for your code..try this.
    You have wieldaxe as global variable and then this weilding thing as a global const so I removed some unnecessaire>>
    Simba Code:
    Const
    WEILDING = 'True'; //Are you weilding your axe? (true or false only!)

    Procedure DropEss;
    Begin
      if Weilding then
      Begin
        P07_DropAll;
      End
      Else
      Begin
        P07_DropAllExcept([1]);
      End;
      MoveMouse(x ,y);
      ClickMouse(x, y, 1);
    End;

    I hope you like - nothing wrong with the include here.

  3. #3
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Runehack123 View Post
    p07_InvCount returns an integer value so you do..
    writeln(IntToStr(P07_InvCount));

    As for your code..try this.
    You have wieldaxe as global variable and then this weilding thing as a global const so I removed some unnecessaire>>
    Simba Code:
    Const
    WEILDING = 'True'; //Are you weilding your axe? (true or false only!)

    Procedure DropEss;
    Begin
      if Weilding then
      Begin
        P07_DropAll;
      End
      Else
      Begin
        P07_DropAllExcept([1]);
      End;
      MoveMouse(x ,y);
      ClickMouse(x, y, 1);
    End;

    I hope you like - nothing wrong with the include here.
    I have this code now
    Code:
    Writeln(IntToStr(P07_InvCount));
    It still returns 0 even though I have items in my inventory.

  4. #4
    Join Date
    Oct 2006
    Posts
    206
    Mentioned
    2 Post(s)
    Quoted
    45 Post(s)

    Default

    are you sure that you are seeing the inventory? (i.e. tab 4 selected?)

  5. #5
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Eduard View Post
    are you sure that you are seeing the inventory? (i.e. tab 4 selected?)
    Yeah my inventory is open

  6. #6
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    What about the other part? Is that working for you at least?
    Maybe you don't have client selected or something or are not including 07 lib properly.
    Be sure to put $i .. 07 etc.. at the top and SetUp07 etc.. at the start.

  7. #7
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Run this, see what it prints out?

    Simba Code:
    program new;

    {$I Srl/Srl.Simba}
    {$I P07Include.Simba}

    begin
      SetupP07Include;
      ActivateClient;
      Writeline(IntToStr(P07_InvCount));
    end;


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  8. #8
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Run this, see what it prints out?

    Simba Code:
    program new;

    {$I Srl/Srl.Simba}
    {$I P07Include.Simba}

    begin
      SetupP07Include;
      ActivateClient;
      Writeline(IntToStr(P07_InvCount));
    end;
    I had 1 thing in my inventory and it printed out what it should
    Code:
    Compiled successfully in 421 ms.
    Checking P07Include VersionNumber
    Local : 1.7 / Latest : 1.7
    You Have The Latest Version of P07Include
    1
    Successfully executed.
    Why didn't it work on my script?

  9. #9
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    No SetupP07Include; at the start?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  10. #10
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    No SetupP07Include; at the start?
    I've just read the code you posted, I added that in.

    It tells me that it needs a new version and I should restart my script. It's not starting at all now

    Code:
    Compiled successfully in 405 ms.
    Checking P07Include VersionNumber
    Local : 1.6 / Latest : 1.7
    New P07Include Version Available! Updating...
    New P07Include Version Downloaded Please Restart Your Script!
    Successfully executed.

  11. #11
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Dvsdvl View Post
    I've just read the code you posted, I added that in.

    It tells me that it needs a new version and I should restart my script. It's not starting at all now

    Code:
    Compiled successfully in 405 ms.
    Checking P07Include VersionNumber
    Local : 1.6 / Latest : 1.7
    New P07Include Version Available! Updating...
    New P07Include Version Downloaded Please Restart Your Script!
    Successfully executed.
    You have a second P07Include somewhere within your simba folder somewhere (maybe in scripts ?), you need to find and delete it

    Alternatively delete all versions of it, and re-download from my thread


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  12. #12
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    You have a second P07Include somewhere within your simba folder somewhere (maybe in scripts ?), you need to find and delete it

    Alternatively delete all versions of it, and re-download from my thread
    I deleted it and downloaded a new one off your thread and I still get the
    Code:
    Checking P07Include VersionNumber
    Local : 1.6 / Latest : 1.7
    New P07Include Version Available! Updating...
    New P07Include Version Downloaded Please Restart Your Script!
    Successfully executed.
    Message :/

  13. #13
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Search your simba folder for P07Include, delete all appearances of it, re-download, try again?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  14. #14
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Search your simba folder for P07Include, delete all appearances of it, re-download, try again?
    Thanks, that worked ^-^

  15. #15
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Dvsdvl View Post
    Thanks, that worked ^-^
    Great


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  16. #16
    Join Date
    Mar 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    please help!!! I am so desperate to try a bot...
    I keep getting this error with any script i try and use.. Quite disappointed right now. Could use assistance

    Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Users\Tricksta\Downloads\DannyRS-BGA-V1.1 (1).simba'

  17. #17
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by jman22son View Post
    please help!!! I am so desperate to try a bot...
    I keep getting this error with any script i try and use.. Quite disappointed right now. Could use assistance

    Exception in Script: Unable to find file 'SRL/SRL.Simba' used from 'C:\Users\Tricksta\Downloads\DannyRS-BGA-V1.1 (1).simba'
    That's for main runescape only, not 07, and you need to watch the Simba setup video

    http://villavu.com/forum/showthread.php?t=47714


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  18. #18
    Join Date
    Jan 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    How do i get this setup as a user? "Exception in Script: Unable to find file 'P07Inculude.Simba' used from 'C:\Simba\Scripts\P07_GnomeAgilityBeta2.6.simba'" is all i get

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
  •