All pastes #430976 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-09 12:00 UTC
rendered paste body
	public void modifyMedia(int size, int interfaceId, int yaxisRotation, int xaxisRotation)
	{
		outStream.createFrame(230);
		outStream.writeWordA(size); // the bigger the number the small the object will appear, go to small of a number and you crash the client so try to stay at above 100
		outStream.writeWord(interfaceId); // interface id that contains the media
		outStream.writeWord(yaxisRotation);
		outStream.writeWordBigEndianA(xaxisRotation);
		flushOutStream();
    }
^^ THANKS SILAB! ^^ 

	public void fillSpecBar(int stage)
	{
		if (stage >= 1)
		{
			modifyMedia(0, 12325, 0, 0);
		} else if (stage >= 2)
		{
			modifyMedia(0, 12326, 0, 0);
		} else if (stage >= 3)
		{
			modifyMedia(0, 12327, 0, 0);
		} else if (stage >= 4)
		{
			modifyMedia(0, 12328, 0, 0);
		} else if (stage >= 5)
		{
			modifyMedia(0, 12329, 0, 0);
		} else if (stage >= 6)
		{
			modifyMedia(0, 12330, 0, 0);
		} else if (stage >= 7)
		{
			modifyMedia(0, 12331, 0, 0);
		} else if (stage >= 8)
		{
			modifyMedia(0, 12332, 0, 0);
		} else if (stage >= 9)
		{
			modifyMedia(0, 12333, 0, 0);
		} else if (stage >= 10)
		{
			modifyMedia(0, 12334, 0, 0);
		} else {
			
		}
	}
	public void drawSpecBar(int parentId)
	{
		outStream.createFrame(171);
		outStream.writeByte(0);
		outStream.writeWord(parentId);
		flushOutStream();
	}


	public void loadSpecialBars()
	{
		packet.drawSpecBar(12323); // Whip
		packet.fillSpecBar(10);
	}
^^ That will load the whip special bar and fill it ^^