WhatsApp Discord
Colocar Custom Flag Con un item - Source Mu - Mu Server Files
 

Noticias:

SMF - Just Installed!

Menú principal

Colocar Custom Flag Con un item

Publicado por Dakosmu, Oct 31, 2023, 04:20 AM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Dakosmu

Colocar Custom Flag Con un item



User.cpp

[hide login=1 thanked=1]SetOp((LPVOID)0x00588511, (LPVOID)User::HoolCreateManyFlay, ASM::CALL);

bool User::UseHasMagicRing()
{
   DWORD  pCharData = *(DWORD*)MAIN_CHARACTER_STRUCT;
   if (pCharData)
   {
      for (size_t i = 0; i < 2; i++)
      {
            ObjectItem2* VuKhiRong = (ObjectItem2*)GetCharacterItem(i);
            if (VuKhiRong->ItemID == ITEM(0, 51)
               || VuKhiRong->ItemID == ITEM(0, 53)
               || VuKhiRong->ItemID == ITEM(0, 106)
               || VuKhiRong->ItemID == ITEM(2, 25)
               || VuKhiRong->ItemID == ITEM(4, 30)
               || VuKhiRong->ItemID == ITEM(4, 33)
               || VuKhiRong->ItemID == ITEM(5, 49)
               || VuKhiRong->ItemID == ITEM(5, 50))
            {
               return true;
            }
      }
   }
   return false;
}
bool User::CreateManyFlag(ObjectPreview * pChar)
{
   if (!pChar->Unknown764 && (pChar == (ObjectPreview *)*(DWORD*)MAIN_VIEWPORT_STRUCT && UseHasMagicRing() || PlayerHasManyFlag(pChar->aIndex)))
   {
      void* pMem = ((void*(__cdecl*)(int))(0x9D00C5))(668);
      pChar->Unknown764 = (DWORD)((void*(__thiscall*)(void *this1, int modeType, int ParentBoneIndex, bool bFllowParentRotate, float ox, float oy, float oz, float rx, float ry, float rz))(0x4EFFF0))
         (
         pMem, 348, 20, 0, -45.0, -5.0, -0.0, 0.0, 0.0, 1);
      return true;
   }

   return false;
}
void User::HoolCreateManyFlay(ObjectPreview*  pChar)
{
   User::CreateManyFlag(pChar);
   ((void(__cdecl*)(ObjectPreview*))(0x4EF9A0))(pChar);
}
[/hide]


User.h

[hide login=1 thanked=1]   
static bool UseHasMagicRing();
static bool CreateManyFlag(ObjectPreview * pChar);
static void __cdecl HoolCreateManyFlay(ObjectPreview * pChar);
[/hide]


Creditos
mediodas20


Bon Dia

spartacus


DjGamers


core22


Jhon2030


core22


core22


core22


spartacus


vietbangnl93


ThedevI2025

Praise for sharing and God bless!
I wish those who share a lifetime of happiness!

ThedevI2025

Praise for sharing and God bless!
I wish those who share a lifetime of happiness!

🡱 🡳
Real Time Web Analytics