Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
for Phoenix Emu 3.11.0 convert pixels/shells and cmd
Game.cs
Search: "enable_cmd_redeemcredits"
"Find"
Code:
LicenseTools.Boolean_0 = Phoenix.smethod_3(dataRow["enable_cmd_redeemcredits"].ToString());
Add under that:
Code:
LicenseTools.Boolean_14 = Phoenix.smethod_3(dataRow["enable_cmd_redeempixels"].ToString());
LicenseTools.Boolean_15 = Phoenix.smethod_3(dataRow["enable_cmd_redeemshells"].ToString());
ChatCommandHandler.cs
Search: "cmd_redeemcreds_desc"
"Find"
Code:
string text8 = "";
if (LicenseTools.Boolean_0)
{
text8 = text8 + PhoenixEnvironment.smethod_1("cmd_redeemcreds_desc") + "\r\r";
}
Add under that:
Code:
string text11 = "";
if (LicenseTools.Boolean_14)
{
text11 = text11 + PhoenixEnvironment.smethod_1("cmd_redeempixel_desc") + "\r\r";
}
string text12 = "";
if (LicenseTools.Boolean_15)
{
text12 = text12 + PhoenixEnvironment.smethod_1("cmd_redeemshell_desc") + "\r\r";
}
Search: "case 83:"
Code:
case 83:
Session.GetHabbo().method_23().method_2();
Session.SendNotif(PhoenixEnvironment.smethod_1("cmd_emptypets_success"));
Phoenix.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
Add under that:
Code:
case 84:
if (!LicenseTools.Boolean_3)
{
Session.GetHabbo().method_28("Befehl während des Tauschens nicht verfügbar!");
return true;
}
else
{
if (LicenseTools.Boolean_14)
Session.GetHabbo().method_23().method_20(Session);
else
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
return true;
}
case 85:
if (!LicenseTools.Boolean_3)
{
Session.GetHabbo().method_28("Befehl während des Tauschens nicht verfügbar!");
return true;
}
else
{
if (LicenseTools.Boolean_15)
Session.GetHabbo().method_23().method_21(Session);
else
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
return true;
}
Search: "if (class6.Boolean_3)"
Code:
if (class6.Boolean_3)
{
Session.GetHabbo().method_28("Befehl während des Tauschens nicht möglich");
return true;
}
Add under that:
Code:
if (LicenseTools.Boolean_14)
{
Session.GetHabbo().method_23().method_20(Session);
}
else
{
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
}
return true;
if (LicenseTools.Boolean_15)
{
Session.GetHabbo().method_23().method_21(Session);
}
else
{
Session.GetHabbo().method_28(PhoenixEnvironment.smethod_1("cmd_error_disabled"));
}
return true;
RoleManager.cs
Search: "cmd_emptypets_name"
"Find"
Code:
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_emptypets_name"), 83);
Add under that:
Code:
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeempixel_name"), 84);
this.dictionary_4.Add(PhoenixEnvironment.smethod_1("cmd_redeemshell_name"), 85);
LicenseTools.cs
Search:
Code:
private static bool bool_14 = false;
Add under that:
Code:
private static bool bool_21 = false;
private static bool bool_22 = false;
Search: "Boolean_0"
Code:
public static bool Boolean_0
{
get
{
return LicenseTools.bool_14;
}
set
{
LicenseTools.bool_14 = value;
}
}
Add under that:
Code:
public static bool Boolean_14
{
get
{
return LicenseTools.bool_21;
}
set
{
LicenseTools.bool_21 = value;
}
}
public static bool Boolean_15
{
get
{
return LicenseTools.bool_22;
}
set
{
LicenseTools.bool_22 = value;
}
}
SQL:
Code:
/*
Navicat MySQL Data Transfer
Source Server : Datenbanken
Source Server Version : 50615
Source Host : localhost:3306
Source Database : habbohoteldb
Target Server Type : MYSQL
Target Server Version : 50615
File Encoding : 65001
Date: 2014-01-11 17:33:51
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `server_settings`
-- ----------------------------
DROP TABLE IF EXISTS `server_settings`;
CREATE TABLE `server_settings` (
`motd` text NOT NULL,
`timer` int(11) NOT NULL DEFAULT '15',
`pixels` int(11) NOT NULL DEFAULT '15',
`pixels_max` int(15) NOT NULL DEFAULT '0',
`credits` int(11) NOT NULL DEFAULT '75',
`credits_max` int(15) NOT NULL DEFAULT '0',
`points` int(11) NOT NULL DEFAULT '0',
`points_max` int(15) NOT NULL DEFAULT '0',
`enable_cmd_redeemcredits` enum('0','1') NOT NULL DEFAULT '1',
`enable_cmd_redeempixels` enum('0','1') NOT NULL DEFAULT '1',
`enable_cmd_redeemshells` enum('0','1') NOT NULL DEFAULT '1',
`enable_chatlogs` enum('0','1') NOT NULL DEFAULT '1',
`enable_roomlogs` enum('0','1') NOT NULL DEFAULT '1',
`vipclothesforhcusers` enum('1','0') NOT NULL DEFAULT '1',
`MaxRoomsPerUser` int(4) NOT NULL DEFAULT '50',
`enable_externalchatlinks` enum('disabled','blacklist','whitelist') NOT NULL DEFAULT 'disabled',
`enable_securesessions` enum('0','1') NOT NULL DEFAULT '1',
`enable_cmdlogs` enum('0','1') NOT NULL DEFAULT '1',
`allow_friendfurnidrops` enum('0','1') NOT NULL DEFAULT '1',
`enable_antiddos` enum('0','1') NOT NULL DEFAULT '1',
`MaxPetsPerRoom` int(2) NOT NULL DEFAULT '15',
`MarketPlaceTax` int(2) NOT NULL DEFAULT '1',
`MaxMarketPlacePrice` int(9) NOT NULL DEFAULT '10000',
`unload_crashedrooms` enum('0','1') NOT NULL DEFAULT '1',
`ShowUsersAndRoomsInAbout` enum('0','1') NOT NULL DEFAULT '1',
`idlesleep` int(6) NOT NULL DEFAULT '300',
`idlekick` int(6) NOT NULL DEFAULT '1200',
`ip_lastforbans` enum('0','1') NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of server_settings
-- ----------------------------
INSERT INTO `server_settings` VALUES ('Hotel-Alert Addet', '30', '0', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '1', '100', 'whitelist', '1', '1', '1', '1', '20', '1', '500000', '1', '1', '300', '1200', '0');
Thanks,
Meik2010
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
@Meik2010 its good to see some one contributing,
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
How can i translate all commands?
I'm a swedish boy <3
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT &amp; More
Quote:
Originally Posted by
ruflesbpt
1/8/2014 5:58:52 PM: [TCPListener.OnRequest]: Could not handle new connection request: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndAccept(Byte[]& buffer, Int32& bytesTransferred, IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndAccept(IAsyncResult asyncResult)
at Phoenix.Net.SocketListener.ConnectionRequest(IAsyncResult iAr) in YOURPC\3.11.0\Phoenix\Net\SocketListener.cs:line 72
- - - Updated - - -
1/12/2014 2:27:11 PM: [TCPListener.OnRequest]: Could not handle new connection request: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndAccept(Byte[]& buffer, Int32& bytesTransferred, IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndAccept(IAsyncResult asyncResult)
at Phoenix.Net.Class114.method_4(IAsyncResult iasyncResult_0) in C:\Users\Administrator\Desktop\EMU\3.11.0\Phoenix\Net\SocketsListener.cs:line 83
- - - Updated - - -
Your add commands in permissions_ranks .... disable or no ?
Ranking 1,2,3,4,5,6,7
? translate commands in table texts ? please
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
We need someone to make all the sqls and stuff for the commands. That way, we can enable what we want, and give our users what we want. To me, that'd be the perfect thing.
- - - Updated - - -
Quote:
Originally Posted by
Meik2010
[****]
I did everything you said to the letter, and it didn't work :/
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
here is translate convert credits/pixels/shells
Deutsch
Code:
INSERT INTO `texts` VALUES ('cmd_redeemcreds_name', 'convertcredits');
INSERT INTO `texts` VALUES ('cmd_redeemcreds_desc', ':convertcredits -> Verwandle alle Taler in deinem Inventar in deine Geldbörse');
INSERT INTO `texts` VALUES ('cmd_redeempixel_name', 'convertpixels');
INSERT INTO `texts` VALUES ('cmd_redeempixel_desc', ':convertpixels -> Verwandle alle Pixels in deinem Inventar in deine Geldbörse');
INSERT INTO `texts` VALUES ('cmd_redeemshell_name', 'convertshells');
INSERT INTO `texts` VALUES ('cmd_redeemshell_desc', ':convertshells -> Verwandle alle Muscheln in deinem Inventar in deine Geldbörse');
English
Code:
INSERT INTO `texts` VALUES ('cmd_redeemcreds_name', 'convertcredits');
INSERT INTO `texts` VALUES ('cmd_redeemcreds_desc', ':convertcredits - Turns all exchange items in your hand back into Taler');
INSERT INTO `texts` VALUES ('cmd_redeempixel_name', 'convertpixels');
INSERT INTO `texts` VALUES ('cmd_redeempixel_desc', ':convertpixels - Turns all exchange items in your hand back into Pixels');
INSERT INTO `texts` VALUES ('cmd_redeemshell_name', 'convertshells');
INSERT INTO `texts` VALUES ('cmd_redeemshell_desc', ':convertshells - Turns all exchange items in your hand back into Shells');
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
Quote:
Originally Posted by
StaffJunior
How i can fix this fucking error
Code:
12.01.2014 16:36:10: Error: MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '1000025514' for key 'PRIMARY'
bei MySql.Data.MySqlClient.MySqlStream.ReadPacket()
bei MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
bei MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
bei MySql.Data.MySqlClient.MySqlDataReader.NextResult()
bei MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
bei MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
bei Phoenix.Storage.DatabaseClient.ExecuteQuery(String sQuery)
bei Phoenix.HabboHotel.Users.Inventory.InventoryComponent.method_11(UInt32 uint_1, UInt32 uint_2, String string_0, Boolean bool_0)
bei Phoenix.HabboHotel.Catalogs.Catalog.method_9(GameClient Session, Item Item, Int32 int_0, String string_0, Boolean bool_0, UInt32 uint_1)
bei Phoenix.HabboHotel.Catalogs.Catalog.method_6(GameClient Session, Int32 int_0, UInt32 uint_1, String string_0, Boolean bool_0, String string_1, String string_2, Boolean bool_1)
bei Phoenix.Communication.Messages.Catalog.PurchaseFromCatalogEvent.Handle(GameClient Session, ClientMessage Event)
bei Phoenix.HabboHotel.GameClients.GameClient.method_13(Byte[]& byte_0)
The problem is in the colum items the EMU try to create a ID there is used by a item where a user buy in the webshop.
Fixed it is when a user buy a furni in the catalogue the next auto_incromed value from the table is use for the next ID:
how i can fix it?
ALTER TABLE items AUTO_INCREMENT= Last ID + 1 example:
( LAST ID = 999 ) ALTER TABLE items AUTO_INCREMENT=1000
Before making any change which, make a backup before.
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
Quote:
Originally Posted by
ruflesbpt
ALTER TABLE items AUTO_INCREMENT= Last ID + 1 example:
( LAST ID = 999 ) ALTER TABLE items AUTO_INCREMENT=1000
Before making any change which, make a backup before.
Hi,
thank you but i try it before and its not work.
The EMU get the auto_incromed value when the emu starts. After this he not check the correct value again.
Now my Shop System on the Website add the auto_incromed value 1000 and a other people buy a furni in the Catalogue now the EMU crash.
The problem is the EMU don't know he mus set the id now to 1001, he don't use the auto_incromed value... I think he count the up by him self.
I use the Live EMU but i think here is the same problem and i search for a fix.
I hope you understand me now.
THanks
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
Quote:
Originally Posted by
StaffJunior
Hi,
thank you but i try it before and its not work.
The EMU get the auto_incromed value when the emu starts. After this he not check the correct value again.
Now my Shop System on the Website add the auto_incromed value 1000 and a other people buy a furni in the Catalogue now the EMU crash.
The problem is the EMU don't know he mus set the id now to 1001, he don't use the auto_incromed value... I think he count the up by him self.
I use the Live EMU but i think here is the same problem and i search for a fix.
I hope you understand me now.
THanks
Use the MUS "giveitem" for giving items, so hard? lol^^
Regards, Imagician.
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
Quote:
Originally Posted by
Imagician
Use the MUS "giveitem" for giving items, so hard? lol^^
Regards, Imagician.
Thanks,
but how i can use a MUS Command in PHP?
Sorry, i dosen't do it bevore.
Thanks
EDIT: Thank You, i find it.
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
When we send 1 item from the store to match the phoenix was not even there.
If it starts with 1000 it goes up to 2,000. if you enter 1050, for example, it doubles the 1050, giving error.
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
can someboddy reupploadthe last version?
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
Thanks for the release! I do plan on using this in the future. :]
Re: PHX (MY EDITON) | FLY | LAY | KISS | KILL | RANK | ACH | EVENT & More
It's 'hookah' not 'hokah' x)
As for the release, just another edit.