View Full Version : 562 music frames
Cjay0091
June 18th, 2010, 19:41
public void sendMusic(int musicId, int length) {
player.getSession().write(new StaticPacketBuilder().setId(188).addLEShort((short ) musicId)
.addByteS((byte) length));
}
public void sendSecondaryMusic(int musicId, int categoryId, int length) {
player.getSession().write(new StaticPacketBuilder().setId(30).addByte((byte)leng th)
.addLEInt(musicId)
.addLEShortA(categoryId));
}
jamie
June 19th, 2010, 05:16
Isn't this already there? O.O
Cjay0091
June 20th, 2010, 19:30
The one in caelum's base is the reason why you get the blackscreen glitch, this stops the glitch... and works.
What teh Fux
June 20th, 2010, 23:16
this is wrong, pretty sure your still gonna get the glitch as the reason the glitch happens is cause the music aint in the cache that we have
Gawdz
June 22nd, 2010, 10:07
thank you for this :p
Gawdz
July 27th, 2010, 11:28
well i had to change code to work with my source but it did fix black screen!
public void PlayMusic(int musicId) {
try {
player.getSession().write(new StaticPacketBuilder().setId(188).addLEShort((short ) musicId)
.addByteS((byte) ID++));
} catch(Exception e) {
}
}
public void PlayMusic2(int musicId, int categoryId, int length) {
try {
player.getSession().write(new StaticPacketBuilder().setId(30)
.addByte((byte) ID++)
.addLEInt(musicId)
.addLEShortA(categoryId));
} catch(Exception e) {
}
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.