Jump to content

Costume weapons status bug


Recommended Posts

Hello,

The problem is the game that do not update immediately PART_WEAPON your character.  To fix this problem, do like this:

Open your char.cpp and search:

 

WORD CHARACTER::GetOriginalPart(BYTE bPartPos) const
In the switch case of this function we will return the id of the equipment contained in the PART_WEAPON with a condition to verify that the ID of the equipment is not equal to 0, that is where the problem just mainly.

After any such box below:
 
		case PART_HAIR:
			return GetPart(PART_HAIR);

// Or before
		case PART_ACCE:
			return GetPart(PART_ACCE);

Add this before


default:
return 0;

 

		case PART_WEAPON:
			if (GetWear(WEAR_COSTUME_WEAPON) != 0)
			{
				return GetPart(PART_WEAPON);
			}
			return 0;

Now you can compile it :)

This tutorial has been fixed by @Roxas07.

  • Love 5
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



  • Similar Content

  • Activity

    1. 0

      Target Information System

    2. 1

      Feeding game source to LLM

    3. 2

      anti exp explanation pls

    4. 1

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 0

      [GR2] Positioning an object added with "Attach"

    7. 1417

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

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