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 Q&A
PlusEMU wont start
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="Wolverine" data-source="post: 462715" data-attributes="member: 50862"><p>I'm having issues with my plusemu, I'm confused why it wont start</p><p></p><p><a href="http://prntscr.com/tin5w2" target="_blank">http://prntscr.com/tin5w2</a></p><p></p><p>Here's my CatalogDeal.cs</p><p>[CODE=csharp]using Plus.Database.Interfaces;</p><p>using Plus.HabboHotel.Items;</p><p>using System;</p><p>using System.Collections.Generic;</p><p>using System.Data;</p><p>using System.Linq;</p><p></p><p>namespace Plus.HabboHotel.Catalog</p><p>{</p><p> public class CatalogDeal</p><p> {</p><p> public int Id</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int PageId</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public List<CatalogItem> ItemDataList</p><p> {</p><p> get;</p><p> private set;</p><p> }</p><p></p><p> public string DisplayName</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int CostCredits</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int CostPixels</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int CostDiamonds</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int RoomId</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public string BadgeId</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int PetId</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public int clubLevel</p><p> {</p><p> get;</p><p> set;</p><p> }</p><p></p><p> public CatalogDeal(int Id, int PageId, string Items, string DisplayName, int Credits, int Pixels, int Diamonds, ItemDataManager ItemDataManager, int RoomId, string BadgeId, int PetId, int clubLevel)</p><p> {</p><p> this.Id = Id;</p><p> this.PageId = PageId;</p><p> this.DisplayName = DisplayName;</p><p> this.ItemDataList = new List<CatalogItem>();</p><p> bool flag = RoomId != 0;</p><p> string[] array2;</p><p> checked</p><p> {</p><p> if (flag)</p><p> {</p><p> Dictionary<int, int> dictionary = new Dictionary<int, int>();</p><p> using (IQueryAdapter queryReactor = PlusEnvironment.GetDatabaseManager().GetQueryReactor())</p><p> {</p><p> queryReactor.SetQuery("SELECT `items`.base_item, COALESCE(`items_groups`.`group_id`, 0) AS `group_id` FROM `items` LEFT OUTER JOIN `items_groups` ON `items`.`id` = `items_groups`.`id` WHERE `items`.`room_id` = @rid;");</p><p> queryReactor.AddParameter("rid", RoomId);</p><p> DataTable table = queryReactor.getTable();</p><p> bool flag2 = table != null;</p><p> if (flag2)</p><p> {</p><p> foreach (DataRow dataRow in table.Rows)</p><p> {</p><p> int num = Convert.ToInt32(dataRow["base_item"]);</p><p> bool flag3 = dictionary.ContainsKey(num);</p><p> if (flag3)</p><p> {</p><p> Dictionary<int, int> arg_CB_0 = dictionary;</p><p> int key = num;</p><p> int num2 = arg_CB_0[key];</p><p> arg_CB_0[key] = num2 + 1;</p><p> }</p><p> else</p><p> {</p><p> dictionary.Add(num, 1);</p><p> }</p><p> }</p><p> }</p><p> }</p><p> foreach (KeyValuePair<int, int> current in dictionary)</p><p> {</p><p> Items = string.Concat(new object[]</p><p> {</p><p> Items,</p><p> current.Key,</p><p> "*",</p><p> current.Value,</p><p> ";"</p><p> });</p><p> }</p><p> bool flag4 = dictionary.ToList<KeyValuePair<int, int>>().Count > 0;</p><p> if (flag4)</p><p> {</p><p> Items = Items.Remove(Items.Length - 1);</p><p> }</p><p> }</p><p> string[] array = Items.Split(new char[]</p><p> {</p><p> ';'</p><p> });</p><p> array2 = array;</p><p> }</p><p> for (int i = 0; i < array2.Length; i++)</p><p> {</p><p> string text = array2[i];</p><p> string[] array3 = text.Split(new char[]</p><p> {</p><p> '*'</p><p> });</p><p> int num3 = 0;</p><p> int amount = 0;</p><p> bool flag5 = !int.TryParse(array3[0], out num3) || !int.TryParse(array3[1], out amount);</p><p> if (!flag5)</p><p> {</p><p> ItemData data = null;</p><p> bool flag6 = !ItemDataManager.GetItem(num3, out data);</p><p> if (!flag6)</p><p> {</p><p> this.ItemDataList.Add(new CatalogItem(0, num3, data, string.Empty, PageId, 0, 0, 0, amount, 0, 0, false, "", "", 0, 0));</p><p> }</p><p> }</p><p> }</p><p> this.CostCredits = Credits;</p><p> this.CostPixels = Pixels;</p><p> this.CostDiamonds = Diamonds;</p><p> this.RoomId = RoomId;</p><p> this.BadgeId = BadgeId;</p><p> this.PetId = PetId;</p><p> this.clubLevel = clubLevel;</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Wolverine, post: 462715, member: 50862"] I'm having issues with my plusemu, I'm confused why it wont start [URL]http://prntscr.com/tin5w2[/URL] Here's my CatalogDeal.cs [CODE=csharp]using Plus.Database.Interfaces; using Plus.HabboHotel.Items; using System; using System.Collections.Generic; using System.Data; using System.Linq; namespace Plus.HabboHotel.Catalog { public class CatalogDeal { public int Id { get; set; } public int PageId { get; set; } public List<CatalogItem> ItemDataList { get; private set; } public string DisplayName { get; set; } public int CostCredits { get; set; } public int CostPixels { get; set; } public int CostDiamonds { get; set; } public int RoomId { get; set; } public string BadgeId { get; set; } public int PetId { get; set; } public int clubLevel { get; set; } public CatalogDeal(int Id, int PageId, string Items, string DisplayName, int Credits, int Pixels, int Diamonds, ItemDataManager ItemDataManager, int RoomId, string BadgeId, int PetId, int clubLevel) { this.Id = Id; this.PageId = PageId; this.DisplayName = DisplayName; this.ItemDataList = new List<CatalogItem>(); bool flag = RoomId != 0; string[] array2; checked { if (flag) { Dictionary<int, int> dictionary = new Dictionary<int, int>(); using (IQueryAdapter queryReactor = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { queryReactor.SetQuery("SELECT `items`.base_item, COALESCE(`items_groups`.`group_id`, 0) AS `group_id` FROM `items` LEFT OUTER JOIN `items_groups` ON `items`.`id` = `items_groups`.`id` WHERE `items`.`room_id` = @rid;"); queryReactor.AddParameter("rid", RoomId); DataTable table = queryReactor.getTable(); bool flag2 = table != null; if (flag2) { foreach (DataRow dataRow in table.Rows) { int num = Convert.ToInt32(dataRow["base_item"]); bool flag3 = dictionary.ContainsKey(num); if (flag3) { Dictionary<int, int> arg_CB_0 = dictionary; int key = num; int num2 = arg_CB_0[key]; arg_CB_0[key] = num2 + 1; } else { dictionary.Add(num, 1); } } } } foreach (KeyValuePair<int, int> current in dictionary) { Items = string.Concat(new object[] { Items, current.Key, "*", current.Value, ";" }); } bool flag4 = dictionary.ToList<KeyValuePair<int, int>>().Count > 0; if (flag4) { Items = Items.Remove(Items.Length - 1); } } string[] array = Items.Split(new char[] { ';' }); array2 = array; } for (int i = 0; i < array2.Length; i++) { string text = array2[i]; string[] array3 = text.Split(new char[] { '*' }); int num3 = 0; int amount = 0; bool flag5 = !int.TryParse(array3[0], out num3) || !int.TryParse(array3[1], out amount); if (!flag5) { ItemData data = null; bool flag6 = !ItemDataManager.GetItem(num3, out data); if (!flag6) { this.ItemDataList.Add(new CatalogItem(0, num3, data, string.Empty, PageId, 0, 0, 0, amount, 0, 0, false, "", "", 0, 0)); } } } this.CostCredits = Credits; this.CostPixels = Pixels; this.CostDiamonds = Diamonds; this.RoomId = RoomId; this.BadgeId = BadgeId; this.PetId = PetId; this.clubLevel = clubLevel; } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEMU wont start
Top