- Joined
- Oct 4, 2008
- Messages
- 1,050
- Reaction score
- 308
profiles in client don't work?
To fix user profiles; http://forum.ragezone.com/f353/release-swift-emulator-fixes-edits-931655/index51.html#post7690790
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!profiles in client don't work?
Well this is not my fix, i found in ragezone... I just make the ajusts to work fine in Swift...
Let's Fix!
1° Add in Messages > GameClientMessageHandler.cs:
Code:internal void Staffpick() { uint num = this.Request.PopWiredUInt(); if (this.Session.GetHabbo().Rank < 5) { this.Session.SendNotif(LanguageLocale.GetValue("staffpick.permission")); } if (this.Session.GetHabbo().Rank > 5) { Room room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(num); int num2 = 0; using (IQueryAdapter queryreactor = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { queryreactor.setQuery("SELECT * FROM navigator_publics_new WHERE room_id = '" + num + "'"); if (queryreactor.getRow() != null) { num2 = 1; } } if (num2 == 0) { this.Session.SendNotif(LanguageLocale.GetValue("staffpick.addedroom")); room.staff_pick = true; using (IQueryAdapter queryreactor = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { queryreactor.runFastQuery(string.Concat(new object[] { "INSERT INTO `navigator_publics_new` (`bannertype`, `caption`, `room_id`, `category_id`, `category_parent_id`, `image`, `image_type`, `typeofdata`) VALUES ('1', '", room.Name, "', '", num, "', '", ButterflyEnvironment.staff_pick_category, "', '", ButterflyEnvironment.staff_pick_category, "', 'officialrooms_hq/staffpickfolder.gif', 'internal', '3')" })); queryreactor.runFastQuery(string.Concat(new object[] { "UPDATE rooms SET is_picked = '1' WHERE id = ", num, "" })); queryreactor.runFastQuery(string.Concat(new object[] { "UPDATE users SET staffpicks = staffpicks +1 WHERE id = ", room.OwnerId, "" })); ButterflyEnvironment.GetGame().GetNavigator().Initialize(queryreactor); } } else { this.Session.SendNotif(LanguageLocale.GetValue("staffpick.removedroom")); room.staff_pick = false; using (IQueryAdapter queryreactor = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { queryreactor.runFastQuery("DELETE FROM `navigator_publics_new` WHERE (`room_id`='" + num + "')"); queryreactor.runFastQuery(string.Concat(new object[] { "UPDATE rooms SET is_picked = '0' WHERE id = ", num, "" })); ButterflyEnvironment.GetGame().GetNavigator().Initialize(queryreactor); } } ServerMessage message = new ServerMessage(3116); message.AppendBoolean(false); message.AppendInt32(room.RoomId); message.AppendString(room.Name); message.AppendBoolean(true); message.AppendInt32(room.OwnerId); message.AppendString(room.Owner); message.AppendInt32(room.State); message.AppendInt32(room.UsersNow); message.AppendInt32(room.UsersMax); message.AppendString(room.Description); message.AppendInt32(0); message.AppendInt32((room.Category == 52) ? 2 : 0); message.AppendInt32(room.Score); message.AppendInt32(0); message.AppendInt32(room.Category); if (room.GroupId == 0) { message.AppendInt32(0); message.AppendInt32(0); } else { MyGuild guild = ButterflyEnvironment.GetGame().GetGuilds().GetGuild(room.GroupId); message.AppendInt32(guild.Id); message.AppendString(guild.Name); message.AppendString(guild.Image); } message.AppendString(""); message.AppendInt32(room.TagCount); foreach (string string_ in room.Tags) { message.AppendString(string_); } message.AppendInt32(0); message.AppendInt32(0); message.AppendInt32(0); message.AppendBoolean(true); message.AppendBoolean(true); message.AppendInt32(0); message.AppendInt32(0); message.AppendBoolean(false); message.AppendBoolean(room.staff_pick); message.AppendBoolean(false); message.AppendInt32(0); message.AppendInt32(0); message.AppendInt32(0); message.AppendBoolean(false); message.AppendBoolean(true); this.Session.SendMessage(message); room.SendMessage(message); } }
2° Add this in Messages > SharedPacketLib.cs:
Code:internal static void Staffpick(GameClientMessageHandler handler) { handler.Staffpick(); }
3° Add this in Messages > StaticClientMessageHandler.cs:
Code:handlers.Add(Incoming.Staffpick, new StaticRequestHandler(SharedPacketLib.Staffpick));
4° Add this in HabboEvents > Incoming.cs:
Code:public static int Staffpick;
5° In the same document of above add this too:
Code:Incoming.Staffpick = 1329;
6° In HabboHotel > Rooms > Room.cs search for:
And above add:Code:private List<RoomBot> Bots;
Code:internal bool staff_pick;
7° In ButterflyEnvironment.cs search for:
And above add:Code:internal static bool useSSO;
Code:internal static int staff_pick_category = 3;// Your Navigator Publics Category
And for finish, add this lines in your "Locale" Document. You can found in "bin > Debug > System > locale.ini"
Code:[STAFFPICK] staffpick.permission=You don't have permission to do this! staffpick.addedroom=Room added to Staff Pick! staffpick.removedroom=Room removed from Staff Pick!
Well, now i'm working in the Promoted Rooms... I already have the catalogue working very fine, now i'll fix in the navigator and later i post.. And i'll work on Horses!
You need help? Support in: helpiiii or helpi95@live.com
ya
ALTER TABLE `rooms` ADD `is_picked` int(3) NOT NULL DEFAULT '0';
ALTER TABLE `users` ADD `staffpicks` int(15) NOT NULL DEFAULT '0';
Does this not have chatlogs? Because there's nothing being saved into the chatlogs table in the database!? And when I go to debug the emulator, I get this error: Error 1 'Butterfly.HabboHotel.RoomBots.GenericBot' does not implement inherited abstract member 'Butterfly.HabboHotel.RoomBots.BotAI.OnUserShout(Butterfly.HabboHotel.Rooms.RoomUser, string)' C:\Users\Liam\Desktop\Obbo Emulator - R63B\Butterfly\HabboHotel\RoomBots\GenericBot.cs 16 20 Butterfly Emulator
internal class GenericBot : BotAI
Anyone have the fix to this? Thanks!
internal override void OnUserShout(RoomUser User, string Message)
{
}
I got disconnected without error when have more than like 2500 items in inventory.
Is there a fix for?
This'll do the job:Yes but how would I disable this?
Make sure you have "localhost" in your config and client instead of "127.0.0.1" This happened with me for some bizarre reason
I know they are. But you'll find if you link your variables in your config with 127.0.0.1 and in your variables have localhost it will not work.127.0.0.1 and localhost are basically the same.
There was no user found with your session ticket
¿Solution?
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
if (ButterflyEnvironment.useSSO)
{
adapter.setQuery("SELECT * " +
"FROM users " +
"WHERE auth_ticket = @sso ");
}
else
{
adapter.setQuery("SELECT * " +
"FROM users " +
"WHERE auth_ticket = @sso ");
}
adapter.addParameter("sso", sessionTicket);
row = adapter.getRow();
if (row == null)
{
errorCode = 1;
return null;
}
num = Convert.ToUInt32(row["id"]);
if (ButterflyEnvironment.GetGame().GetClientManager().GetClientByUserID(num) != null)
{
errorCode = 2;
return null;
}
string str = (string) row["lastdailycredits"];
string str2 = DateTime.Today.ToString("MM/dd");
if (str != str2)
{
adapter.runFastQuery(string.Concat(new object[] { "UPDATE users SET daily_respect_points = 3, lastdailycredits = '", str2, "' WHERE id = ", num }));
}
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
if (ButterflyEnvironment.useSSO)
{
adapter.setQuery("SELECT users.* FROM users RIGHT JOIN user_tickets ON user_tickets.userid = users.id WHERE user_tickets.sessionticket = @sso AND ipaddress = @ipaddress ");
}
else
{
adapter.setQuery("SELECT users.* FROM users RIGHT JOIN user_tickets ON user_tickets.userid = users.id WHERE user_tickets.sessionticket = @sso ");
}
adapter.addParameter("sso", sessionTicket);
adapter.addParameter("ipaddress", ip);
row = adapter.getRow();
if (row == null)
{
errorCode = 1;
return null;
}
num = Convert.ToUInt32(row["id"]);
if (ButterflyEnvironment.GetGame().GetClientManager().GetClientByUserID(num) != null)
{
errorCode = 2;
return null;
}
string str = (string) row["lastdailycredits"];
string str2 = DateTime.Today.ToString("MM/dd");
if (str != str2)
{
adapter.runFastQuery(string.Concat(new object[] { "UPDATE users SET daily_respect_points = 3, lastdailycredits = '", str2, "' WHERE id = ", num }));
}
[B]FIX FOR HABBO-IMAGING:[/B]
[php]DOWNLOAD:
Https://mega.co.nz/#!umnghazd!xk4kemu4zkesxv0k6ctfqkvhgnjnpub13iknbp_ck_4
Put this in .htaccess:
Rewriterule ^habbo-imaging/badge/(.*) habbo-imaging/badge.php?badge=$1
and this in web.config:
<rule name="regla 99291">
<match url="^habbo-imaging/badge/(.*)" ignorecase="false" />
<conditions logicalgrouping="matchall" trackallcaptures="false" />
<action type="rewrite" url="habbo-imaging/badge.php?badge={r:1}" />
</rule>
[B]FIX FOR SESSION TICKET:[/B]
IMPORT:
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `user_tickets`
--
DROP TABLE IF EXISTS `user_tickets`
CREATE TABLE IF NOT EXISTS `user_tickets` (
`userid` int(10) unsigned NOT NULL,
`sessionticket` varchar(100) NOT NULL,
`ipaddress` varchar(20) NOT NULL,
PRIMARY KEY (`sessionticket`,`ipaddress`),
UNIQUE KEY `index_id` (`userid`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Volcar la base de datos para la tabla `user_tickets`
--
INSERT INTO `user_tickets` (`userid`, `sessionticket`, `ipaddress`) VALUES
(1, 'Beta-Ticket', '127.0.0.1'),
(2, 'Beta-Ticket2', '127.0.0.1'),
(9, 'holamundo', '127.0.0.1'),
(10, '1777e18a5f15ad7cff0eba6f25160896', '192.168.1.11'),
(16, 'af0c8c575a9be9fd0642376a78346c22', '79.145.245.103'),
(17, 'd8a9e13067eef917b5cffca177cbad41', '181.128.13.240'),
(18, '7fa6e6728c726ef6ac42d84d2682e630', '187.131.115.131'),
(19, '529b9fc3c14fa22200b77fdb9c95af43', '190.203.196.160'),
(20, 'd8a4eb39e0a1b093afacfe39a138c4d6', '189.136.180.67'),
(21, '64fc79026d759320a9dce30e679b8b4d', '186.188.22.39'),
(22, '1f3b9f83e9254bbd4066a9e139121b94', '181.237.117.161'),
(23, '3163c10141a46fa6134a05f254514d9e', '201.190.96.251'),
(24, '2e8ea22f8bd83707f18429171ca61766', '186.33.75.75'),
(25, 'f466a2f4af2c239fe0d827ef6aebabee', '189.134.109.201'),
(27, '48dcc19965a8d7b808dbb0af6d7e0df8', '186.104.96.204'),
(28, '82272b4b91a580806d870a5db17ed0c1', '201.210.156.250'),
(29, '7292ca5c01e3365916da34b1bbd11227', '187.184.242.139'),
(30, '127a9ab9d257aba3e68a90d4b3497cf4', '190.165.193.147'),
(31, 'c736dc172e08bb4a676e52aebbee2147', '95.16.53.235'),
(32, '31502369f94bcde72e6045a8e3749ef8', '190.204.137.161'),
(33, '778089293d90d1bd17d9b9f0e7e062e8', '84.120.114.148'),
(34, '4bbd948ee6d25a366c9b3e9601135fd8', '213.60.49.250'),
(35, '1bb39b99b91511c6df1c5deabdea9733', '186.29.11.164'),
(36, '137be9e753bec252f80bac23d6d7a7f4', '87.217.129.188'),
(37, 'c73e0c03c2830041f246991ff204ffcd', '88.9.108.59'),
(38, 'b1dc045f586a681985bd8788418133ea', '82.158.159.63'),
(39, '796c0a2d262a3484dd8955a62bd748de', '88.1.114.20'),
(40, 'eb28ddab7ecef5556aeb20de0efb85f4', '83.34.95.217'),
(41, '2ebda9b90613ff14b8c5d9b030238e95', '186.104.204.223'),
(42, '3163c10141a46fa6134a05f254514d9e', '186.94.217.56'),
(43, '9cd1bc34fa7ab2cc52ac7a29fe45ee8e', '190.110.171.54'),
(44, 'ce040f2ebb0f17eeb6cc9624dff6299d', '216.218.203.173'),
(45, 'cab82dd61089db77cc27d14a2bfce797', '187.149.159.17'),
(46, '264b6fc5df773f7197e9d4c2a2393b1f', '186.125.72.72'),
(47, '0ca04a226460f3f68a254fdee7b1ec22', '88.19.61.227'),
(48, 'ba2d825eb64534352cfb18e339724d63', '88.24.49.83'),
(49, '95aaca105ae3466b7fe23d49c47c53ad', '181.58.130.109'),
(50, '8e0b6e042c0a68a674ffff6c13893aea', '190.140.193.1'),
(51, '4047cd216b24b66e877b8341204b0b0e', '201.211.72.148'),
(52, 'e6f2f06967171c27ce46800904911f88', '190.29.178.64'),
(53, '9fae3c50eef22a67a2f9bf21c35b4105', '190.199.253.33'),
(54, 'a063e2aea6aae88b332aee1b02009772', '181.68.65.63'),
(55, '7353239bb703acb267dc869aba592876', '190.39.92.127'),
(56, 'dfe3855192d6130a28115d89c0951ee9', '186.1.93.237'),
(57, 'd0831101a8b10dbe678cc0354345e738', '190.201.174.180'),
(58, 'ea5b070a746f1b6ae7c87c47c3270a3e', '190.80.184.94'),
(59, 'd7fd378440d92b9a3c8c4ba43c827da2', '201.233.79.22'),
(60, '3cd3cbbc00a00a329e31777227a05f48', '190.185.170.2'),
(63, '52f10861f4a63f7f61e11c50dc121ff6', '186.86.120.142'),
(64, '1df6da2e3cee1efa5f7b59d7327c7b72', '201.141.55.115'),
(65, '7e5e8300869131668a80499133f07620', '187.195.253.77'),
(66, '4057a6f8c9ac19d231d432e22263bb99', '200.86.26.214'),
(67, '91f1bd6d1537a7281f1bac3f89149d05', '81.33.114.145'),
(68, '9cea28e8637595eada2dbecdfac4cac7', '200.74.176.172'),
(70, '490369b53b33542c0af0e47d25b35763', '80.39.247.130'),
(71, 'd8454ae3a0f2291d0fa24ef85e053e1b', '66.98.37.168'),
(72, '1b2a318bcdf5420e25e3709139eb3f48', '200.8.229.59'),
(73, 'b56b1cc046464e5ca971183dd395cc87', '190.166.181.209'),
(74, '158063f3649bc5aa69fe1295d8b12ca1', '186.78.75.93'),
(75, '5bf888dd96bc397104de367666e4f24c', '186.176.173.44'),
(76, '96a0766d2d3df17e8f0c3111b3a9141d', '186.176.173.44'),
(77, '74643650c61a62eaaf988e49c14280c9', '187.158.27.98'),
(78, 'f055573066dac8dd6bd5f72c9170976a', '186.145.194.238'),
(79, 'cdc52fc94df0a56ef139d5c90ff67270', '186.42.228.133'),
(80, '21c1a98188e4ade42c89d26e2c204955', '83.50.231.168'),
(81, '23d83abea19a5b5b1e51fee6cdddff36', '190.75.137.175'),
(82, 'abeb7753c27b06ba73a7f27b94cac972', '186.79.89.166'),
(83, '1fac6643ac83841907010a7793ea43c1', '178.236.113.159'),
(84, 'd0dccdc452525ccc37a5aba623e3b6b2', '188.76.126.165'),
(85, '95eb51052c00b8eb4bddce217246bf23', '190.130.162.221'),
(86, '6438ab35ca8dbe62d346878cfe0b725c', '186.144.168.194'),
(87, '1f1e0e6725c89dd3d31280daeac94a71', '190.110.171.54'),
(88, 'c99aa8314054e1f77a30b07a23951ca8', '190.248.164.134'),
(89, '2c6991005cbc29c9b2cfd4e796dacc70', '186.119.87.248'),
(90, '9f8152b330c4830950171dfc23e86152', '189.176.7.175'),
(91, '65797cee95339c5afe9169dff708a276', '186.31.38.229'),
(92, 'acd02784117ed6a26fe59dd843ee54eb', '186.145.128.230'),
(93, 'e8e04006ad82af604faabd927903a73e', '190.71.158.108'),
(94, '38d0964f3a552b19d96385a7d4eaded2', '186.120.103.49'),
(95, '5a24b007b775d2ee14336bc87285359b', '200.82.229.179'),
(96, 'aecbfbeff2ed00062f2670f21bfc401d', '189.135.175.194'),
(97, 'bd66ebfd9e52d690938569489df147b7', '190.28.147.230'),
(98, 'fc2b80c1c47b8d739658418bff9459d9', '190.177.200.120'),
(99, '9840b2651f1a6d567192f7586e1c08db', '190.160.42.105'),
(100, 'e8471ef31f100b5138bb6e33be8dfdd1', '190.102.236.113'),
(101, 'cee6ad7b00b1d85ce157b13a59359992', '190.203.39.64'),
(102, '9fdf9345f0aac1454c1ca5a5e74d433f', '186.95.50.49'),
(103, '03f4da2525df5baf92cd1068d35c990a', '190.66.248.12'),
(104, 'a51c39ee0b7b9e70e253e4e35ef2cd3b', '186.86.205.55'),
(106, '7433056cc9f0f91817d9646392ce01e3', '190.39.98.253'),
(107, '1f62421ad9365c0ccec402b945ec3610', '190.234.107.251'),
(108, '8a6c59dc4d9157b3f98984eb4d2647b2', '186.14.154.165'),
(109, '91f79746008c008c8a42ee3191eb815e', '201.190.107.193'),
(110, '6b7068aeebe71276365759dd9239484a', '187.198.97.125'),
(111, 'd743c422911f074ce053690a7371136b', '190.177.96.144'),
(112, 'ef1798005683de5dd91ca883c5c9793d', '187.198.97.125'),
(114, 'ec28148604daa3c6ecbb0fe12a0766d1', '190.110.152.230'),
(115, '7c6d8753b17982c64ca3834eb9961ba6', '201.167.218.5'),
(116, '74dde78e70c35528e8bb0547c5df49c9', '186.94.162.201'),
(118, '0810b0b56d6895c9f9f89b6990e1cd17', '190.158.86.31'),
(119, 'f3877eb51c63ee3f5b64263af77238a8', '200.122.213.176'),
(127, 'ba238b63747f49a506759dc42da8e517', '62.174.73.50'),
(128, '99eca0c042bebad361224c2ed00604d1', '79.159.228.74'),
(129, 'bf9ad94b22b4d3537d65788fe18cd775', '62.174.73.50'),
(131, '32e45d45c6236419b1a8ee04f1a0ae44', '80.31.175.119'),
(132, '7667f6f998a0422dead737be0883aca2', '190.203.146.222'),
(133, 'c754b95c0877516037d1d579de777900', '79.155.255.175'),
(134, 'c61c464cbdbc4cc81037ae4f24c2a3be', '62.174.73.50'),
(135, '4faf4945fed81171fe9480d6d73a125e', '190.189.192.29'),
(136, '452d197088ccc0fb3e218763bf2b7fda', '84.123.56.80'),
(137, 'a8bd6165b210f64e37166601caed706e', '186.30.204.120'),
(138, 'da4b5cb1a60eeb1a1ebf307e16e17f37', '84.121.46.97'),
(139, '10afab37d63e792c2e876a51c64941e8', '186.144.177.154'),
(140, 'd79fbcf724013e34eb18aa98c30569c5', '190.36.169.13'),
(141, 'fb4d8a6043eaa5300ff1b5f673070f68', '83.55.0.47'),
(142, '98dfb4bcaea5bda883fa40c87c68e2cd', '189.202.118.216'),
(143, 'c4a17ac44f02732bdbda929b0ef817c1', '190.70.160.75'),
(144, '5c4fc7639e57979992a8031bbd6af4e9', '83.38.152.108'),
(145, '52f90f42e12e5af4de702711278b4ad7', '190.185.170.2'),
(146, 'aa4eca6844a0977cb587d0dd7c358678', '2.138.101.83'),
(147, '0ebfd9bc76e6902e36676c0b363547f3', '186.154.69.235'),
(148, '0f61a56bd1e452f929d3c9e1444f0b95', '190.178.71.18'),
(149, '91e83186b5e11e2c9d1227b4ee406887', '87.217.48.62'),
(150, '829145ef61fe842004914051a8fdf8dc', '77.23.193.223'),
(151, 'bccf0503254b556402563871e707c04a', '190.138.129.202'),
(152, '66e642d6a5889a2cd9f9161ae4a50439', '190.151.251.63'),
(153, 'dc1d2509a34524e98aab1257844d2610', '186.73.25.221'),
(154, '10f6ef2282fe2882574c99a9eddb9270', '90.170.65.35'),
(155, '0c430e27982fca69f8ba7314471fb6f0', '190.175.66.117'),
(156, 'a24ae02ab1788ff8b1022a606d73545b', '69.117.2.55'),
(157, 'ea5b070a746f1b6ae7c87c47c3270a3e', '201.254.172.207'),
(158, '49253c41b473d1527d0aeaf359168db0', '200.119.47.205');
[B]FIX FOR DIAMONDS:[/B]
In external_flash_texts search:
achievements.activitypoint.0=Duckets
And unter this add:
purse.seasonal.currency=Diamonds
May I direct those in need of help to a section dedicated to providing it for you!
http://forum.ragezone.com/f333/