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 Releases
Server Releases
[PlusEMU] Close Dice Wired (and more)
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="ZealousOtter" data-source="post: 407374" data-attributes="member: 74321"><p>Hey guys ([USER=74373]@HolaBox[/USER] and [USER=64736]@Simba2002[/USER]), sorry about that, looks like there was a bug in there with the saving. Not sure if I took the initial snippet from an outdated piece, or how that happened. I'll update the original post and say the fix here. Anyway...</p><p></p><p>In the <em>CloseDiceBox.cs </em>in the <em>/HabboHotel/Items/Wired/Boxes/Effects/ </em>directory, please replace the entire HandleSave() method with this:</p><p>[CODE]</p><p> public void HandleSave(ClientPacket Packet)</p><p> {</p><p> this.SetItems.Clear();</p><p> int Unknown = Packet.PopInt();</p><p> string Unknown2 = Packet.PopString();</p><p></p><p> int FurniCount = Packet.PopInt();</p><p> for (int i = 0; i < FurniCount; i++)</p><p> {</p><p> Item SelectedItem = Instance.GetRoomItemHandler().GetItem(Packet.PopInt());</p><p> if (SelectedItem != null)</p><p> SetItems.TryAdd(SelectedItem.Id, SelectedItem);</p><p> }</p><p></p><p> int Delay = Packet.PopInt();</p><p> this.Delay = Delay;</p><p> }</p><p>[/CODE]</p><p></p><p>I updated the <em>CloseDiceBox.cs </em>file in the original post so you could just copy and paste the whole file if you want to as well. Sorry about that!</p></blockquote><p></p>
[QUOTE="ZealousOtter, post: 407374, member: 74321"] Hey guys ([USER=74373]@HolaBox[/USER] and [USER=64736]@Simba2002[/USER]), sorry about that, looks like there was a bug in there with the saving. Not sure if I took the initial snippet from an outdated piece, or how that happened. I'll update the original post and say the fix here. Anyway... In the [I]CloseDiceBox.cs [/I]in the [I]/HabboHotel/Items/Wired/Boxes/Effects/ [/I]directory, please replace the entire HandleSave() method with this: [CODE] public void HandleSave(ClientPacket Packet) { this.SetItems.Clear(); int Unknown = Packet.PopInt(); string Unknown2 = Packet.PopString(); int FurniCount = Packet.PopInt(); for (int i = 0; i < FurniCount; i++) { Item SelectedItem = Instance.GetRoomItemHandler().GetItem(Packet.PopInt()); if (SelectedItem != null) SetItems.TryAdd(SelectedItem.Id, SelectedItem); } int Delay = Packet.PopInt(); this.Delay = Delay; } [/CODE] I updated the [I]CloseDiceBox.cs [/I]file in the original post so you could just copy and paste the whole file if you want to as well. Sorry about that! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[PlusEMU] Close Dice Wired (and more)
Top