Beispiel #1
0
        private void DressItemContainerTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item dressBag = Assistant.World.FindItem(serial);

            if (dressBag == null)
            {
                return;
            }

            if (dressBag != null && dressBag.Serial.IsItem && dressBag.IsContainer)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Undress Container set to: " + dressBag.ToString(), false);
                }
                RazorEnhanced.Dress.AddLog("Undress Container set to: " + dressBag.ToString());
                RazorEnhanced.Dress.DressBag = (int)dressBag.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Invalid Undress Container, set backpack", false);
                }
                RazorEnhanced.Dress.AddLog("Invalid Undress Container, set backpack");
                RazorEnhanced.Dress.DressBag = (int)World.Player.Backpack.Serial.Value;
            }

            this.Invoke((MethodInvoker) delegate {
                RazorEnhanced.Settings.Dress.ListUpdate(dressListSelect.Text, RazorEnhanced.Dress.DressDelay, RazorEnhanced.Dress.DressBag, RazorEnhanced.Dress.DressConflict, true);
                RazorEnhanced.Dress.RefreshLists();
            });
        }
        private void ToolBarItemTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            this.Invoke((MethodInvoker) delegate
            {
                int index           = toolboxcountComboBox.SelectedIndex;
                Assistant.Item item = Assistant.World.FindItem(serial);

                if (item == null)
                {
                    return;
                }

                if (item.Serial.IsItem)
                {
                    toolboxcountNameTextBox.Text = item.Name;
                    int itemgraph = item.ItemID;
                    toolboxcountGraphTextBox.Text = itemgraph.ToString("X4");
                    toolboxcountHueTextBox.Text   = item.Hue.ToString("X4");
                    RazorEnhanced.Settings.Toolbar.UpdateItem(toolboxcountComboBox.SelectedIndex, toolboxcountNameTextBox.Text, toolboxcountGraphTextBox.Text, toolboxcountHueTextBox.Text, toolboxcountHueWarningCheckBox.Checked, toolboxcountWarningTextBox.Text);
                    RazorEnhanced.ToolBar.UptateToolBarComboBox(index);
                    RazorEnhanced.ToolBar.UpdatePanelImage();
                    RazorEnhanced.ToolBar.UpdateCount();
                }
            });
        }
Beispiel #3
0
 private static void GetInfoTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
 {
     Assistant.Item assistantItem = Assistant.World.FindItem(serial);
     if (assistantItem != null && assistantItem.Serial.IsItem)
     {
         Assistant.Engine.MainWindow.BeginInvoke((MethodInvoker) delegate
         {
             RazorEnhanced.UI.EnhancedItemInspector inspector = new RazorEnhanced.UI.EnhancedItemInspector(assistantItem);
             inspector.TopMost = true;
             inspector.Show();
         });
     }
     else
     {
         Assistant.Mobile assistantMobile = Assistant.World.FindMobile(serial);
         if (assistantMobile != null && assistantMobile.Serial.IsMobile)
         {
             Assistant.Engine.MainWindow.BeginInvoke((MethodInvoker) delegate
             {
                 RazorEnhanced.UI.EnhancedMobileInspector inspector = new RazorEnhanced.UI.EnhancedMobileInspector(assistantMobile);
                 inspector.TopMost = true;
                 inspector.Show();
             });
         }
     }
 }
Beispiel #4
0
        private void sellBagTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item sellBag = Assistant.World.FindItem(serial);

            if (sellBag == null)
            {
                return;
            }

            if (sellBag != null && sellBag.Serial.IsItem && sellBag.IsContainer && sellBag.RootContainer == Assistant.World.Player)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    Misc.SendMessage("Container set to: " + sellBag.ToString(), false);
                }
                SellAgent.AddLog("Container set to: " + sellBag.ToString());
                SellAgent.SellBag = (int)sellBag.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    Misc.SendMessage("Invalid container, set backpack", false);
                }
                SellAgent.AddLog("Invalid container, set backpack");
                SellAgent.SellBag = (int)World.Player.Backpack.Serial.Value;
            }

            this.Invoke((MethodInvoker) delegate {
                RazorEnhanced.Settings.SellAgent.ListUpdate(sellListSelect.Text, serial, true);
                RazorEnhanced.SellAgent.RefreshLists();
            });
        }
Beispiel #5
0
        private void autocarverbladeTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item blade = Assistant.World.FindItem(serial);

            if (blade == null)
            {
                return;
            }

            if (blade != null && blade.Serial.IsItem && blade.RootContainer == Assistant.World.Player)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("AutoCarve Blade Set to: " + blade.ToString(), false);
                }
                RazorEnhanced.Filters.AutoCarverBlade = (int)blade.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Invalid AutoCarve Blade", false);
                }
                RazorEnhanced.Filters.AutoCarverBlade = 0;
            }

            RazorEnhanced.Settings.General.WriteInt("AutoCarverBladeLabel", RazorEnhanced.Filters.AutoCarverBlade);
        }
Beispiel #6
0
        internal static void Engine()
        {
            // Check Bag
            Assistant.Item sbag = Assistant.World.FindItem(RestockSource);
            if (sbag == null)
            {
                if (Settings.General.ReadBool("ShowAgentMessageCheckBox"))
                {
                    Misc.SendMessage("Restock: Invalid Source Bag", 945);
                }
                AddLog("Invalid Source Bag");
                Assistant.Engine.MainWindow.RestockFinishWork();
                return;
            }
            Assistant.Item dbag = Assistant.World.FindItem(RestockDestination);
            if (dbag == null)
            {
                if (Settings.General.ReadBool("ShowAgentMessageCheckBox"))
                {
                    Misc.SendMessage("Restock: Invalid Destination Bag", 945);
                }
                AddLog("Invalid Destination Bag");
                Assistant.Engine.MainWindow.RestockFinishWork();
                return;
            }

            int exit = Engine(Settings.Restock.ItemsRead(RestockListName), RestockDelay, RestockSource, RestockDestination);
        }
Beispiel #7
0
        private void autoLootSetContainerTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item autoLootBag = Assistant.World.FindItem(serial);

            if (autoLootBag == null)
            {
                return;
            }

            if (autoLootBag != null && autoLootBag.Serial.IsItem && autoLootBag.IsContainer && autoLootBag.RootContainer == Assistant.World.Player)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Autoloot Container set to: " + autoLootBag.ToString(), false);
                }
                RazorEnhanced.AutoLoot.AddLog("Autoloot Container set to: " + autoLootBag.ToString());
                AutoLoot.AutoLootBag = (int)autoLootBag.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Invalid Autoloot Container, set backpack", false);
                }
                RazorEnhanced.AutoLoot.AddLog("Invalid Autoloot Container, set backpack");
                AutoLoot.AutoLootBag = (int)World.Player.Backpack.Serial.Value;
            }
            BeginInvoke((MethodInvoker) delegate {
                RazorEnhanced.Settings.AutoLoot.ListUpdate(autolootListSelect.Text, RazorEnhanced.AutoLoot.AutoLootDelay, serial, true, RazorEnhanced.AutoLoot.NoOpenCorpse, RazorEnhanced.AutoLoot.MaxRange);
                RazorEnhanced.AutoLoot.RefreshLists();
            });
        }
        private bool AcceptibleOrganizerTarget(Assistant.Item organizerBag)
        {
            if (organizerBag.ItemID == 0x2259)
            {
                return(true);
            }

            return(organizerBag.Serial.IsItem && organizerBag.IsContainer);
        }
Beispiel #9
0
 internal static int GetSecondaryAbility(Assistant.Item wep)
 {
     if (wep != null)
     {
         return((int)GetAbility(wep.ItemID.Value, m_Secondary));
     }
     else
     {
         return(0);
     }
 }
