Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

How to change the fishing system?


4peppe

Question

Hi, I need to modify the fishing system, exactly I would like to know how to insert the items I want and modify their percentage of being caught, the only thing I know is a change to do to the fishing.txt file. Looking at my sources and my file, I came to this conclusion: 

Spoiler

case 0: strlcpy(fish_info[idx].name, szCol, sizeof(fish_info[idx].name)); break;
                    case 1: str_to_number(fish_info[idx].vnum, szCol); break;
                    case 2: str_to_number(fish_info[idx].dead_vnum, szCol); break;
                    case 3: str_to_number(fish_info[idx].grill_vnum, szCol); break;
                    case 4: str_to_number(fish_info[idx].prob[0], szCol); break;
                    case 5: str_to_number(fish_info[idx].prob[1], szCol); break;
                    case 6: str_to_number(fish_info[idx].prob[2], szCol); break;
                    case 7: str_to_number(fish_info[idx].prob[3], szCol); break;
                    case 8: str_to_number(fish_info[idx].difficulty, szCol); break;
                    case 9: str_to_number(fish_info[idx].time_type, szCol); break;
                    case 10: str_to_number(fish_info[idx].length_range[0], szCol); break;
                    case 11: str_to_number(fish_info[idx].length_range[1], szCol); break;
                    case 12: str_to_number(fish_info[idx].length_range[2], szCol); break;

and so I tried to insert a sword + 9 with 100% chance, only this modification doesn't work! Here's what I did:
 

Spoiler

# À̸§    ¾ÆÅÛ¹øÈ£    Á×Àº¹øÈ£    ±¸¿î¹øÈ£    È®·ü Å×ÀÌºí                ³­À̵µ    ½Ã°£À¯Çü    ±æÀÌÃÖ¼Ò    ±æÀÌÃÖ´ë    ¿ùôÃÖ´ë    USED0    USED1    USED2    USED3    USED4    USED5    USED6    USED7    USED8    USED9
Prova    19    0    0    100    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
 

 

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

You can close, in order to add items to the fishing system you must first go to src / game / src and modify the fishing.cpp file, go to line 108, select a facsimile and copy it by modifying the vnum of the item, example: 

Spoiler

{ "붕어",    27803, 27833, 27863, { 2100, 1500,  100 },   13, FISHING_LIMIT_NONE,    {  0,   0,   0}, FISHING_TIME_EASY,   {1000,2500,2800},
       {USED_NONE, USED_SHELLFISH, USED_NONE, USED_NONE, USED_WATER_STONE, USED_TREASURE_MAP, USED_EARTHWARM, USED_NONE,USED_NONE,  USED_NONE } },

in

Spoiler

{ _YOUR NAME",    YOUR VALUE, 0, 0, { 2100, 1500,  100 },   13, FISHING_LIMIT_NONE,    {  0,   0,   0}, FISHING_TIME_EASY,   {1000,2500,2800},
       {USED_NONE, USED_SHELLFISH, USED_NONE, USED_NONE, USED_WATER_STONE, USED_TREASURE_MAP, USED_EARTHWARM, USED_NONE,USED_NONE,  USED_NONE } },
       

after go in the file fishing.txt and add a line after this
 

Spoiler

±Ý¿­¼è    50008    0    0    0    0    100    50    100    0    0    0    0    0    0    0    0    0    0    0    0    0    0
 

Using a facsimile like:
 

Spoiler

YOUR NAME   YOUR VALUE    0    0    0    0    100    50    100    0    0    0    0    0    0    0    0    0    0    0    0    0    0
 

Now, following this table
 

Spoiler

case 0: strlcpy(fish_info[idx].name, szCol, sizeof(fish_info[idx].name)); break;
                    case 1: str_to_number(fish_info[idx].vnum, szCol); break;
                    case 2: str_to_number(fish_info[idx].dead_vnum, szCol); break;
                    case 3: str_to_number(fish_info[idx].grill_vnum, szCol); break;
                    case 4: str_to_number(fish_info[idx].prob[0], szCol); break;
                    case 5: str_to_number(fish_info[idx].prob[1], szCol); break;
                    case 6: str_to_number(fish_info[idx].prob[2], szCol); break;
                    case 7: str_to_number(fish_info[idx].prob[3], szCol); break;
                    case 8: str_to_number(fish_info[idx].difficulty, szCol); break;
                    case 9: str_to_number(fish_info[idx].time_type, szCol); break;
                    case 10: str_to_number(fish_info[idx].length_range[0], szCol); break;
                    case 11: str_to_number(fish_info[idx].length_range[1], szCol); break;
                    case 12: str_to_number(fish_info[idx].length_range[2], szCol); break;

Edit this, with prob max 10000 and - DIFFICULTY + EASILY

Spoiler

YOUR NAME   YOUR VALUE    0    0    PROB0 PROB1  PROB2  PROB3   DIFFICULTY    0    0    0    0    0    0    0    0    0    0    0    0    0    0

 

Link to comment
Share on other sites

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


  • Activity

    1. 2

      Where are those maps/dungeons coming from?

    2. 3

      Press F10 to close the client immediately

    3. 2

      Where are those maps/dungeons coming from?

    4. 2

      Where are those maps/dungeons coming from?

    5. 4

      Visual studio 2022 compiling issue

    6. 1

      Count players function

    7. 64
    8. 1

      Costume shining/costume effect system

  • Recently Browsing

    • 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.