View Full Version : colored soulshot blows
pipise4ko
01.03.2006, 22:32
in off different class of soulshots blows with different colors (ssD-blue ssC-green ssB-red etc), in our servers they are all non-grade... I'm not talking about glow, when you charge it, it is all fixad long time ago. I talk about animation, when you hit someone. It is scripting or i need hex l2srever.exe?
CubAfull
01.03.2006, 23:45
hex
hex
Some reference Plz ?
Thx
testdude
10.04.2006, 05:59
anyone that doesnt know how to do something with script always says "hex"... kinda funny really... but anyway...
Colored soulshot bursts... controlled by the Attack packet...(i think :|)
From l2j:
writeD(_attackerId);
writeD(hits[0]._targetId);
writeD(hits[0]._damage);
writeC(hits[0]._flags);
writeD(_x);
writeD(_y);
writeD(_z);
writeH(hits.length-1);
for (int i=1; i < hits.length; i++)
{
writeD(hits[i]._targetId);
writeD(hits[i]._damage);
writeC(hits[i]._flags);
}
flags is what should controll the color of the burst...
if (_soulshot) _flags |= 0x10;
if (crit) _flags |= 0x20;
if (shld) _flags |= 0x40;
if (miss) _flags |= 0x80;
default c3 flags... c4 there is new flags for each color(im guessing) of which i dont think l2j has yet although it wouldnt be hard for them to get.. just l2log it from retail... but anyway... u wanna hex it then all u gotta do is figure out how to(in hex) get the currently equiped weapon that the person is holding, and if flags = 0x10, change it to the apropriate number for the color according to the grade of the weapon... sounds simple doesnt it?
anyone that doesnt know how to do something with script always says "hex"... kinda funny really... but anyway...
Colored soulshot bursts... controlled by the Attack packet...(i think :|)
From l2j:
writeD(_attackerId);
writeD(hits[0]._targetId);
writeD(hits[0]._damage);
writeC(hits[0]._flags);
writeD(_x);
writeD(_y);
writeD(_z);
writeH(hits.length-1);
for (int i=1; i < hits.length; i++)
{
writeD(hits[i]._targetId);
writeD(hits[i]._damage);
writeC(hits[i]._flags);
}
flags is what should controll the color of the burst...
if (_soulshot) _flags |= 0x10;
if (crit) _flags |= 0x20;
if (shld) _flags |= 0x40;
if (miss) _flags |= 0x80;
default c3 flags... c4 there is new flags for each color(im guessing) of which i dont think l2j has yet although it wouldnt be hard for them to get.. just l2log it from retail... but anyway... u wanna hex it then all u gotta do is figure out how to(in hex) get the currently equiped weapon that the person is holding, and if flags = 0x10, change it to the apropriate number for the color according to the grade of the weapon... sounds simple doesnt it?
I'm little confused, I guess that is because I'm Nw :|
Btw. Thx for your help