Register for your free account! | Forgot your password?

You last visited: Today at 16:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help]Healing

Discussion on [Help]Healing within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
[Help]Healing

Well I have re-written healing skills a little bit.But they still doesnt work any Hints?

Code:
                            if (SkillAttributes[0] == 6)
                            {
                                Heal = (short)SkillAttributes[4];
                                CurHP += (ushort)Heal;
                                if (CurHP > MaxHP)
                                    CurHP = MaxHP;
                                World.UsingSkill(this, (short)SkillId, SkillLvl, UID, (ushort)Heal, (short)LocX, (short)LocY);
                                Mana = (short)SkillAttributes[5];
                                if (CurMP > (short)Mana)
                                {
                                    CurMP -= (ushort)Mana;
                                    General.MyPackets.Vital((long)UID, 0x02, CurMP);
                                }
                                else
                                {
                                    General.MyPackets.SendMsg(MyClient.MessageId, "NanoCo", Name, "You dont have enough mana!", 2011);
                                }

                            }
and heres an example of my Defined Spell.
Code:
            SkillAttributes[1170] = new ushort[5][];
            SkillAttributes[1170][0] = new ushort[6] { 6, 0, 0, 600, 25, 0 };
            SkillAttributes[1170][1] = new ushort[6] { 6, 0, 0, 700, 30, 0 };
            SkillAttributes[1170][2] = new ushort[6] { 6, 0, 0, 800, 30, 0 };
            SkillAttributes[1170][3] = new ushort[6] { 6, 0, 0, 900, 30, 0 };
            SkillAttributes[1170][4] = new ushort[6] { 6, 0, 0, 1000, 30, 0 };
            SkillsDone.Add(1170, 4);
damianpesta is offline  
Old 07/10/2009, 20:01   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Are you trying to convert this to CoEmuV2?
Incariuz is offline  
Old 07/10/2009, 20:06   #3
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Incariuz View Post
Are you trying to convert this to CoEmuV2?
No no no lol , re-writing LOTF one lol.
damianpesta is offline  
Old 07/10/2009, 20:08   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Why are you changing it?
Incariuz is offline  
Old 07/10/2009, 20:12   #5
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Incariuz View Post
Why are you changing it?
It doesnt work rofl , thats why I am changing it.Sometimes it doesnt work , sometimes it does ...
damianpesta is offline  
Old 07/10/2009, 20:16   #6
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
I see, well use this, it works for me. Keep in mind, you need to replace the extra skillattributes with mine, some issue with the skill only being able to cast on monsters and gaurds, but I corrected it.


Code:
                            if (SkillAttributes[0] == 6)
                            {
                                Heal = (short)SkillAttributes[3];

                                if (Target.MaxHP - Target.CurHP < Heal)
                                    Heal = (short)(Target.MaxHP - Target.CurHP);

                                Target.CurHP += (uint)Heal;
                            }

                            if (SkillAttributes[0] == 2)
                            {
                                if (PKMode == 0)
                                    if (Target.MType == 1)
                                    {
                                        GotBlueName = DateTime.Now;
                                        BlueName = true;
                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                        World.UpdateSpawn(this);
                                        if (SkillId == 3050)
                                        {
                                            Target.CurHP -= Target.CurHP / 20;
                                        }
                                    }
                                if (PKMode == 0 || Target.MType != 1 && Target.MType != 7)
                                {
                                    MobTargets.Add(Target, Other.CalculateDamage(this, Target, 3, SkillId, SkillLvl));
                                }
                            }
                            if (SkillAttributes[0] == 12)
                            {
                                if (PKMode == 0)
                                    if (Target.MType == 1)
                                    {
                                        GotBlueName = DateTime.Now;
                                        BlueName = true;
                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                        World.UpdateSpawn(this);
                                    }

                                if (PKMode == 0 || Target.MType != 1)
                                    MobTargets.Add(Target, Other.CalculateDamage(this, Target, 1, SkillId, SkillLvl));
                            }
                            if (SkillAttributes[0] == 13)
                            {
                                if (PKMode == 0)
                                    if (Target.MType == 1)
                                    {
                                        GotBlueName = DateTime.Now;
                                        BlueName = true;
                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                        World.UpdateSpawn(this);
                                    }

                                if (PKMode == 0 || Target.MType != 1 && Target.MType != 7)
                                    MobTargets.Add(Target, Other.CalculateDamage(this, Target, 2, SkillId, SkillLvl));
                            }
                        }
Edit: I'm going out for a little bit, let me know how it works, and I'll get back to you when I can.
Incariuz is offline  
Thanks
1 User
Old 07/10/2009, 20:21   #7
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Incariuz View Post
I see, well use this, it works for me. Keep in mind, you need to replace the extra skillattributes with mine, some issue with the skill only being able to cast on monsters and gaurds, but I corrected it.


