So i actually had this b4 when i used my GiveRewardBox. Dunno why tho, it's an error doe that i do know for sure cuz nothing happends when that pop-ups.
So I'm using Haboon PLUSEMU Edit but for some reason the catalogue wont load certain items.
Is this intentional from Sledmore or is it working properly for other people? I can always add the SWF myself but theres no need if its supposed to work lol.
I'm currentlyu sing PlusEMU. The wired settings do not save after unload, however in the database (wired_items) it refers to the right furniture (in items table). What might be the issue? No error log from PlusEMU either.
- - - Updated - - -
Originally Posted by KavoosiZ
I'm currentlyu sing PlusEMU. The wired settings do not save after unload, however in the database (wired_items) it refers to the right furniture (in items table). What might be the issue? No error log from PlusEMU either.
This is most likely the error:
Error in packet [3166] BODY: [0][0]?'[0][0][0][0]:
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Plus.Communication.Packets.Outgoing.Rooms.Furni.Wired.WiredEffectConfigComposer..ctor(IWiredItem Box, List`1 BlockedItems) in C:\Users\Administrator\Downloads\PlusEMU\Communication\Packets\Outgoing\Rooms\Furni\Wired\WiredEffectConfigComposer.cs:line 67
at Plus.HabboHotel.Items.Interactor.InteractorWired.OnTrigger(GameClient Session, Item Item, Int32 Request, Boolean HasRights) in C:\Users\Administrator\Downloads\PlusEMU\HabboHotel\Items\Interactor\InteractorWired.cs:line 53
at Plus.Communication.Packets.Incoming.Rooms.Engine.UseFurnitureEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Downloads\PlusEMU\Communication\Packets\Incoming\Rooms\Engine\UseFurnitureEvent.cs:line 84
at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Downloads\PlusEMU\Communication\Packets\PacketManager.cs:line 153
at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Downloads\PlusEMU\HabboHotel\GameClients\GameClient.cs:line 73
But I cant figure out how to fix my client. I'm using BrainCMS and this is the SSO statement:
Code:
<?php if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}
/*
Functions list Class Game.
---------------
sso();
usersOnline();
homeRoom();
*/
class Game
{
public static function sso()
{
global $dbh;
$timeNow = strtotime("now");
$sessionKey = 'Brain-1.2.3-'.substr(str_shuffle(str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 5)), 0, 25).'-SSO';
$stmt = $dbh->prepare("UPDATE users SET auth_ticket = :sso , last_online = :timenow WHERE id = :id");
$stmt->bindParam(':timenow', $timeNow);
$stmt->bindParam(':id', $_SESSION['id']);
$stmt->bindParam(':sso', $sessionKey);
$stmt->execute();
}
Public static function usersOnline()
{
global $dbh;
$userCount = $dbh->prepare("SELECT * FROM users WHERE online = '1'");
$userCount->execute();
return $userCount->RowCount();
}
public static function homeRoom()
{
global $dbh, $hotel;
$stmt = $dbh->prepare("UPDATE users SET home_room = :homeroom WHERE id = :id");
$stmt->bindParam(':homeroom', $hotel['homeRoom']);
$stmt->bindParam(':id', $_SESSION['id']);
$stmt->execute();
}
}
?>
Now how would I go about changing it to this:
Code:
$ticket = time().sha1(rand(10000,99999));$sql = DB::query('SELECT null FROM `user_auth_ticket` WHERE `user_id` = %i LIMIT 1', (int)$user->Id);if(DB::count() > 0) {DB::query('UPDATE `user_auth_ticket` SET `auth_ticket` = %s WHERE `user_id` = %i', $ticket, (int)$user->Id);}else{DB::insert('user_auth_ticket', array ('user_id' => $user['id'],'auth_ticket' => $ticket));}
I would really appreciate it if you took the time of your day to help me.. Thank you.
But I cant figure out how to fix my client. I'm using BrainCMS and this is the SSO statement:
Spoiler:
Code:
<?php if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}
/*
Functions list Class Game.
---------------
sso();
usersOnline();
homeRoom();
*/
class Game
{
public static function sso()
{
global $dbh;
$timeNow = strtotime("now");
$sessionKey = 'Brain-1.2.3-'.substr(str_shuffle(str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 5)), 0, 25).'-SSO';
$stmt = $dbh->prepare("UPDATE users SET auth_ticket = :sso , last_online = :timenow WHERE id = :id");
$stmt->bindParam(':timenow', $timeNow);
$stmt->bindParam(':id', $_SESSION['id']);
$stmt->bindParam(':sso', $sessionKey);
$stmt->execute();
}
Public static function usersOnline()
{
global $dbh;
$userCount = $dbh->prepare("SELECT * FROM users WHERE online = '1'");
$userCount->execute();
return $userCount->RowCount();
}
public static function homeRoom()
{
global $dbh, $hotel;
$stmt = $dbh->prepare("UPDATE users SET home_room = :homeroom WHERE id = :id");
$stmt->bindParam(':homeroom', $hotel['homeRoom']);
$stmt->bindParam(':id', $_SESSION['id']);
$stmt->execute();
}
}
?>
Now how would I go about changing it to this:
Code:
$ticket = time().sha1(rand(10000,99999));$sql = DB::query('SELECT null FROM `user_auth_ticket` WHERE `user_id` = %i LIMIT 1', (int)$user->Id);if(DB::count() > 0) {DB::query('UPDATE `user_auth_ticket` SET `auth_ticket` = %s WHERE `user_id` = %i', $ticket, (int)$user->Id);}else{DB::insert('user_auth_ticket', array ('user_id' => $user['id'],'auth_ticket' => $ticket));}
I would really appreciate it if you took the time of your day to help me.. Thank you.
Replace your whole sso method (public static function sso) with the following:
Spoiler:
PHP Code:
public static function sso()
{
global $dbh;
//$timeNow = strtotime("now");
$ticket = 'Brain-1.2.3-'.substr(str_shuffle(str_repeat("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 5)), 0, 25).'-SSO';
$hasTicket = $dbh->prepare('SELECT null from `user_auth_ticket` WHERE `user_id` = ? LIMIT 1');
$hasTicket->execute([ $_SESSION['id'] ]);