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:46 pm

Credits to myself
This goes in Character.cs
Code:
if (SkillId == 1190 && Stamina >= 100)
                        {
                            if (SkillLvl == 0)
                            {
                                CurHP += 500;
                                if (CurHP > MaxHP)
                                    CurHP = MaxHP;
                                Stamina = 0;
                                MyClient.SendPacket(General.MyPackets.Vital(UID, 0, CurHP));
                                MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
                                World.UsingSkill(this, (short)SkillId, SkillLvl, UID, 500, (short)LocX, (short)LocY);
                            }
                            if (SkillLvl == 1)
                            {
                                CurHP += 800;
                                if (CurHP > MaxHP)
                                    CurHP = MaxHP;
                                Stamina = 0;
                                MyClient.SendPacket(General.MyPackets.Vital(UID, 0, CurHP));
                                MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
                                World.UsingSkill(this, (short)SkillId, SkillLvl, UID, 800, (short)LocX, (short)LocY);
                            }
                            if (SkillLvl == 2)
                            {
                                CurHP += 1300;
                                if (CurHP > MaxHP)
                                    CurHP = MaxHP;
                                Stamina = 0;
                                MyClient.SendPacket(General.MyPackets.Vital(UID, 0, CurHP));
                                MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
                                World.UsingSkill(this, (short)SkillId, SkillLvl, UID, 1300, (short)LocX, (short)LocY);
                            }
                        }

for this it all depends if u have a External database or just using the normal database

if u have a External Database open it and search for

search for the same thing in ur normal database if u dont have an External one

Code:
public static void DefineSkills()

under that paste this

Code:
//SpiritualHealing
        SkillAttributes[1190] = new ushort[3][];
        SkillAttributes[1190][0] = new ushort[6] { 7, 0, 0, 500, 100, 0 };
        SkillAttributes[1190][1] = new ushort[6] { 7, 0, 0, 800, 100, 0 };
        SkillAttributes[1190][2] = new ushort[6] { 7, 0, 0, 1300, 100, 0 };
        SkillsDone.Add(1190, 2);

there ya go now u got workin SpirtHealing in your server.
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 :: LOTF :: Codes-
Jump to: