|
You last visited: Today at 04:21
Advertisement
[Help]Healing
Discussion on [Help]Healing within the CO2 Private Server forum part of the Conquer Online 2 category.
07/10/2009, 17:54
|
#1
|
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);
|
|
|
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?
|
|
|
07/10/2009, 20:06
|
#3
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by Incariuz
Are you trying to convert this to CoEmuV2?
|
No no no lol , re-writing LOTF one lol.
|
|
|
07/10/2009, 20:08
|
#4
|
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
|
Why are you changing it?
|
|
|
07/10/2009, 20:12
|
#5
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by Incariuz
Why are you changing it?
|
It doesnt work rofl , thats why I am changing it.Sometimes it doesnt work , sometimes it does ...
|
|
|
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.
|
|
|
07/10/2009, 20:21
|
#7
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by Incariuz
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.
|
|
|
07/10/2009, 21:22
|
#8
|
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
|
Did it work alright?
|
|
|
07/10/2009, 22:01
|
#9
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by Incariuz
Did it work alright?
|
Nah , gonna code the healing skills my way.
|
|
|
07/10/2009, 23:23
|
#10
|
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
|
Hmmm... Odd, but w/e, goodluck.
|
|
|
07/10/2009, 23:28
|
#11
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by Incariuz
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.
|
|
|
07/10/2009, 23:57
|
#12
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
|
#Closed
|
|
|
|
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 04:21.
|
|