TheLastGames - Conquer online
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[Release] Luck Time Skill Fixed.

2 participantes

Ir para baixo

[Release] Luck Time Skill Fixed. Empty [Release] Luck Time Skill Fixed.

Mensagem por DxOnline Ter Fev 28, 2012 9:05 pm

Em Handle.cs, procure por "#region Bless", e substitua a region inteira por esta:

Código:
                                #region Bless
                                case 9876:
                                    {
                                        if (CanUseSpell(spell, attacker.Owner))
                                        {
                                            PrepareSpell(spell, attacker.Owner);
                                            attacker.AddFlag(Update.Flags.CastPray);
                                            SpellUse spellUse = new SpellUse(true);
                                            spellUse.Attacker = attacker.UID;
                                            spellUse.SpellID = spell.ID;
                                            spellUse.SpellLevel = spell.Level;
                                            spellUse.X = X;
                                            spellUse.Y = Y;
                                            spellUse.Targets.Add(attacker.UID, 0);
                                            attacker.Owner.Screen.SendScreen(spellUse, true);
                                        }
                                        break;
                                    }
                                #endregion


Em PacketHandler, procure por "static void PlayerJump", e embaixo de "client.Mining = false;", adicione :


Código:
            if (client.Entity.ContainsFlag(Update.Flags.CastPray))
            {
                client.Entity.RemoveFlag(Update.Flags.CastPray);
                foreach (var Client in client.Prayers)
                {
                    if (Client.Entity.ContainsFlag(Update.Flags.Praying))
                    {
                        Client.Entity.RemoveFlag(Update.Flags.Praying);
                    }
                }
                client.Prayers.Clear();
            }

            if (client.Entity.ContainsFlag(Update.Flags.Praying))
            {
                client.Entity.RemoveFlag(Update.Flags.Praying);
                if (client.PrayLead != null)
                {
                    client.PrayLead.Prayers.Remove(client);
                    client.PrayLead = null;
                }
            }

Faça a mesma coisa na void "PlayerGroundMovment", embaixo de "client.Mining = false;":


Código:
            if (client.Entity.ContainsFlag(Update.Flags.CastPray))
            {
                client.Entity.RemoveFlag(Update.Flags.CastPray);
                foreach (var Client in client.Prayers)
                {
                    if (Client.Entity.ContainsFlag(Update.Flags.Praying))
                    {
                        Client.Entity.RemoveFlag(Update.Flags.Praying);
                    }
                }
                client.Prayers.Clear();
            }
            if (client.Entity.ContainsFlag(Update.Flags.Praying))
            {
                client.Entity.RemoveFlag(Update.Flags.Praying);
                if (client.PrayLead != null)
                    client.PrayLead.Prayers.Remove(client);
                client.PrayLead = null;
            }


de F6 e está pronto!

Creditos: DragonsoulTeam


DxOnline
DxOnline

Mensagens : 13
Data de inscrição : 28/02/2012

Ir para o topo Ir para baixo

[Release] Luck Time Skill Fixed. Empty Re: [Release] Luck Time Skill Fixed.

Mensagem por Admin Ter Fev 28, 2012 9:38 pm

Show .. parabens
Admin
Admin
Admin

Mensagens : 129
Data de inscrição : 07/01/2012
Idade : 30

https://thelastgames.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos