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 Tutorials
[GTE] Move and rotate fix !
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="Mikeeeeeee" data-source="post: 350030" data-attributes="member: 41370"><p>Hello people!</p><p></p><p>I have the fix of de move and rotate wired bugg.</p><p></p><p>Search for: case "wf_act_moverotate":</p><p></p><p>And replace it with:</p><p>[PHP]case "wf_act_moverotate":</p><p> current2.ExtraData = "1";</p><p> current2.UpdateState(false, true);</p><p> current2.ReqUpdate(1);</p><p> current2.method_9();</p><p> if (current2.string_4.Length > 0)</p><p> {</p><p> string[] collection = current2.string_4.Split(new char[]</p><p> {</p><p> ','</p><p> });</p><p> IEnumerable<string> enumerable2 = new List<string>(collection);</p><p> foreach (string current in enumerable2)</p><p> {</p><p> RoomItem class3 = this.method_28(Convert.ToUInt32(current));</p><p> if (class3 != null)</p><p> {</p><p> if (current2.string_2 != "0" && current2.string_2 != "")</p><p> {</p><p> ThreeDCoord gstruct1_ = class3.GStruct1_1;</p><p> int num5 = 0;</p><p> int num6 = 0;</p><p> int num7 = 0;</p><p> if (current2.string_2 == "1")</p><p> {</p><p> Random random3 = new Random();</p><p> num5 = random3.Next(1, 5);</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_2 == "2")</p><p> {</p><p> Random random3 = new Random();</p><p> num6 = random3.Next(1, 3);</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_2 == "3")</p><p> {</p><p> Random random3 = new Random();</p><p> num7 = random3.Next(1, 3);</p><p> }</p><p> }</p><p> }</p><p> if (current2.string_2 == "4" || num5 == 1 || num7 == 1)</p><p> {</p><p> gstruct1_ = class3.method_1(4);</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_2 == "5" || num5 == 2 || num6 == 1)</p><p> {</p><p> gstruct1_ = class3.method_1(6);</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_2 == "6" || num5 == 3 || num7 == 2)</p><p> {</p><p> gstruct1_ = class3.method_1(0);</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_2 == "7" || num5 == 4 || num6 == 2)</p><p> {</p><p> gstruct1_ = class3.method_1(2);</p><p> }</p><p> }</p><p> }</p><p> }</p><p> DataTable dataTable = null;</p><p> DataTable dataTable1 = null;</p><p> using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())</p><p> {</p><p> dataTable = @class.ReadDataTable("SELECT * FROM items WHERE room_id = '" + this.Id + "' AND x = '"+ gstruct1_.x +"'");</p><p> dataTable1 = @class.ReadDataTable("SELECT * FROM items WHERE room_id = '" + this.Id + "' AND y = '"+ gstruct1_.y +"'");</p><p> }</p><p> if (dataTable != null)</p><p> {</p><p> </p><p> if (this.RoomModel.squareState[gstruct1_.x, gstruct1_.y] == SquareState.OPEN)</p><p> {</p><p> </p><p></p><p> if (this.method_37(gstruct1_.x, gstruct1_.y, true, true, true, true, true, true, true) && class3.GetBaseItem().InteractionType != "wf_trg_timer")</p><p> {</p><p> this.method_41(class3, gstruct1_, current2.uint_0, 0);</p><p> }</p><p> }</p><p> </p><p> }</p><p> }</p><p> if (current2.string_3.Length > 0 && current2.string_3 != "0" && current2.string_3 != "")</p><p> {</p><p> int num5 = 0;</p><p> if (current2.string_3 == "1")</p><p> {</p><p> num5 = class3.int_3 + 2;</p><p> if (num5 > 6)</p><p> {</p><p> num5 = 0;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_3 == "2")</p><p> {</p><p> num5 = class3.int_3 - 2;</p><p> if (num5 < 0)</p><p> {</p><p> num5 = 6;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> if (current2.string_3 == "3")</p><p> {</p><p> Random random3 = new Random();</p><p> num5 = random3.Next(1, 5);</p><p> if (num5 == 1)</p><p> {</p><p> num5 = 0;</p><p> }</p><p> else</p><p> {</p><p> if (num5 == 2)</p><p> {</p><p> num5 = 2;</p><p> }</p><p> else</p><p> {</p><p> if (num5 == 3)</p><p> {</p><p> num5 = 4;</p><p> }</p><p> else</p><p> {</p><p> if (num5 == 4)</p><p> {</p><p> num5 = 6;</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }</p><p> </p><p> }</p><p> }</p><p> }</p><p> flag2 = true;</p><p> }</p><p> break;[/PHP]</p><p>[DOUBLEPOST=1441640402,1441632864][/DOUBLEPOST]In room.cs</p></blockquote><p></p>
[QUOTE="Mikeeeeeee, post: 350030, member: 41370"] Hello people! I have the fix of de move and rotate wired bugg. Search for: case "wf_act_moverotate": And replace it with: [PHP]case "wf_act_moverotate": current2.ExtraData = "1"; current2.UpdateState(false, true); current2.ReqUpdate(1); current2.method_9(); if (current2.string_4.Length > 0) { string[] collection = current2.string_4.Split(new char[] { ',' }); IEnumerable<string> enumerable2 = new List<string>(collection); foreach (string current in enumerable2) { RoomItem class3 = this.method_28(Convert.ToUInt32(current)); if (class3 != null) { if (current2.string_2 != "0" && current2.string_2 != "") { ThreeDCoord gstruct1_ = class3.GStruct1_1; int num5 = 0; int num6 = 0; int num7 = 0; if (current2.string_2 == "1") { Random random3 = new Random(); num5 = random3.Next(1, 5); } else { if (current2.string_2 == "2") { Random random3 = new Random(); num6 = random3.Next(1, 3); } else { if (current2.string_2 == "3") { Random random3 = new Random(); num7 = random3.Next(1, 3); } } } if (current2.string_2 == "4" || num5 == 1 || num7 == 1) { gstruct1_ = class3.method_1(4); } else { if (current2.string_2 == "5" || num5 == 2 || num6 == 1) { gstruct1_ = class3.method_1(6); } else { if (current2.string_2 == "6" || num5 == 3 || num7 == 2) { gstruct1_ = class3.method_1(0); } else { if (current2.string_2 == "7" || num5 == 4 || num6 == 2) { gstruct1_ = class3.method_1(2); } } } } DataTable dataTable = null; DataTable dataTable1 = null; using (DatabaseClient @class = GoldTree.GetDatabase().GetClient()) { dataTable = @class.ReadDataTable("SELECT * FROM items WHERE room_id = '" + this.Id + "' AND x = '"+ gstruct1_.x +"'"); dataTable1 = @class.ReadDataTable("SELECT * FROM items WHERE room_id = '" + this.Id + "' AND y = '"+ gstruct1_.y +"'"); } if (dataTable != null) { if (this.RoomModel.squareState[gstruct1_.x, gstruct1_.y] == SquareState.OPEN) { if (this.method_37(gstruct1_.x, gstruct1_.y, true, true, true, true, true, true, true) && class3.GetBaseItem().InteractionType != "wf_trg_timer") { this.method_41(class3, gstruct1_, current2.uint_0, 0); } } } } if (current2.string_3.Length > 0 && current2.string_3 != "0" && current2.string_3 != "") { int num5 = 0; if (current2.string_3 == "1") { num5 = class3.int_3 + 2; if (num5 > 6) { num5 = 0; } } else { if (current2.string_3 == "2") { num5 = class3.int_3 - 2; if (num5 < 0) { num5 = 6; } } else { if (current2.string_3 == "3") { Random random3 = new Random(); num5 = random3.Next(1, 5); if (num5 == 1) { num5 = 0; } else { if (num5 == 2) { num5 = 2; } else { if (num5 == 3) { num5 = 4; } else { if (num5 == 4) { num5 = 6; } } } } } } } } } } flag2 = true; } break;[/PHP] [DOUBLEPOST=1441640402,1441632864][/DOUBLEPOST]In room.cs [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[GTE] Move and rotate fix !
Top