Results 1 to 3 of 3

Thread: Working an Inventory Timer

  1. #1
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Working an Inventory Timer

    I'm trying to recognize when it's no longer fishing by a time since the inventory has been + 1. Trying the following code it doesn't always write the line 'caught one!' every time one is caught OR my character stops fishing and it writes it a bunch of 'caught one'. It will click the spot while fishing and no click when not fishing Procedure works prior to adding the repeat and marktimes

    Simba Code:
    Procedure Fishy;
    var
      SeX, SeY, PlusOne, FishCounter: Integer;

    Begin

      PlusOne:= InvCount + 1;

      SeX:= MSCX;
      SeY:= MSCY;
      why  If FindObjCustom(SeX, SeY, ['Cage', 'Fishing'], [7956571, 9998731,9406078], 10) Then
      WriteLn('Found Spot!');
      Begin
      Case Random(2) Of
        0:Mouse(SeX,SeY, 5,5, True);
        1: Begin
             Mouse(SeX,SeY,4,4,False);
             WaitOption('Cage',Randomrange(100,300));
             Wait(300 + Randomrange(300,500));
           End;
       End;
      End;

      Repeat
      wait(1000);
      If InvCount=PlusOne Then
      Begin
       WriteLn('Caught One!');
       MarkTime(FishCounter);
      End;
      Until (TimeFromMark(FishCounter) > 8000);




    End;

  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    You need to do
    PlusOne:= InvCount + 1;
    after writeln "caught one!"

    by catching one you get a new item, right?

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

  3. #3
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by JuKKa View Post
    You need to do
    PlusOne:= InvCount + 1;
    after writeln "caught one!"

    by catching one you get a new item, right?
    Correct! Thank you very much. The very basic cray power fisher script is now complete I wasn't quite sure how to mark inventory over and over but I see now why that spot makes sense.

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
  •