Hello I want to disable/remote HC from my custom Azure 0190 edit how would I do this
@Jonteh you might be able to help me
Hello I want to disable/remote HC from my custom Azure 0190 edit how would I do this
@Jonteh you might be able to help me
Yes I think I want to make it free so everyone gets free clothes and styles so yeah
I only have the latest Azure source but I've taken a look and you should be able to do this by changing:
to:Code:/// <summary> /// Gets a value indicating whether this instance has subscription. /// </summary> /// <value><c>true</c> if this instance has subscription; otherwise, <c>false</c>.</value> internal bool HasSubscription { get { return _subscription != null && _subscription.IsValid; } }
Code:/// <summary> /// Gets a value indicating whether this instance has subscription. /// </summary> /// <value><c>true</c> if this instance has subscription; otherwise, <c>false</c>.</value> internal bool HasSubscription { get { return true; } }
It didn't work @Jonteh
Code:Bug during user login: System.NullReferenceException: Object reference not set to an instance of an object. at Azure.HabboHotel.Achievements.AchievementManager.TryProgressHabboClubAchievements(GameClient Session) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\HabboHotel\Achievements\AchievementManager.cs:line 134 at Azure.HabboHotel.GameClients.GameClient.TryLogin(String authTicket) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\HabboHotel\GameClients\GameClient.cs:line 302 Exception logged 29/11/2015 5:54:43 AM in packet handling ----> 3347: System.NullReferenceException: Object reference not set to an instance of an object. at Azure.HabboHotel.Users.Habbo.SerializeClub() in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\HabboHotel\Users\Habbo.cs:line 818 at Azure.Messages.Parsers.PacketLibrary.GetSubscriptionData(GameClientMessageHandler handler) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\Messages\Parsers\PacketLibrary.cs:line 1768 at Azure.Messages.Parsers.LibraryParser.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\Messages\Parsers\LibraryParser.cs:line 110 at Azure.Connection.Net.GamePacketParser.HandlePacketData(Byte[] data) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\Connection\Net\GamePacketParser.cs:line 86 Source: Azure.Emulator Data: Message: Object reference not set to an instance of an object. Stack trace: at Azure.HabboHotel.Users.Habbo.SerializeClub() in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\HabboHotel\Users\Habbo.cs:line 818 at Azure.Messages.Parsers.PacketLibrary.GetSubscriptionData(GameClientMessageHandler handler) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\Messages\Parsers\PacketLibrary.cs:line 1768 at Azure.Messages.Parsers.LibraryParser.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\Messages\Parsers\LibraryParser.cs:line 110 at Azure.Connection.Net.GamePacketParser.HandlePacketData(Byte[] data) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\Connection\Net\GamePacketParser.cs:line 86
Alright mate, give me a second and I'll download the source and take a look then reply again to the thread.
- - - Updated - - -
While keeping the edit I provided first,
find:
Replace that entire void withCode:internal void SerializeClub()
Should do the trick.Code:internal void SerializeClub() { var client = GetClient(); var serverMessage = new ServerMessage(); serverMessage.Init(LibraryParser.OutgoingRequest("SubscriptionStatusMessageComposer")); serverMessage.AppendString("club_habbo"); serverMessage.AppendInteger(30); serverMessage.AppendInteger(1); serverMessage.AppendInteger(1); serverMessage.AppendInteger(0); serverMessage.AppendBool(true); serverMessage.AppendBool(true); serverMessage.AppendInteger(30); serverMessage.AppendInteger(0); serverMessage.AppendInteger(495); client.SendMessage(serverMessage); var serverMessage2 = new ServerMessage(LibraryParser.OutgoingRequest("UserClubRightsMessageComposer")); serverMessage2.AppendInteger(2); serverMessage2.AppendInteger(Rank); serverMessage2.AppendBool(Rank >= Convert.ToUInt32(AzureEmulator.GetDbConfig().DbData["ambassador.minrank"])); client.SendMessage(serverMessage2); }
Bug during user login: System.NullReferenceException: Object reference not set to an instance of an object.
at Azure.HabboHotel.Users.Habbo.HasFuse(String fuse) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\HabboHotel\Users\Habbo.cs:line 776
at Azure.HabboHotel.GameClients.GameClient.TryLogin(String authTicket) in C:\Users\Administrator\Desktop\Azure\Azure.Emulator\HabboHotel\GameClients\GameClient.cs:line 292 @Jonteh
Just add me on skype ? xxkile
Sorry but I don't add people on Skype. It seems the Azure developers have made multiple references to the first edit I changed which then tries and pulls from the subscriptions which ends up as a null reference because it doesn't exist.
If you revert your changes, I can whip up a script to add to your client.php if you would prefer that. Which CMS do you use? I would much rather do this as it stops us from having to edit a bunch of stuff and to be honest I hate staring at the code of Azure :P
I use wCMS (WabboCMS) the one louis made and do you have and emulators you'd let me use (I am not a leecher fuck that shit)
Code:<?phpdefine('External_x_vars', TRUE); define('External_x_texts', TRUE); ?> <?php if(!defined('IN_INDEX')) { die('Access Denied.'); } $banned = mysql_fetch_assoc(mysql_query("SELECT value FROM bans WHERE (value = '".$_SESSION['user']['username']."' AND expire > '".time()."') OR (value = '".$_SERVER['REMOTE_ADDR']."' AND expire > '".time()."') LIMIT 1")); if(isset($banned['value'])) { header("Location: ".$_CONFIG['hotel']['url']."/banned"); exit; } $look = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE id ='".$_SESSION['user']['id']."'")); if(isset($_GET['error'])) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>%hotel_name% ~ Disconnected</title> <link rel="shortcut icon" href="%www%/favicon.ico" type="image/vnd.microsoft.icon"> <link rel="stylesheet" type="text/css" media="screen" href="%www%/Files/css/wubbo.css" /> <script type="text/javascript" src="%www%/Files/js/jquery.js"></script> <script type="text/javascript" src="%www%/Files/js/wubbo.js"></script> </head> <body> <div class="disconnected"> <div class="c-box-disconnected"> <div class="c-title red">Disconnected</div> <div class="c-main-disconnected"> <center> <img src="%www%/images/loderse.gif" height="110" width="64"><br><br> You were disconnected from %hotel_name%!<br><br> <a href="%client_url%">Please click here to reload!</a> </center> </div> </div> </div> </body> </html> <?php } else { $client_host = '%client_host%'; $client_port = '%client_port%'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>%hotel_name% ~ Client</title> <link rel="stylesheet" href="%www%/files/client/css/client.css" type="text/css"> <script type="text/javascript" src="%www%/files/client/swfobject.js"></script> </head> <body> <script type="text/javascript"> var BaseUrl = "%www%/swf/"; var flashvars = { "client.starting" : "Please wait, %hotel_name% is loading", "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "0", "connection.info.host" : "secure.xotel.co", "connection.info.port" : "1337", "site.url" : "%www%", "url.prefix" : "%www%", "hotelview.banner.url" : "http://xotel.co/game/gamedata/banner.php", "client.fatal.error.url" : "%www%/client/error", "client.connection.failed.url" : "%www%/client/error", "client.connection.failed.url" : "%www%/me", "external.variables.txt" : "%www%/%external_vars%", "external.texts.txt" : "%www%/%external_texts%", "productdata.load.url" : "%www%/%product_data%", "furnidata.load.url" : "%www%/%furni_data%", "use.sso.ticket" : "1", "sso.ticket" : "%sso%", "processlog.enabled" : "0", "flash.client.url" : BaseUrl, "flash.client.origin" : "popup" }; var params = { "base" : BaseUrl + "/", "allowScriptAccess" : "always", "menu" : "false" }; swfobject.embedSWF(BaseUrl + "Azure190.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null); </script> <div id="client"></div> </body> </html> <?php } ?>
Try this.
Pretty sure the Subscription ID is 1. Though if it's not, you'd just need to edit my query.Code:<?phpdefine('External_x_vars', TRUE); define('External_x_texts', TRUE); ?> <?php if(!defined('IN_INDEX')) { die('Access Denied.'); } $banned = mysql_fetch_assoc(mysql_query("SELECT value FROM bans WHERE (value = '".$_SESSION['user']['username']."' AND expire > '".time()."') OR (value = '".$_SERVER['REMOTE_ADDR']."' AND expire > '".time()."') LIMIT 1")); if(isset($banned['value'])) { header("Location: ".$_CONFIG['hotel']['url']."/banned"); exit; } $look = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE id ='".$_SESSION['user']['id']."'")); if(isset($_GET['error'])) { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>%hotel_name% ~ Disconnected</title> <link rel="shortcut icon" href="%www%/favicon.ico" type="image/vnd.microsoft.icon"> <link rel="stylesheet" type="text/css" media="screen" href="%www%/Files/css/wubbo.css" /> <script type="text/javascript" src="%www%/Files/js/jquery.js"></script> <script type="text/javascript" src="%www%/Files/js/wubbo.js"></script> </head> <body> <div class="disconnected"> <div class="c-box-disconnected"> <div class="c-title red">Disconnected</div> <div class="c-main-disconnected"> <center> <img src="%www%/images/loderse.gif" height="110" width="64"><br><br> You were disconnected from %hotel_name%!<br><br> <a href="%client_url%">Please click here to reload!</a> </center> </div> </div> </div> </body> </html> <?php } else { $client_host = '%client_host%'; $client_port = '%client_port%'; if(mysql_num_rows(mysql_query("SELECT user_id FROM users_subscriptions WHERE user_id = '" . $_SESSION['user']['id'] . "'")) < 1) { $timeExpire = time() + 1314000; // 1 year mysql_query("INSERT INTO users_subscriptions (user_id, subscription_id, timestamp_activated, timestamp_expire, timestamp_lastgift) VALUES ('" . $_SESSION['user']['id'] . "', '1', '" . time() . "', '" . $timeExpire . "', '" . time() . "')"); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>%hotel_name% ~ Client</title> <link rel="stylesheet" href="%www%/files/client/css/client.css" type="text/css"> <script type="text/javascript" src="%www%/files/client/swfobject.js"></script> </head> <body> <script type="text/javascript"> var BaseUrl = "%www%/swf/"; var flashvars = { "client.starting" : "Please wait, %hotel_name% is loading", "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "0", "connection.info.host" : "secure.xotel.co", "connection.info.port" : "1337", "site.url" : "%www%", "url.prefix" : "%www%", "hotelview.banner.url" : "http://xotel.co/game/gamedata/banner.php", "client.fatal.error.url" : "%www%/client/error", "client.connection.failed.url" : "%www%/client/error", "client.connection.failed.url" : "%www%/me", "external.variables.txt" : "%www%/%external_vars%", "external.texts.txt" : "%www%/%external_texts%", "productdata.load.url" : "%www%/%product_data%", "furnidata.load.url" : "%www%/%furni_data%", "use.sso.ticket" : "1", "sso.ticket" : "%sso%", "processlog.enabled" : "0", "flash.client.url" : BaseUrl, "flash.client.origin" : "popup" }; var params = { "base" : BaseUrl + "/", "allowScriptAccess" : "always", "menu" : "false" }; swfobject.embedSWF(BaseUrl + "Azure190.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null); </script> <div id="client"></div> </body> </html> <?php } ?>
Thank!