Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: [Main 5.2] Icon Skill Position | Pegasus  (Visto 680 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Zytrous Posteado: November 28, 2025, 10:43:23 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 26
  • Gracias recibida: 1334
  • ph

🎯 FIX: ICON SKILL POSITION 🎯
Corrected Skill Icon Rendering and Position Display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📋 Description:
This fix resolves issues with skill icon positioning and rendering in the skill list window. It properly handles pet commands and regular skills, preventing display errors and missing icons.

✨ Features:
- Correct Icon Positioning - Skills display in proper slots
- Pet Command Support - Handles pet skills separately from hero skills
- MuHelper Compatibility - Works correctly with MuHelper system
- Validation Fix - Proper skill type checking before rendering
- Crash Prevention - Prevents errors from invalid skill references

🎯 What This Fixes:
- Skill icons appearing in wrong positions
- Missing skill icons in skill list
- Pet command skills not displaying correctly
- MuHelper skill icon issues
- Crashes from invalid skill type validation

💻 The Problem:
The original code validated skills before checking if they were pet commands, causing pet skills to fail validation and not display properly. This fix reorders the logic to handle pet commands correctly.


(Preview of corrected skill icon positions)

🔒 SOURCE CODE (Reply/Like to Unlock)
Spoiler for Hiden:
COMPATIBLE WITH PUBLIC RELEASE

⚠️ IMPORTANT: Backup your files before making any changes!

📄 File: NewUIMainFrameWindow.cpp

Find:
Code: [Select]
void SEASON3B::CNewUISkillList::RenderSkillIcon(int iIndex, float x, float y, float width, float height, int TypeMuHelper)

Locate this section:


Replace with:



━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📝 What Changed:

Before:
1. Gets skill type
2. Validates ALL skills (including pet commands) - ❌ FAILS for pet commands
3. Sets pet command skill type
4. Returns invalid skills

After:
1. Gets skill type
2. Checks if it's a pet command FIRST
3. Sets appropriate skill type based on command type
4. Returns if skill is 0 (empty)
5. Only validates hero skills, skips validation for pet commands ✅

🔍 Technical Explanation:

The key issue was that `gSkillManager.FindHeroSkill()` was being called on pet commands before they were properly identified. Pet commands have indices >= `AT_PET_COMMAND_DEFAULT` and don't exist in the hero skill list, so the validation would fail.

The fix:
- First checks if the index is a pet command
- Separates validation logic for hero skills vs pet commands
- Only validates hero skills through the skill manager
- Allows pet commands to bypass hero skill validation

✅ Testing:
After implementation, verify the following:
1. Open your skill window [K]
2. Check that all skill icons display in correct positions
3. Test with pet commands (if you have them)
4. Use skills with MuHelper active
5. Verify no crashes occur when switching skills
6. Check that empty skill slots display correctly

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💬 Benefits:

✅ Proper Icon Display - All skills show in correct positions
✅ Pet Command Support - Pet skills work correctly
✅ Crash Prevention - No more errors from invalid validation
✅ MuHelper Compatible - Works seamlessly with automation

This is a critical fix for proper skill display functionality!

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✅ This fix is provided FREE to the community

Use it, test it, improve your client with it. Real developers share solutions.

💬 Support:
If you encounter any issues or need help with implementation, feel free to contact us.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💻 CUSTOM CODING SERVICES AVAILABLE
We offer coding projects of any kind, any time!
Need custom features, systems, or modifications? Contact us for professional MU development services.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📞 Contact Us
Zytrous: Discord: Zytrous#2671 | WhatsApp | Facebook
Phanh: Discord: phanhxinh_97 | discord.gg/mupegasus


"Quality fixes for quality clients. That's what we do."
- Zytrous & Phanh | PegasusXElev8Games Team




Offline phuongcuongmsqm #1 Posteado: November 28, 2025, 07:45:07 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 105
  • Gracias recibida: 30
  • vn

Offline bigrealtk92 #2 Posteado: November 28, 2025, 09:59:39 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 86
  • Gracias recibida: 22
  • vn

Offline nhantac #3 Posteado: November 28, 2025, 10:05:55 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 92
  • Gracias recibida: 143
  • vn
Press 'Z' crashed main

WORD bySkillType = (TypeMuHelper == 1) ? iIndex : CharacterAttribute->Skill[iIndex];

    if (bySkillType >= AT_PET_COMMAND_DEFAULT && bySkillType < AT_PET_COMMAND_END)
    {

        goto Jump;
    }

    if (bySkillType == 0 || !gSkillManager.FindHeroSkill((ActionSkillType)bySkillType))
    {
        return;
    }
Jump:
    if (iIndex >= AT_PET_COMMAND_DEFAULT)
    {
        bySkillType = iIndex;
    }

Gracias:


Offline bigrealtk92 #4 Posteado: November 28, 2025, 10:13:12 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 86
  • Gracias recibida: 22
  • vn
Press 'Z' crashed main

WORD bySkillType = (TypeMuHelper == 1) ? iIndex : CharacterAttribute->Skill[iIndex];

    if (bySkillType >= AT_PET_COMMAND_DEFAULT && bySkillType < AT_PET_COMMAND_END)
    {

        goto Jump;
    }

    if (bySkillType == 0 || !gSkillManager.FindHeroSkill((ActionSkillType)bySkillType))
    {
        return;
    }
Jump:
    if (iIndex >= AT_PET_COMMAND_DEFAULT)
    {
        bySkillType = iIndex;
    }
cảm ơn bạn, còn trong ô skill buff nếu đang auto mà bấm Z nó cũng mất đó, bạn fixx được không? và các vũ khí rồng nếu có dòng exl thì nó lại ra màu xanh


Offline zhangjianle865 #5 Posteado: November 29, 2025, 07:25:42 AM | Modificado: November 29, 2025, 07:59:52 AM by zhangjianle865

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 159
  • Gracias recibida: 277
  • ca

https://imgbox.com/CaT1l47X
This fix has two problems: First, it displays a black border in the BUFF skill bar on the assistant's configuration page; second, it makes it difficult for DL ​​to move the character when the assistant is running. :'( :'(


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
27 Replies
10594 Views
Last post September 11, 2022, 05:40:13 PM
by Djassar
1 Replies
674 Views
Last post May 07, 2023, 07:12:23 AM
by kkristan
5 Replies
1085 Views
Last post November 23, 2025, 12:39:03 AM
by Zytrous
8 Replies
1234 Views
Last post November 25, 2025, 07:12:05 PM
by Evangelio
4 Replies
965 Views
Last post November 24, 2025, 10:49:14 AM
by z0lik