Jump to content

How to change the fishing system?


Recommended Posts

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
 

 

  • Metin2 Dev 1
Link to comment
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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