Code:
                            if (SkillAttributes[0] == 6)
                            {
                                Heal = (short)SkillAttributes[3];

                                if (Target.MaxHP - Target.CurHP < Heal)
                                    Heal = (short)(Target.MaxHP - Target.CurHP);

                                Target.CurHP += (uint)Heal;
                            }

                            if (SkillAttributes[0] == 2)
                            {
                                if (PKMode == 0)
                                    if (Target.MType == 1)
                                    {
                                        GotBlueName = DateTime.Now;
                                        BlueName = true;
                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                        World.UpdateSpawn(this);
                                        if (SkillId == 3050)
                                        {
                                            Target.CurHP -= Target.CurHP / 20;
                                        }
                                    }
                                if (PKMode == 0 || Target.MType != 1 && Target.MType != 7)
                                {
                                    MobTargets.Add(Target, Other.CalculateDamage(this, Target, 3, SkillId, SkillLvl));
                                }
                            }
                            if (SkillAttributes[0] == 12)
                            {
                                if (PKMode == 0)
                                    if (Target.MType == 1)
                                    {
                                        GotBlueName = DateTime.Now;
                                        BlueName = true;
                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                        World.UpdateSpawn(this);
                                    }

                                if (PKMode == 0 || Target.MType != 1)
                                    MobTargets.Add(Target, Other.CalculateDamage(this, Target, 1, SkillId, SkillLvl));
                            }
                            if (SkillAttributes[0] == 13)
                            {
                                if (PKMode == 0)
                                    if (Target.MType == 1)
                                    {
                                        GotBlueName = DateTime.Now;
                                        BlueName = true;
                                        MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                                        World.UpdateSpawn(this);
                                    }

                                if (PKMode == 0 || Target.MType != 1 && Target.MType != 7)
                                    MobTargets.Add(Target, Other.CalculateDamage(this, Target, 2, SkillId, SkillLvl));
                            }
                        }
Edit: I'm going out for a little bit, let me know how it works, and I'll get back to you when I can.
Thanx.Maybe it's gonna work.
damianpesta is offline  
Old 07/10/2009, 21:22   #8
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Did it work alright?
Incariuz is offline  
Old 07/10/2009, 22:01   #9
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Incariuz View Post
Did it work alright?
Nah , gonna code the healing skills my way.
damianpesta is offline  
Old 07/10/2009, 23:23   #10
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Hmmm... Odd, but w/e, goodluck.
Incariuz is offline  
Old 07/10/2009, 23:28   #11
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by Incariuz View Post
Hmmm... Odd, but w/e, goodluck.
nvm thanks to alexbigfoot , the problem was really obvious but my brain didnt really work fine to spot it lol.
#request close.
damianpesta is offline  
Old 07/10/2009, 23:57   #12
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
#Closed
kinshi88 is offline  
Closed Thread


Similar Threads Similar Threads
Healing a Pet
02/20/2009 - Lineage 2 - 1 Replies
Is there a way for a pet to use items (e.g. potions) automatically? Is it possible to do it with a script? Otherwise, which is the best way to heal a pet? Thanks.
Healing in SV
06/10/2007 - Conquer Online 2 - 4 Replies
I'm trying to set up a function in SV so that my tao heals herself every X seconds. I tried to set it to Press F2 every X seconds and having the heal skill on F2, but as expected it only presses F2, and then my tao will heal monsters because it treats it as an attack. I need to have my tao heal herself because she's currently taking 7 damage instead of 1, so health pots run out 7 times quicker. I know it's possible as I've seen my friend done it, but I forgot the setup for that function. Can...
Mining and healing
08/20/2006 - CO2 Exploits, Hacks & Tools - 11 Replies
Hello all...I guess its time I shared a little tip, which might be useful for you miners out there... So when you go afk mine whether with tobo or not, if you turn on the autolog when a pker hits you, you get dced. So when you log back in game, some hp is lost. If this amount of hp lost is significant, then you might worry since your miner might now be killed much more easily than when full hp. So what you gotta do is to make your miner start mining and then hit "sit". After like 2 seconds...
sitzen healing
03/17/2005 - Ragnarok Online - 4 Replies
ich versteh das nicht ganz mit dem hinsetzen, dem lower upper hp /sp so koennt ihr mir schreiben, wie das geht ich wwill, dass der bot sich hinsetzt, wenn er weniger als 70 % hp hat und dass er sich hinsetzt wenn er weniger als 30% sp hat
Group Healing
06/03/2004 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 0 Replies
Requirements: AC-Tools wie der name schon sagt müsst ihr euch in einer gruppe befinden, nachdem ihr einer party gejoined seid zählt die members und tragt die anzahl bei "groupSize" im script ein habs nicht getestet, bitte confirmen SetActiveWindow Lineage II Constants



All times are GMT +2. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.