View Single Post
Old 10.04.2006, 06:36   #5
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
Originally Posted by testdude
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:
Code:
		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
RipperX is offline