Mikeeeeeee
New Member
- Dec 31, 2013
- 5
- 1
Hello people!
I have the fix of de move and rotate wired bugg.
Search for: case "wf_act_moverotate":
And replace it with:
In room.cs
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;
In room.cs