Beispiel #10
0
 private void DressItemTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
 {
     Assistant.Item dressItem = Assistant.World.FindItem(serial);
     if (dressItem != null && dressItem.Serial.IsItem)
     {
         this.Invoke((MethodInvoker) delegate { RazorEnhanced.Dress.AddItemByTarger(dressItem); });
     }
     else
     {
         if (showagentmessageCheckBox.Checked)
         {
             RazorEnhanced.Misc.SendMessage("Invalid target", false);
         }
         RazorEnhanced.Dress.AddLog("Invalid target");
     }
 }
        private void ScavengerItemContainerTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item scavengerBag = Assistant.World.FindItem(serial);

            if (scavengerBag == null)
            {
                return;
            }

            bool   bagOfSending = false;
            string prop         = Items.GetPropStringByIndex(serial, 0);

            if (prop.IndexOf("bag of sending", 0, StringComparison.CurrentCultureIgnoreCase) != -1)
            {
                bagOfSending = true;
            }

            if (scavengerBag != null && scavengerBag.Serial.IsItem && scavengerBag.IsLootableTarget && (!bagOfSending))
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Scavenger Container set to: " + scavengerBag.ToString(), false);
                }
                RazorEnhanced.Scavenger.AddLog("Scavenger Container set to: " + scavengerBag.ToString());
                Scavenger.ScavengerBag = (int)scavengerBag.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Invalid Scavenger Container, set backpack", false);
                }
                RazorEnhanced.Scavenger.AddLog("Invalid Scavenger Container, set backpack");
                Scavenger.ScavengerBag = (int)World.Player.Backpack.Serial.Value;
            }

            this.Invoke((MethodInvoker) delegate
            {
                RazorEnhanced.Settings.Scavenger.ListUpdate(scavengerListSelect.Text, RazorEnhanced.Scavenger.ScavengerDelay, serial, true, Scavenger.MaxRange);
                RazorEnhanced.Scavenger.RefreshLists();
            });
        }
Beispiel #12
0
 private void SellAgentItemTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
 {
     Assistant.Item sellItem = Assistant.World.FindItem(serial);
     if (sellItem != null && sellItem.Serial.IsItem)
     {
         if (showagentmessageCheckBox.Checked)
         {
             RazorEnhanced.Misc.SendMessage("Sell Agent item added: " + sellItem.ToString(), false);
         }
         RazorEnhanced.SellAgent.AddLog("Sell Agent item added: " + sellItem.ToString());
         this.Invoke((MethodInvoker) delegate { RazorEnhanced.SellAgent.AddItemToList(sellItem.Name, sellItem.ItemID, 999, sellItem.Hue); });
     }
     else
     {
         if (showagentmessageCheckBox.Checked)
         {
             RazorEnhanced.Misc.SendMessage("Invalid target", false);
         }
         RazorEnhanced.SellAgent.AddLog("Invalid target");
     }
 }
Beispiel #13
0
        private void OrganizerDestinationContainerTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item organizerBag = Assistant.World.FindItem((Assistant.Serial)((uint)serial));

            if (organizerBag == null)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Invalid Destination Container, set backpack", false);
                }
                RazorEnhanced.Organizer.AddLog("Invalid Destination Container, set backpack");
                RazorEnhanced.Organizer.OrganizerDestination = (int)World.Player.Backpack.Serial.Value;
                return;
            }

            if (organizerBag != null && organizerBag.Serial.IsItem && organizerBag.IsContainer)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Destination Container set to: " + organizerBag.ToString(), false);
                }
                RazorEnhanced.Organizer.AddLog("Destination Container set to: " + organizerBag.ToString());
                RazorEnhanced.Organizer.OrganizerDestination = (int)organizerBag.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    RazorEnhanced.Misc.SendMessage("Invalid Destination Container, set backpack", false);
                }
                RazorEnhanced.Organizer.AddLog("Invalid Destination Container, set backpack");
                RazorEnhanced.Organizer.OrganizerDestination = (int)World.Player.Backpack.Serial.Value;
            }

            this.Invoke((MethodInvoker) delegate {
                RazorEnhanced.Settings.Organizer.ListUpdate(organizerListSelect.Text, RazorEnhanced.Organizer.OrganizerDelay, RazorEnhanced.Organizer.OrganizerSource, serial, true);
                RazorEnhanced.Organizer.RefreshLists();
            });
        }
Beispiel #14
0
        private void RestockSourceContainerTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
        {
            Assistant.Item restockBag = Assistant.World.FindItem((Assistant.Serial)((uint)serial));
            if (restockBag == null)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    Misc.SendMessage("Invalid Source Container, set backpack", false);
                }
                Restock.AddLog("Invalid Source Container, set backpack");
                Restock.RestockSource = (int)World.Player.Backpack.Serial.Value;
                return;
            }

            if (restockBag != null && restockBag.Serial.IsItem && restockBag.IsContainer)
            {
                if (showagentmessageCheckBox.Checked)
                {
                    Misc.SendMessage("Source Container set to: " + restockBag.ToString(), false);
                }
                Restock.AddLog("Source Container set to: " + restockBag.ToString());
                Restock.RestockSource = (int)restockBag.Serial.Value;
            }
            else
            {
                if (showagentmessageCheckBox.Checked)
                {
                    Misc.SendMessage("Invalid Source Container, set backpack", false);
                }
                Restock.AddLog("Invalid Source Container, set backpack");
                Restock.RestockSource = (int)World.Player.Backpack.Serial.Value;
            }

            this.Invoke((MethodInvoker) delegate
            {
                Settings.Restock.ListUpdate(restockListSelect.Text, Restock.RestockDelay, serial, Restock.RestockDestination, true);
                Restock.RefreshLists();
            });
        }
