Jump to content
  • 0
santa12

open blocking of fishing on maps other than m1

Question

hello anyone knows how to block fishing on other maps?

 

Share this post


Link to post

11 answers to this question

Recommended Posts

  • 1
	std::vector<int> fish_map {113,41};
	const auto it = std::find(fish_map.begin(), fish_map.end(), GetMapIndex());
	if (it == fish_map.end())
		return;

 

  • Love 3

Share this post


Link to post
  • 0

You can ask the developer to do a detection script for your fishing rod, or do it in the game source.

Share this post


Link to post
  • 0
11 godzin temu, JisOkay napisał:

 

I have it but I am looking for something else that I used to have but lost

worked the opposite way blocked all maps and typed on which map you can only fish

what you have sent works so that I have to manually lock every map and I don't want to do it anyway

Share this post


Link to post
  • 0

Bro you could just change
 

if (GetMapIndex() != 123)

to

if (GetMapIndex() == 123)

 

the != means all other maps will stop fishing while 123 won't

  • Love 1

Share this post


Link to post
  • 0

do you know how to add?

    if (GetMapIndex() != 1 ||
    GetMapIndex() != 21 ||
    GetMapIndex() != 41)

does not work but if there is one function it works

Share this post


Link to post
  • 0

char.cpp in void CHARACTER::fishing

    if (GetMapIndex() != 7)
    {
        ChatInfo(("xyz")); -- change to your  chat.
        return;
    }

 

Share this post


Link to post
  • 0
11 godzin temu, JarajTo napisał:

char.cpp in void CHARACTER::fishing

    if (GetMapIndex() != 7)
    {
        ChatInfo(("xyz")); -- change to your  chat.
        return;
    }

 

I didn't mean it ... I want to add 3 maps only with number 1/21/41

  • Love 1

Share this post


Link to post
  • 0
4 minuty temu, santa12 napisał:

I didn't mean it ... I want to add 3 maps only with number 1/21/41

Hmm you have autism? This is example which let ppl fishing only on map with index 7, just extend it to 1, 21, 41?

  • Love 1

Share this post


Link to post
  • 0
7 godzin temu, JarajTo napisał:

Hmm you have autism? This is example which let ppl fishing only on map with index 7, just extend it to 1, 21, 41?

Listen, I know that .... But how to add it in one command to have 3 maps and not one omg, I think you have autism

    if (GetMapIndex() != 1 ||
    GetMapIndex() != 21 ||
    GetMapIndex() != 41)

it does not work

if (GetMapIndex() != 1,21,41)  - it doesn't work either

I can't fish on any map at all times

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.