this is for both lotf and coemu
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 SpirtHealing

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 56
Join date : 2009-08-20

PostSubject: SpirtHealing   Sun Aug 23, 2009 11:40 pm

Credits to samhvan of E*PVP
this goes in Handlers/Attack.cs

Search for

Code:
case 1100://Revive!

then add this above case 1100

Code:
case 1190:
                            {
                               
                                short HpToAdd = 500;
                                if (AttackSkill.Level == 1) HpToAdd = 800;
                                else if (AttackSkill.Level == 2) HpToAdd = 1300;
                                CSocket.Client.CurrentHP += HpToAdd;
                                if (CSocket.Client.CurrentHP > CSocket.Client.MaxHP) CSocket.Client.CurrentHP = CSocket.Client.MaxHP;
                                CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CurrentHP, Struct.StatusTypes.Hp));
                                Dictionary<int, int> Targets = new Dictionary<int, int>();
                                Targets.Add(AttackedChar.ID, HpToAdd);
                                ConquerPacket.ToLocal(ConquerPacket.MagicAttack(CSocket.Client.ID, AttackSkill.ID, AttackSkill.Level, Targets, AttackedChar.X, AttackedChar.Y), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
                                Targets.Clear();
                                break;
                            }
Back to top Go down
View user profile http://openprojects.forumotions.net
 
SpirtHealing
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
lotf/coemu project :: Codes-
Jump to: