Results 1 to 12 of 12

Thread: Updating my Guild fisher

  1. #1
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Updating my Guild fisher

    please bear in mind its been a while since i have done anything on scar and on top of that i'm slightly exausted. now back to business. i have this procedure that i'm stuck on.
    SCAR Code:
    Procedure LobsterSpotter;
    begin
      fspot;
      if Players[currentplayer].Strings[1] = 'lobster'
      then begin
             writeln('Looking for Lobster fishing spot');
             if FindFishSpot(x,y,'cage')
             then begin
                    found := true;
                    writeln('Lobster spot found');
             end else begin
                    found := false;
                    writeln('Lobster spot not found');
             end
       else writeln('Skipping  Lobster Spot check');
    end;

    i think all that need doing is sorting out " if then else " , i just cant seem to get my head around it. appriciate any help anyone can offer.

    thanks
    apx900

  2. #2
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    function LobsterSpotter: Boolean;
    begin
      FSpot;
      if Players[CurrentPlayer].Strings[1] = 'lobster' then
      begin
        Writeln('Looking for Lobster fishing spot');
        if FindFishSpot(x , y, 'cage') then
        begin
          Result := True;
          Writeln('Lobster spot found');
        end else
        begin
          Result := False;
          Writeln('Lobster spot not found');
        end;
      end else
        Writeln('Skipping  Lobster Spot check');
    end;
    I fixed up your standards, and turned the procedure into a function to remove the use of the global var "found".

    Your problem was in the first if statement. You had begin .. code .. else. You needed an end else.

  3. #3
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmn ty for that, but i think that need looking again, cause for some reason it skips rignt to
    Writeln('Skipping Lobster Spot check');
    it wont even display the message before that

  4. #4
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
      if Players[CurrentPlayer].Strings[1] = 'lobster'
    Is Player String #1 'lobster' in all lowercase? That would be your problem. Remember the if statement is comparing the values, so they have to be exact.

    You could solve the letter case problem with

    Code:
      if Lowercase(Players[CurrentPlayer].Strings[1]) = 'lobster' then
    If you go back on irc I can help you with any other problems too.

  5. #5
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    way!! ur name will be on the credits. eventually when i release it.

  6. #6
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i need some idea on how i should approach the procedure that deals with going back to the bank from any part of both the docks.

  7. #7
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use the symbols. If you can see the bank symbol click on it.

    If you can see the fishing shop symbol click north of it
    If you can see the summoning recharge thing click west of it

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  8. #8
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good idea roger uk. i was just trying to codethat into a procedure, found a tiny problem tho, there are times when there is not bank, or fishing store symbol on the mini map. anyone fancy making me a procedure that will get me from any part of the docks to the bank?

  9. #9
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by apx900 View Post
    Good idea roger uk. i was just trying to codethat into a procedure, found a tiny problem tho, there are times when there is not bank, or fishing store symbol on the mini map. anyone fancy making me a procedure that will get me from any part of the docks to the bank?
    If you have an account that i can borrow ill have a look for you.

    PM me

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  10. #10
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry dude my only members is my main

  11. #11
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Take several screenshots of when you cant see any symbols

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  12. #12
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

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
  •