Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

This tutorial provides a comprehensive guide on increasing your chances of fishing success in an online game, covering shellfish, fish, and fish bones. It combines both English and German instructions and has been tested for functionality.

Requirements

To get started, you will need the following files from your server:

  • game/fishing.cpp
  • game/char_item.cpp
  • locale/germany/fishing.txt

Step 1: Modify the Fishing Mechanic

First, let’s update the fishing.cpp file to enhance the fishing experience.

Changing the Success Rate

Search for the function definition:

 
This is the hidden content, please

Replace the entire function with the following code:

 
This is the hidden content, please

This adjustment guarantees you won't experience misses while fishing, effectively setting your success probability to 100%.

Step 2: Implement Drop Mechanics for Fish

Next, we want to modify what fish drop upon capture. Search for the function:

 
This is the hidden content, please

Update it with the following code to enable a 50% chance of receiving either a shell or a fish bone:

 
This is the hidden content, please

This implementation will diversify your fish drops.

Step 3: Configure Available Fish

Now, you need to specify which fish can be caught. Open the fishing.txt file from your server. Here is an example of how your entries should look:

 
This is the hidden content, please

Key Fields Explained:

  • Name: The name or comment for reference.
  • Vnum: The identifier for the fish being caught.
  • DVnum: Identifier for the dead fish version.
  • GVnum: Identifier for the grilled fish.
  • Pr0-3: Represent various chances related to capturing the fish; lower values generally indicate higher probabilities.
  • Df: Likely represents the overall likelihood of catching the fish.
  • TTyp: The type of time assigning difficulty to catch (4 = easiest).

Step 4: Modify Item Drops from Shells

Now, open char_item.cpp and search for:

 
This is the hidden content, please

Replace the entire case block with the following:

 
This is the hidden content, please

This ensures drops from shells are distributed as follows:

  • 50%: Stone fragment
  • 20%: Nothing
  • 14%: White pearl
  • 10%: Blue pearl
  • 8%: Red pearl
This is the hidden content, please

 

By applying these modifications, you can significantly enhance the fishing experience within your game. This guide encapsulates essential game mechanics while ensuring a greater variety in gameplay.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...