Beispiel #15
0
 internal static void GetInfoTarget_Callback(bool loc, Assistant.Serial serial, Assistant.Point3D pt, ushort itemid)
 {
     if (loc)             // Target on ground or static
     {
         Engine.MainWindow.SafeAction(s =>
         {
             RazorEnhanced.UI.EnhancedStaticInspector inspector = new RazorEnhanced.UI.EnhancedStaticInspector(pt);
             inspector.TopMost = true;
             inspector.Show();
         });
     }
     else              // Target item or mobile
     {
         Assistant.Item assistantItem = Assistant.World.FindItem(serial);
         if (assistantItem != null && assistantItem.Serial.IsItem)
         {
             Engine.MainWindow.SafeAction(s =>
             {
                 RazorEnhanced.UI.EnhancedItemInspector inspector = new RazorEnhanced.UI.EnhancedItemInspector(assistantItem);
                 inspector.TopMost = true;
                 inspector.Show();
             });
         }
         else
         {
             Assistant.Mobile assistantMobile = Assistant.World.FindMobile(serial);
             if (assistantMobile != null && assistantMobile.Serial.IsMobile)
             {
                 Assistant.Engine.MainWindow.SafeAction(s => {
                     RazorEnhanced.UI.EnhancedMobileInspector inspector = new RazorEnhanced.UI.EnhancedMobileInspector(assistantMobile);
                     inspector.TopMost = true;
                     inspector.Show();
                 });
             }
         }
     }
 }
Beispiel #16
0
        private void sellEnableCheck_CheckedChanged(object sender, EventArgs e)
        {
            if (World.Player == null)              // offline
            {
                if (sellEnableCheckBox.Checked)
                {
                    sellEnableCheckBox.Checked = false;
                    SellAgent.AddLog("You are not logged in game!");
                }
                return;
            }

            if (sellListSelect.Text == String.Empty)             // Nessuna lista
            {
                if (sellEnableCheckBox.Checked)
                {
                    sellEnableCheckBox.Checked = false;
                    SellAgent.AddLog("Item list not selected!");
                }
                return;
            }

            if (sellEnableCheckBox.Checked)
            {
                Assistant.Item bag = Assistant.World.FindItem(SellAgent.SellBag);

                if (bag != null && (bag.RootContainer != World.Player || !bag.IsContainer))
                {
                    SellAgent.AddLog("Invalid or not accessible Container!");
                    if (showagentmessageCheckBox.Checked)
                    {
                        Misc.SendMessage("Invalid or not accessible Container!", false);
                    }
                    sellEnableCheckBox.Checked = false;
                }
                else
                {
                    sellListSelect.Enabled       = false;
                    sellAddListButton.Enabled    = false;
                    sellRemoveListButton.Enabled = false;
                    sellImportListButton.Enabled = false;
                    sellExportListButton.Enabled = false;
                    sellCloneListButton.Enabled  = false;
                    SellAgent.AddLog("Apply item list " + sellListSelect.SelectedItem.ToString() + " filter ok!");
                    if (showagentmessageCheckBox.Checked)
                    {
                        Misc.SendMessage("Apply item list " + sellListSelect.SelectedItem.ToString() + " filter ok!", false);
                    }
                    SellAgent.EnableSellFilter();
                }
            }
            else
            {
                sellListSelect.Enabled       = true;
                sellAddListButton.Enabled    = true;
                sellRemoveListButton.Enabled = true;
                sellImportListButton.Enabled = true;
                sellExportListButton.Enabled = true;
                sellCloneListButton.Enabled  = true;
                if (sellListSelect.Text != String.Empty)
                {
                    RazorEnhanced.SellAgent.AddLog("Remove item list " + sellListSelect.SelectedItem.ToString() + " filter ok!");
                    if (showagentmessageCheckBox.Checked)
                    {
                        RazorEnhanced.Misc.SendMessage("Remove item list " + sellListSelect.SelectedItem.ToString() + " filter ok!", false);
                    }
                }
            }
        }
Beispiel #17
0
 internal EnhancedItemInspector(Assistant.Item itemTarg)
 {
     InitializeComponent();
     MaximizeBox = false;
     m_itemTarg  = itemTarg;
 }
Beispiel #18
0
        internal static bool MakeWallStatic(Assistant.Item wall)
        {
            switch (wall.ItemID)
            {
            case 0x0080:
            case 0x0082:
                wall.ItemID = WallStaticIDStone;
                wall.Hue    = (ushort)WallColor.Stone;
                Client.Instance.SendToClient(new WorldItem(wall));
                if (Config.GetBool("ShowStaticWallLabels"))
                {
                    Client.Instance.SendToClient(new UnicodeMessage(wall.Serial, wall.ItemID, MessageType.Regular,
                                                                    (ushort)WallColor.Stone, 3, Language.CliLocName, wall.Name, "[Wall Of Stone]"));
                }
                return(true);

            case 0x3996:
            case 0x398C:
                wall.ItemID = WallStaticID;
                wall.Hue    = (ushort)WallColor.Fire;
                Client.Instance.SendToClient(new WorldItem(wall));
                if (Config.GetBool("ShowStaticWallLabels"))
                {
                    Client.Instance.SendToClient(new UnicodeMessage(wall.Serial, wall.ItemID, MessageType.Regular,
                                                                    (ushort)WallColor.Fire, 3, Language.CliLocName, wall.Name, "[Fire Field]"));
                }
                return(true);

            case 0x3915:
            case 0x3920:
            case 0x3922:
                wall.ItemID = WallStaticID;
                wall.Hue    = (ushort)WallColor.Poison;
                Client.Instance.SendToClient(new WorldItem(wall));
                if (Config.GetBool("ShowStaticWallLabels"))
                {
                    Client.Instance.SendToClient(new UnicodeMessage(wall.Serial, wall.ItemID, MessageType.Regular,
                                                                    (ushort)WallColor.Poison, 3, Language.CliLocName, wall.Name, "[Poison Field]"));
                }
                return(true);

            case 0x3967:
            case 0x3979:
                wall.ItemID = WallStaticID;
                wall.Hue    = (ushort)WallColor.Paralyze;
                Client.Instance.SendToClient(new WorldItem(wall));
                if (Config.GetBool("ShowStaticWallLabels"))
                {
                    Client.Instance.SendToClient(new UnicodeMessage(wall.Serial, wall.ItemID, MessageType.Regular,
                                                                    (ushort)WallColor.Paralyze, 3, Language.CliLocName, wall.Name, "[Paralyze Field]"));
                }
                return(true);

            case 0x3946:
            case 0x3956:
                wall.ItemID = WallStaticID;
                wall.Hue    = (ushort)WallColor.Energy;
                Client.Instance.SendToClient(new WorldItem(wall));
                if (Config.GetBool("ShowStaticWallLabels"))
                {
                    Client.Instance.SendToClient(new UnicodeMessage(wall.Serial, wall.ItemID, MessageType.Regular,
                                                                    (ushort)WallColor.Energy, 3, Language.CliLocName, wall.Name, "[Energy Field]"));
                }
                return(true);

            default:
                return(false);
            }
        }
Beispiel #19
0
        private int GetAttribute(string attributename)
        {
            int attributevalue = 0;

            Assistant.Item itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Arms);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Bracelet);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Cloak);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Earrings);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Gloves);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Head);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.InnerLegs);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.InnerTorso);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.LeftHand);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.MiddleTorso);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Neck);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.OuterLegs);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.OuterTorso);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Pants);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.RightHand);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Ring);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Shirt);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Shoes);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Unused_x9);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Unused_xF);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            itemtocheck = m_mobile.GetItemOnLayer(Assistant.Layer.Waist);
            if (itemtocheck != null)
            {
                if (!itemtocheck.PropsUpdated)
                {
                    RazorEnhanced.Items.WaitForProps(itemtocheck.Serial, 1000);
                    Thread.Sleep(50);
                }
                attributevalue = attributevalue + RazorEnhanced.Items.GetPropValue(itemtocheck.Serial, attributename);
            }

            return(attributevalue);
        }