Quote:
Originally Posted by pro4never
Umm... Magictype.dat controls all spell information. Not sure what you mean by "buffer" though. I feel like you're just using the wrong word.
|
hm... I think the name for it, is not exactly "buffer" but it is so ....
I'm programming the spell "ShieldBlock" and I know that when using this skill, an icon appears at the top left of the screen ... I took based on the icon of the skill "AzureShield" if this is here:
Code:
public void AzureShield(Conquer_Online_Server.Game.Entity Entity, int Dmg, byte SpellLevel, byte Time_)
{
byte[] Buf = new byte[52 + 8];
Writer.WriteUInt16(52, 0, Buf);//Packet Lenght
Writer.WriteUInt16(10017, 2, Buf);//Status Packet Id
Writer.WriteUInt32(Entity.UID, 4, Buf);//Client Id
Writer.WriteUInt32(2, 8, Buf);// Switch
Writer.WriteUInt32(25, 12, Buf); // Status Effect Type
Writer.WriteUInt64((ulong)Entity.EntityFlag, 16, Buf);//Status flag 1
Writer.WriteUInt64((ulong)Entity.StatusFlag2, 24, Buf);//Status flag 2
Writer.WriteUInt32(49, 32, Buf); //StatusTypes.AzureShield
Writer.WriteUInt32(93, 36, Buf);//i guess Sybtype ,,
Writer.WriteUInt32(Time_, 40, Buf);//Time duration for the effect
Writer.WriteUInt32((uint)Dmg, 44, Buf);//Damage Coused by the skill
Writer.WriteUInt32(SpellLevel, 48, Buf); //the Azure Skill Level
if (Conquer_Online_Server.ServerBase.Kernel.GamePool.ContainsKey(Entity.UID))
{//3alashan ngeeb el client
Client.GameState Cl = Conquer_Online_Server.ServerBase.Kernel.GamePool[Entity.UID];
Cl.Send(Buf);
}
// wa lamma t7eb testad3eha ekteb bas el code dah ,, Update ud = new Update(true);
//ud.AzureShield(attacked, attacked.AzureDamage, spell.Level, (byte)spell.Duration);
}
I wonder where I get these values in order to make a new one.
Quote:
Originally Posted by pro4never
As for effects... you can look in the client under stateff.ini which lists them, or do trial and error.
|
Thanks, I will try to seach an effect on statuseffect.ini ^^