Coding Purification

03/10/2011 13:47 Iron~Man#1
Well, I'm in a doubt how to code the artifacts.
First of all, I Don't know If It's coded in p4n's source or anyone else's and I'm not going to take example from there since I've no idea how purification works and I wanna do it by myself, by my way
The Questions are, How is the system going? What it does to the item , what new function the items have, what type of packet purification uses?


Thanks in advance,
Stefan
03/10/2011 13:51 12tails#2
if you just log the packet received from client you'll have everything answered...

btw...

Code:
            #region Variables
            byte Type = packet[4];
            uint ItemUID = BitConverter.ToUInt32(packet, 8);
            uint RefineryUID = BitConverter.ToUInt32(packet, 12);
            Interfaces.IConquerItem Main = null;
            Interfaces.IConquerItem Minor = null;
            #endregion
Type 0 = refinery (critical strike and others)
Type 1 = Purify (dragon souls)

and what they do??

of course... implement item attack/def/hitrates and many other!
03/10/2011 19:50 Iron~Man#3
Quote:
Originally Posted by 12tails View Post
if you just log the packet received from client you'll have everything answered...

btw...

Code:
            #region Variables
            byte Type = packet[4];
            uint ItemUID = BitConverter.ToUInt32(packet, 8);
            uint RefineryUID = BitConverter.ToUInt32(packet, 12);
            Interfaces.IConquerItem Main = null;
            Interfaces.IConquerItem Minor = null;
            #endregion
Type 0 = refinery (critical strike and others)
Type 1 = Purify (dragon souls)

and what they do??

of course... implement item attack/def/hitrates and many other!

How about the mesh and etc? What is the PacketType?
03/10/2011 20:16 pro4never#4
Quote:
Originally Posted by Iron~Man View Post
How about the mesh and etc? What is the PacketType?
That is just handling the item usage when you try to use a artifact/refinery item.

The entity spawn packet would need to be updated in order to properly display artifact items on others.