How to get Buffer and Updates ID

05/22/2012 16:46 zakkwilde_17#1
Guys, for a long time I've been looking for this... i need to know where can i find this IDs. to Buffers of spells and Updates for Effects... Thank you for your attention.
05/22/2012 16:56 pro4never#2
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.


As for effects... you can look in the client under stateff.ini which lists them, or do trial and error.
05/22/2012 20:36 zakkwilde_17#3
Quote:
Originally Posted by pro4never View Post
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 View Post
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 ^^
05/22/2012 21:08 -Sensei-#4
Its a StatusFlag your talking about
05/23/2012 17:51 zakkwilde_17#5
Quote:
Originally Posted by -Sensei- View Post
Its a StatusFlag your talking about
yep, i need to know where can i find this IDs =S
05/23/2012 21:32 pro4never#6
I told you... stateff.ini or trial and error.

They are VERY easy to find as they are all bitflags (1/0 shifted over by X bits inside the statuseffect pool.. you can then use simple logic to pull out if the effect is active or not. Hurrah for bit logic!)
05/24/2012 09:27 I don't have a username#7
You could start by learning C# first.
05/24/2012 18:25 Zeroxelli#8
Why is this not closed yet. I'm going to annoy Kiyono and click that button his siggy says to click :o
05/24/2012 21:21 Kiyono#9
Quote:
Originally Posted by Zeroxelli View Post
Why is this not closed yet. I'm going to annoy Kiyono and click that button his siggy says to click :o
It's not a huge spam fest yet so no reason to close it without the OP requesting it.
05/25/2012 00:36 Zeroxelli#10
Quote:
Originally Posted by Kiyono View Post
It's not a huge spam fest yet so no reason to close it without the OP requesting it.
I guess.. I just see it as a waste of time when threads go on and keep getting the same answer written out differently over and over.