Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Greetings! I've come across a function that I believe would be a valuable addition to any game server. This guide focuses on a fix for the /set alignment command, which ensures players receive the intended alignment rank regardless of their current status.

The Issue at Hand

When a Game Master (GM) uses the command /set playername align 20000, if the player currently has an alignment of, say, -20000, they will not attain the Knight rank as expected. Instead, the command adds 20000 to their existing alignment, resulting in a Neutral rank. This adjustment allows GMs to set a player's alignment directly to the specified value without considering the player's current alignment.

In short, if a player has an alignment of -20000 and you input the command /set playername align 20000, they should receive the Knight rank.

Implementation Steps

To implement this fix, you need to make a small modification in the game source code. Follow the steps below:

  1. Open cmd_gm.cpp: This file contains the command-handling functions for GM commands.

  2. Search for:

     
  • This is the hidden content, please

     

  • Replace it with:

     
  1. This is the hidden content, please

     

This change ensures that the specified alignment value is applied correctly, overriding the player's current alignment.

By following the steps outlined above, you can ensure that GMs have the ability to assign the correct alignment rank to players effectively. This modification enhances the overall functionality of your game server and improves the user experience.

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