• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[GTE] Move and rotate wired fix !

Newbie Spellweaver
Joined
Dec 22, 2013
Messages
10
Reaction score
2
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   [USER=437263]clas[/USER]s = GoldTree.GetDatabase().GetClient())                                                    {                                                        dataTable =   [USER=437263]clas[/USER]s.ReadDataTable("SELECT * FROM items WHERE room_id = '" + this.Id + "' AND x = '"+ gstruct1_.x +"'");                                                        dataTable1 =   [USER=437263]clas[/USER]s.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;
 
Experienced Elementalist
Joined
Apr 4, 2015
Messages
237
Reaction score
88
Thanks! What was the bug exactly? Can you show use with screens or something..
 
Experienced Elementalist
Joined
Jul 31, 2008
Messages
289
Reaction score
22
Thanks! :)
But could you post that in a better format? on pastebin.com for example? :)
Because the lines are fucked up :D
 
Newbie Spellweaver
Joined
Apr 16, 2014
Messages
26
Reaction score
2
I this have problem in AzureEmulator the wired not rotate and move in hi speed with the level wired :/
 
Back
Top