What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to check that target is a fish

Status
Not open for further replies.

tictoc

Member
Joined
Sep 21, 2012
Messages
380
Reaction score
5
I wonder how i can check if my current target is a fish.

"isSwim" could also be true for players.
Maybe the "factionId" = 172?

Any hint or idea?
 
I wonder how i can check if my current target is a fish.

"isSwim" could also be true for players.
Maybe the "factionId" = 172?

Any hint or idea?
I didn't check fishes db properties, but in any kind you can do this:

Code:
List<string> fish = new List<string> { "fish1", "fish2", "fish3" };
                if (fish.Contains(me.target.name)) Log("Fish targeted");
 
Last edited:
Yes, thanks. But with this approach i do need to know all fish names, which i don't. This is only meant for some additional safety during automatic target facing within an extra task during sport fishing and i want to keep this check as simple as possible. Isn't there any kind of NPC type fish stuff in AB?
 
Last edited:
Yes, thanks. But with this approach i do need to know all fish names, which i don't. This is only meant for some additional safety during automatic target facing within an extra task during sport fishing and i want to keep this check as simple as possible. Isn't there any kind of NPC type fish stuff in AB?

Only over 10 fish types available for sport fishing in the game.
 
Not even 10, in fact these are all there are:

"Bluefin Tuna" ,"Carp", "Sailfish", "Sturgeon", "Marlin", "Arowana", "Electric Eel"

And Honestly these are enough
"Sailfish", "Marlin"
 
Currently i do use isSwim, but i will keep this possibility in mind if i do get any issues.
 
Status
Not open for further replies.
Back
Top