Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
dolarmak

Fishing Script help?

Question

okay so I'm building a fishing script and need a little help.

 

right now the problem is comparing 2 arrays.

 

basically i have @bait_info which holds a list of fish that the bait attracts, and @local_info which has a list of the fish at the location. What I need is for both arrays to be checked and if a fish is in both arrays to be put into a new one @possible_catch.

 

not sure how to do this without 300 lines of code....any suggestions?

 

 

EDIT: Never mind, i found how to do it. it was pretty simple. @pc = @bait & @local. what ever is common in both arrays is put into the new array. Hurray learning!

Edited by dolarmak

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...