|
You last visited: Today at 23:12
Advertisement
[Help] AzureShield Bdamage?
Discussion on [Help] AzureShield Bdamage? within the CO2 Private Server forum part of the Conquer Online 2 category.
04/18/2014, 01:18
|
#1
|
elite*gold: 0
Join Date: Jan 2014
Posts: 36
Received Thanks: 1
|
[Help] AzureShield Bdamage?
How do I show the damage blue in AzureShield?
I've tried several ways but none worked
Code:
if (spell.ID == 30000)
{
if (attacked.ContainsFlag2(Update.Flags2.AzureShield))
{
return;
}
//attack.AttackType = Attack.HassaN2;
attacked.ShieldTime = 0;
attacked.ShieldStamp = Time32.Now;
attacked.MagicShieldStamp = Time32.Now;
attacked.MagicShieldTime = 0;
//Console.WriteLine("The Dodge is :" + attacked.Dodge.ToString());
attacked.AddFlag2(Update.Flags2.AzureShield);
attacked.MagicShieldStamp = Time32.Now;
attacked.AzureDamage = 12000;
//Console.WriteLine("AzureShiled granted " + 12000 + " The Dodge is :" + attacked.Dodge.ToString());
attacked.MagicShieldIncrease = spell.PowerPercent;
attacked.MagicShieldTime = 60;
if (attacked.EntityFlag == EntityFlag.Player)
{
attacked.Owner.Send(Constants.AzureShield(12000, 30));
Conquer_Online_Server.Network.GamePackets.SyncPacket packet4 = new Conquer_Online_Server.Network.GamePackets.SyncPacket
{
Identifier = attacked.UID,
Count = 2,
Type = Conquer_Online_Server.Network.GamePackets.SyncPacket.SyncType.StatusFlag,
StatusFlag1 = (ulong)attacked.StatusFlag,
StatusFlag2 = (ulong)attacked.StatusFlag2,
Unknown1 = 0x31,
StatusFlagOffset = 0x5d,
Time = (uint)60,
Value = (uint)attacked.AzureDamage,
Level = spell.Level
};
attacked.Owner.Send((byte[])packet4);
}
}
|
|
|
04/18/2014, 08:34
|
#2
|
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
|
Look! The code that you posted just for active it, and set the time of it! but not to take a damage!
For damage, you have to go to Calculate.cs in "Game/attacking/Calculate.cs" and Add a code like that (Not this code, i just explain it for you, also this code may work) :
Code:
if (attacked.containsflag(Update.Flags.AzureShield)
{
Damage = Damage - (uint)attacked.AzureDamage;
if (Damage < 0)
Damage = 0;
}
Just something like that!
|
|
|
04/18/2014, 09:04
|
#3
|
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
|
Quote:
Originally Posted by ~Crystaline
In your Calculate.cs (which handles the attacks and etc), you should add a checker if the player contains the AzureShield then send the reduceDamage.
Something like this
Code:
if(attackedPlayer.Contains(AzureShield))
{
//reduceDamage
}
In your Calculate.cs (which handles the attacks and etc), you should add a checker if the player contains the AzureShield then send the reduceDamage.
Something like this
Code:
if(attackedPlayer.Contains(AzureShield))
{
//reduceDamage
}
|
I wonder, what did I say?
|
|
|
04/18/2014, 09:34
|
#4
|
elite*gold: 0
Join Date: Jun 2012
Posts: 179
Received Thanks: 55
|
Quote:
Originally Posted by GameHacker-PM-
I wonder, what did I say?
|
Didn't saw your reply tho, **** looks like my internet is messing up again. #PostDeleted.
|
|
|
04/18/2014, 11:41
|
#5
|
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
|
Quote:
Originally Posted by ~Crystaline
Didn't saw your reply tho, **** looks like my internet is messing up again. #PostDeleted.
|
No problem brother! Sometimes happen  .
|
|
|
04/18/2014, 12:50
|
#6
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
Quote:
Originally Posted by GameHacker-PM-
Look! The code that you posted just for active it, and set the time of it! but not to take a damage!
For damage, you have to go to Calculate.cs in "Game/attacking/Calculate.cs" and Add a code like that (Not this code, i just explain it for you, also this code may work) :
Code:
if (attacked.containsflag(Update.Flags.AzureShield)
{
Damage = Damage - (uint)attacked.AzureDamage;
if (Damage < 0)
Damage = 0;
}
Just something like that! 
|
are u sure that the blue damage from calculate??
it is only calculating the damage and the blue no wont appear
|
|
|
04/18/2014, 13:08
|
#7
|
elite*gold: 0
Join Date: Jun 2012
Posts: 179
Received Thanks: 55
|
Quote:
Originally Posted by abdoumatrix
are u sure that the blue damage from calculate??
it is only calculating the damage and the blue no wont appear
|
I don't think that will show the "blue" damage.
Code:
if(attackedPlayer.ContainsFlag(AzureShield)
{
if(attackedPlayer.AzureDamage >= Damage)
{
attackedPlayer.AzureDamage -= Damage;
attackedPlayer.Send(BLUEDAMAGE);
}
}
|
|
|
04/18/2014, 13:44
|
#8
|
elite*gold: 0
Join Date: Mar 2014
Posts: 219
Received Thanks: 27
|
Shouldn't it be WorldSend instead of just the player?
|
|
|
04/18/2014, 13:54
|
#9
|
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
|
Quote:
Originally Posted by abdoumatrix
are u sure that the blue damage from calculate??
it is only calculating the damage and the blue no wont appear
|
Haha, I think you just tell me "I did it  " right? XD he didn't ask for this anyway, so that's off-topic! (B2olk eh, magabtsh el taiha ya3ni, mosh 3shan ana fe amt7nat xD sana was5a xD).
|
|
|
04/18/2014, 15:34
|
#10
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by GameHacker-PM-
Haha, I think you just tell me "I did it  " right? XD he didn't ask for this anyway, so that's off-topic! (B2olk eh, magabtsh el taiha ya3ni, mosh 3shan ana fe amt7nat xD sana was5a xD).
|
he just showing you your mistake or he just correcting you ... try to be nice with others
have a good exams ...
|
|
|
04/18/2014, 16:14
|
#11
|
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
|
Quote:
Originally Posted by GameHacker-PM-
Haha, I think you just tell me "I did it  " right? XD he didn't ask for this anyway, so that's off-topic! (B2olk eh, magabtsh el taiha ya3ni, mosh 3shan ana fe amt7nat xD sana was5a xD).
|
he said blue damage
Quote:
Originally Posted by KevinCOder
How do I show the damage blue in AzureShield?
|
still my reply is :P
Quote:
Originally Posted by abdoumatrix
are u sure that the blue damage from calculate??
it is only calculating the damage and the blue no wont appear
|
Quote:
Originally Posted by abdeen
he just showing you your mistake or he just correcting you ... try to be nice with others
have a good exams ...
|
ty , he is my friend and he kidding with me
|
|
|
04/18/2014, 17:41
|
#12
|
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
|
Quote:
Originally Posted by abdoumatrix
he said blue damage
still my reply is :P
ty , he is my friend and he kidding with me 
|
Okay , i hope all is okay ... can you please check your inbox ?
|
|
|
04/18/2014, 18:02
|
#13
|
elite*gold: 153
Join Date: Mar 2011
Posts: 634
Received Thanks: 489
|
Quote:
Originally Posted by abdoumatrix
he said blue damage
still my reply is :P
|
Oh.. SOrry,, "Stupid am i?" XD
|
|
|
Similar Threads
|
I Have Ony Problem AzureShield Not Work
12/06/2012 - CO2 Private Server - 1 Replies
I Have Ony Problem AzureShield Not Work
|
Please Help with AzureShield SKill
04/08/2012 - CO2 Private Server - 0 Replies
I need guild please to make AzureShield Skill As Conqueronline working by Absorb Effect no by Time Please Any One tell me how or put the Effect SubType
Please any one help me
|
[HELP] Azureshield problem
02/15/2012 - CO2 Private Server - 3 Replies
Hi all, pls help me in my skill bug, when I use the skill, the character who has the shield does not get hit, why does this happen? :confused: :handsdown:
Pls help, tell me where I should check this problem.
Thank you all, I've solved the problem. =D
|
All times are GMT +1. The time now is 23:14.
|
|