Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Need Some help??? (jukebox)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="aqilws" data-source="post: 415627" data-attributes="member: 6838"><p>Sorry i forgotten to add the link anyways ill re explain what i did :</p><p></p><p> i updated the packet to match the swfs im using</p><p>Outgoing and incoming in clientpacketheader.cs and serverpacketheader.cs</p><p></p><p>I added these :</p><p> </p><p>[SPOILER="CODES under Incoming>sound"]</p><p>#removed</p><p>[/SPOILER]</p><p>In purchasefromcatalogueevent.cs,</p><p>i added this</p><p>[CODE] case InteractionType.MUSIC_DISC:</p><p> string flags = Convert.ToString(Item.ExtradataInt);</p><p> if (AmountPurchase > 1)</p><p> {</p><p> List<Item> Items = ItemFactory.CreateMultipleItems(Item.Data, Session.GetHabbo(), flags, AmountPurchase);</p><p></p><p> if (Items != null)</p><p> {</p><p> GeneratedGenericItems.AddRange(Items);</p><p> }</p><p> }</p><p> else</p><p> {</p><p> NewItem = ItemFactory.CreateSingleItemNullable(Item.Data, Session.GetHabbo(), flags, flags);</p><p></p><p> if (NewItem != null)</p><p> {</p><p> GeneratedGenericItems.Add(NewItem);</p><p> }</p><p> }</p><p> break;[/CODE]</p><p>[SPOILER="Under Outgoing"]</p><p>#removed</p><p>[/SPOILER]</p><p></p><p>Added a few lines in room.cs</p><p>[CODE]this._traxManager = new RoomTraxManager(this); // Jukebox</p><p> OnFurnisLoad(); // Jukebox</p><p></p><p>...</p><p>.</p><p>.</p><p></p><p> public RoomTraxManager GetTraxManager()</p><p> {</p><p> return this._traxManager;</p><p> }</p><p>....</p><p>....</p><p></p><p>try { this._traxManager.OnCycle(); }[/CODE]</p><p></p><p>Added some codes in game.cs</p><p>TraxSoundManager.Init(); //juke</p><p></p><p>[SPOILER="HH>rooms>Traxmachine"]</p><p>#removed</p><p></p><p></p><p>[/SPOILER]</p><p></p><p>Added in interactiontypes.cs</p><p>[CODE]</p><p> case "jukebox":</p><p> return InteractionType.JUKEBOX;</p><p> case "trax":</p><p> return InteractionType.TRAX;</p><p> case "musicdisc":</p><p> return InteractionType.MUSIC_DISC;</p><p>[/CODE]</p><p>also in items.cs</p><p>[CODE]</p><p>case InteractionType.JUKEBOX:</p><p> return new InteractorJukebox();</p><p>case InteractionType.MUSIC_DISC: // Added</p><p> return new InteractorMusicDisc();</p><p>[/CODE]</p><p>in itembehaviourutility.cs</p><p>[CODE]</p><p>case InteractionType.MUSIC_DISC:</p><p> int issx = 0;</p><p> int.TryParse(Item.ExtraData, out issx);</p><p> Message.WriteInteger(issx);</p><p> Message.WriteInteger(0);</p><p> Message.WriteString(Item.ExtraData);</p><p> break;</p><p>[/CODE]</p><p></p><p></p><p>I might have left out some stuff that i ve added in im not too sure as i did not tag/comment or whateva u called it "//juke" on them</p><p></p><p></p><p></p><p>In Database i have updated both the interaction to musicdisc and jukebox respectively also added new table jukebox_songs_data and rooms_jukebox_songs and room_items_songs..</p><p></p><p>Also i have updated the mp3 folder and checked the External variables.</p><p>Any missing pieces to solve this puzzle?</p><p>[doublepost=1501920692,1501589547][/doublepost]Anyone?</p><p>[doublepost=1501929868][/doublepost]Hais I figured out MYSELF whats wrong i forgotten to add some lines in packetmanager *insert facepalm emoji* <img src="/styles/icons/smile/twitch/FailFish.png" class="smilie" loading="lazy" alt="FailFish" title="FailFish FailFish" data-shortname="FailFish" /> </p><p></p><p>Screenies :</p><p><img src="https://image.prntscr.com/image/AzAH-jcHQ0iChgwgZAjw4Q.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p><3</p></blockquote><p></p>
[QUOTE="aqilws, post: 415627, member: 6838"] Sorry i forgotten to add the link anyways ill re explain what i did : i updated the packet to match the swfs im using Outgoing and incoming in clientpacketheader.cs and serverpacketheader.cs I added these : [SPOILER="CODES under Incoming>sound"] #removed [/SPOILER] In purchasefromcatalogueevent.cs, i added this [CODE] case InteractionType.MUSIC_DISC: string flags = Convert.ToString(Item.ExtradataInt); if (AmountPurchase > 1) { List<Item> Items = ItemFactory.CreateMultipleItems(Item.Data, Session.GetHabbo(), flags, AmountPurchase); if (Items != null) { GeneratedGenericItems.AddRange(Items); } } else { NewItem = ItemFactory.CreateSingleItemNullable(Item.Data, Session.GetHabbo(), flags, flags); if (NewItem != null) { GeneratedGenericItems.Add(NewItem); } } break;[/CODE] [SPOILER="Under Outgoing"] #removed [/SPOILER] Added a few lines in room.cs [CODE]this._traxManager = new RoomTraxManager(this); // Jukebox OnFurnisLoad(); // Jukebox ... . . public RoomTraxManager GetTraxManager() { return this._traxManager; } .... .... try { this._traxManager.OnCycle(); }[/CODE] Added some codes in game.cs TraxSoundManager.Init(); //juke [SPOILER="HH>rooms>Traxmachine"] #removed [/SPOILER] Added in interactiontypes.cs [CODE] case "jukebox": return InteractionType.JUKEBOX; case "trax": return InteractionType.TRAX; case "musicdisc": return InteractionType.MUSIC_DISC; [/CODE] also in items.cs [CODE] case InteractionType.JUKEBOX: return new InteractorJukebox(); case InteractionType.MUSIC_DISC: // Added return new InteractorMusicDisc(); [/CODE] in itembehaviourutility.cs [CODE] case InteractionType.MUSIC_DISC: int issx = 0; int.TryParse(Item.ExtraData, out issx); Message.WriteInteger(issx); Message.WriteInteger(0); Message.WriteString(Item.ExtraData); break; [/CODE] I might have left out some stuff that i ve added in im not too sure as i did not tag/comment or whateva u called it "//juke" on them In Database i have updated both the interaction to musicdisc and jukebox respectively also added new table jukebox_songs_data and rooms_jukebox_songs and room_items_songs.. Also i have updated the mp3 folder and checked the External variables. Any missing pieces to solve this puzzle? [doublepost=1501920692,1501589547][/doublepost]Anyone? [doublepost=1501929868][/doublepost]Hais I figured out MYSELF whats wrong i forgotten to add some lines in packetmanager *insert facepalm emoji* FailFish Screenies : [IMG]https://image.prntscr.com/image/AzAH-jcHQ0iChgwgZAjw4Q.png[/IMG] <3 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Need Some help??? (jukebox)
Top