Calculate L and R for Custom Gloves in Kapocha Effects

Started by Jacamo, Aug 03, 2024, 12:35 AM

Jacamo

🔧 Calculate L and R for Custom Gloves in Kapocha Effects 🔧



Hello everyone!

I'm reaching out to see if anyone can provide a guide or explanation on how to calculate the L and R indices for RF Gloves in MuOnline using Kapocha effects. These indices come by default with specific values, and I'll use the DarkAngel Claws as an example:

You require the following to view this post content:
  • You must thank this post to see the content.


Here's a breakdown of what these numbers mean:

- 0 80 34 0: This line includes the item index 80 and the effect index 34.
- 407 34 and 408 34: These lines represent the L and R indices, respectively.

However, I'm puzzled by the formula or method used to calculate 407 and 408 (the L and R indices). On the server side in my item.txt and on the client side in Item_spn.bmd, I have the DarkAngel Claw listed under index 54 instead of 80. If I simply change 80 to 54, the effect doesn't display correctly, and the claws aren't rendered properly.

Here's what I understand and where I need help:

  • The L and R indices (407 and 408) seem to depend on the original item index, but the exact relationship isn't clear.
  • Changing the item index alone doesn't seem to resolve the issue of applying the correct Kapocha effects.
  • Without the correct L and R indices, the custom effects either don't display or cause graphical glitches.

Questions:

1. What is the formula or calculation used to derive the L and R indices from the item index?
2. Is there a specific relationship between the original item index and the calculated L and R indices?
3. Are there any tools or methods that can assist in converting these indices when customizing items?



Example: DarkAngel Claws

To illustrate, let's consider the default settings for the DarkAngel Claws:

You require the following to view this post content:
  • You must thank this post to see the content.


If my server-side index is 54, how do I adjust the L and R indices to match this change?

I'm seeking detailed guidance or a tutorial that can assist in understanding and correctly setting these indices for custom gloves. Any advice, tools, or explanations would be greatly appreciated.



Additional Information on Custom Glove Indexing

Here's some additional insight into how you might handle custom glove indexing:

1. **Using the Correct Item Index:**

  - When working with customgloves.txt, make sure to use the correct item index from your files. If your item uses index 54 instead of 80, update it accordingly.

  - For example, replace 80 with 54 in your configurations. This is the first step in ensuring that the item renders correctly in the game.

2. **Adjusting L and R with Louis Files:**

  - If you are using Louis files, the L and R indices you place may require adjustment. Louis files often use high indices, so you need to adjust these indices by subtracting 1171.

  - **Example:** If your current index in customgloves.txt is 1500, subtract 1171 to get 329. This adjusted value should be used in the Kapo.dll configuration for the effects to work correctly.

  - This adjustment is crucial to align with the high index setup, allowing the Kapocha effects to function properly with the modified indices.



By applying these adjustments, you can better integrate custom items like gloves and claws within MuOnline. Please share any insights or corrections if you have experience with these configurations.

Thank you in advance for your help!


Best regards, 
Jacamo


Powered by SMFPacks Ads Manager Mod