Loading...   


function event_say(e)
	local pack = Packet(0x18fe, 8, true);
	pack:WriteInt32(0, 0);
	pack:WriteInt32(4, e.self:GetID());
--	pack:WriteInt32(4, 0);

	e.other:QueuePacket(pack);
	pack = Packet(0x75aa, 5, true);
	pack:WriteInt8(0, 0);
	pack:WriteInt8(1, 1);
	pack:WriteInt8(2, 0); -- us
	pack:WriteInt8(3, 100);
	pack:WriteInt8(4, 0);
	e.other:QueuePacket(pack);

	pack:WriteInt8(0, 0);
	pack:WriteInt8(1, 1);
	pack:WriteInt8(2, 7); -- xtarget
	pack:WriteInt8(3, 100);
	pack:WriteInt8(4, 0);
	e.other:QueuePacket(pack);

	pack = Packet(0x75aa, 9, true)
	pack:WriteInt8(0, 1) -- set secondary ID -- must be first
	pack:WriteInt16(1, eq.get_entity_list():GetMobByNpcTypeID(77004):GetID())
	pack:WriteInt8(3, 0)
	pack:WriteInt8(4, 0)
	pack:WriteInt8(5, 1)
	pack:WriteInt8(6, 1) -- set secondary
	pack:WriteInt8(7, 20)
	pack:WriteInt8(8, 0)
	e.other:QueuePacket(pack)

end

Raw Paste Data