Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: 5.2Pega Background: Some casting skills played standing animations while mounted  (Visto 507 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline 121931868 Posteado: December 05, 2025, 10:18:23 AM | Modificado: December 07, 2025, 03:48:43 AM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 5
  • Gracias recibida: 8
修复内容:在 SetPlayerMagic 增加黑暗战马分支,施法时走骑乘施法动作

- Fix: Added a Dark Horse branch in SetPlayerMagic to use mounted casting animations
Code: [Select]
1、ZzzCharacter.cpp
2、void SetPlayerMagic(CHARACTER* c)
替换成
void SetPlayerMagic(CHARACTER* c)
{
    OBJECT* o = &c->Object;
    if (o->Type == MODEL_PLAYER)
   {
        SetAttackSpeed();
        if ((c->Helper.Type == MODEL_HELPER + 2 || c->Helper.Type == MODEL_HELPER + 3) && !c->SafeZone)
        {
            SetAction(o, PLAYER_RIDE_SKILL);
        }
        else if ((c->Helper.Type == MODEL_HELPER + 4 || gCustomPet2.GetInfoPetType(c->Helper.Type - 1171) == 6) && !c->SafeZone)
        {
            SetAction(o, PLAYER_ATTACK_RIDE_ATTACK_MAGIC);
        }
        else if ((c->Helper.Type == MODEL_HELPER + 37 || gCustomPet2.GetInfoPetType(c->Helper.Type - 1171) == 5) && !c->SafeZone)
        {
            SetAction(o, PLAYER_FENRIR_ATTACK_MAGIC);
        }
        else
        {
            if (gCharacterManager.IsFemale(c->Class))
                SetAction(o, PLAYER_SKILL_ELF1);
            else
                SetAction(o, PLAYER_SKILL_HAND1 + rand() % 2);
        }
    }
    else
    {
        if (c->SwordCount % 3 == 0)
            SetAction(&c->Object, MONSTER01_ATTACK1);
        else
            SetAction(&c->Object, MONSTER01_ATTACK2);
        c->SwordCount++;
    }
}

Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2028 Views
Last post June 11, 2018, 09:23:42 PM
by jorge2016
0 Replies
1811 Views
Last post May 30, 2020, 10:20:55 AM
by Kosh
10 Replies
5984 Views
Last post March 24, 2025, 01:44:21 AM
by erickmalfoy
0 Replies
253 Views
Last post November 23, 2022, 03:40:38 AM
by James105
0 Replies
357 Views
Last post July 25, 2025, 11:43:42 AM
by mufun226