PlusEMU - Help Thread

Page 6 of 15 FirstFirst 1234567891011121314 ... LastLast
Results 76 to 90 of 211
  1. #76
    Valued Member Mackors is offline
    MemberRank
    Aug 2016 Join Date
    100Posts

    Re: PlusEMU Auto-AFK Disconnect

    Quote Originally Posted by Blasteh View Post
    Where would I add it?
    Code:
            public void CheckCreditsTimer()        {
                try
                {
                    this._creditsTickUpdate--;
    
    
                    if (this._creditsTickUpdate <= 0)
                    {
                        int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount;
                        int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount;
                        
                        SubscriptionData SubData = null;
                        if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData))
                        {
                            CreditUpdate += SubData.Credits;
                            DucketUpdate += SubData.Duckets;
                        }
    
    
                        this._credits += CreditUpdate;
                        this._duckets += DucketUpdate;
    
    
                        this._client.SendMessage(new CreditBalanceComposer(this._credits));
                        this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));
    
    
                        this.CreditsUpdateTick = PlusStaticGameSettings.UserCreditsUpdateTimer;
                    }
                }
                catch { }
            }
    Add it below: if (this._creditsTickUpdate <= 0)

  2. #77
    Valued Member Mackors is offline
    MemberRank
    Aug 2016 Join Date
    100Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by BeginOfEnd View Post
    Anyone know how to fix this? Screenshot by Lightshot

    Its caused by wireds I guess, I got also other errors like WIRED_TRIGGER.
    Show you error logs from your emulator. We are not clairvoyant.

  3. #78
    Valued Member BeginOfEnd is offline
    MemberRank
    Dec 2015 Join Date
    The NetherlandsLocation
    103Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by Mackors View Post
    Show you error logs from your emulator. We are not clairvoyant.
    There are no errors logged, otherwhise I would post them already.

  4. #79
    Valued Member BeginOfEnd is offline
    MemberRank
    Dec 2015 Join Date
    The NetherlandsLocation
    103Posts

    Re: PlusEMU - Help Thread

    Here maybe some more info:

    Screenshot by Lightshot

  5. #80
    Proficient Member Articuz is offline
    MemberRank
    Jan 2016 Join Date
    157Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by BeginOfEnd View Post
    Here maybe some more info:

    Screenshot by Lightshot
    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.

  6. #81
    Apprentice Seastone is offline
    MemberRank
    Dec 2015 Join Date
    12Posts

    Re: PlusEMU - Help Thread

    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.

  7. #82
    Apprentice KavoosiZ is offline
    MemberRank
    Mar 2013 Join Date
    10Posts

    Re: PlusEMU - Help Thread

    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 - - -

    Quote Originally Posted by KavoosiZ View Post
    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

  8. #83
    Member Sir Marc is offline
    MemberRank
    Apr 2016 Join Date
    The NetherlandsLocation
    63Posts

    Re: PlusEMU - Help Thread

    My Modtool doesn't work anymore. I don't even know where to look to fix it. :/

    Screenshot by Lightshot

  9. #84
    Apprentice Royal123 is offline
    MemberRank
    Jul 2015 Join Date
    21Posts

    ! PlusEmu Help

    Hello I have a question I use this emulator: http://forum.ragezone.com/f353/pluse...rsion-1121211/


    How do I make the there the camera icon is shown packets are in the emu but not show

    And how do I fixxe the group forum

  10. #85
    Proficient Member Yesser is offline
    MemberRank
    Aug 2010 Join Date
    179Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by Sir Marc View Post
    My Modtool doesn't work anymore. I don't even know where to look to fix it. :/

    Screenshot by Lightshot
    Check out your database tables. Some tables might be still empty.

  11. #86
    Apprentice Seastone is offline
    MemberRank
    Dec 2015 Join Date
    12Posts

    Re: PlusEMU - Help Thread

    Hello!

    I'm trying to do Ryans nr 3). HabboHotel\Users\UserData\UserDataFactory.cs (Thanks to @Damien Jolly) Fix. (From here http://forum.ragezone.com/f353/plus-...fixes-1103845/)

    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.

  12. #87
    Enthusiast Lex is offline
    MemberRank
    Dec 2016 Join Date
    26Posts

    Re: PlusEMU - Help Thread

    How to add new pets (for example, the 2 Jurassic park pets)? I've got the SWF's, but I can't implement them..

  13. #88
    apt-get install xcowsay 3M1L is offline
    MemberRank
    Jul 2012 Join Date
    SwedenLocation
    268Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by Seastone View Post
    Hello!

    I'm trying to do Ryans nr 3). HabboHotel\Users\UserData\UserDataFactory.cs (Thanks to @Damien Jolly) Fix. (From here http://forum.ragezone.com/f353/plus-...fixes-1103845/)

    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)), 025).'-SSO';

                
    $hasTicket $dbh->prepare('SELECT null from `user_auth_ticket` WHERE `user_id` = ? LIMIT 1');
                
    $hasTicket->execute([ $_SESSION['id'] ]);

                if(
    $hasTicket->rowCount() > 0)
                {
                    
    $update $dbh->prepare('UPDATE `user_auth_ticket` SET `auth_ticket` = :auth_ticket WHERE `user_id` = :user_id');
                    
    $update->execute([
                        
    'auth_ticket' => $ticket,
                        
    'user_id'     => $_SESSION['id']
                    ]);
                }
                else
                {
                    
    $insert $dbh->prepare('INSERT INTO `user_auth_ticket` (`user_id`, `auth_ticket`) VALUES (:user_id, :auth_ticket)');
                    
    $insert->execute([
                        
    'user_id'     => $_SESSION['id'],
                        
    'auth_ticket' => $ticket
                    
    ]);
                }

                
    /*
                // old code
                $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();
                */
            


    Note that I haven't tested it yet.

  14. #89
    Apprentice Seastone is offline
    MemberRank
    Dec 2015 Join Date
    12Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by 3M1L View Post
    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)), 025).'-SSO';

                
    $hasTicket $dbh->prepare('SELECT null from `user_auth_ticket` WHERE `user_id` = ? LIMIT 1');
                
    $hasTicket->execute([ $_SESSION['id'] ]);

                if(
    $hasTicket->rowCount() > 0)
                {
                    
    $update $dbh->prepare('UPDATE `user_auth_ticket` SET `auth_ticket` = :auth_ticket WHERE `user_id` = :user_id');
                    
    $update->execute([
                        
    'auth_ticket' => $ticket,
                        
    'user_id'     => $_SESSION['id']
                    ]);
                }
                else
                {
                    
    $insert $dbh->prepare('INSERT INTO `user_auth_ticket` (`user_id`, `auth_ticket`) VALUES (:user_id, :auth_ticket)');
                    
    $insert->execute([
                        
    'user_id'     => $_SESSION['id'],
                        
    'auth_ticket' => $ticket
                    
    ]);
                }

                
    /*
                // old code
                $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();
                */
            


    Note that I haven't tested it yet.
    Thanks man. It inserts it correctly in the DB but the client disconncts at 70ish %. Probably something with the client.php?

    Code:
    <?php	staffCheck();
    	Game::sso();	
    	Game::homeRoom();	
    	
    ?>
    <html>
    </body>
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    	<title><?= $config['hotelName'] ?> - Game</title>
    	<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
    	<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
    	<script src="/templates/brain/client/js/flashclient.js"></script>
    	<script src="/templates/brain/client/js/flash_detect_min.js"></script>
    	<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
    </head>
    <body>
    	<center>
    		<div id="client-ui">
    			<div id="client" style='position:absolute; left:0; right:0; top:0; bottom:0; overflow:hidden; height:100%; width:100%;'></div>
    		</div>
    		<script>
    			var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
    			Client.addVariable("client.allow.cross.domain", "0"); 
    			Client.addVariable("client.notify.cross.domain", "1");
    			Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
    			Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
    			Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
    			Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>"); 
    			Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
    			Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
    			Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
    			Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>"); 
    			Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>"); 	
    			Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
    			Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>"); 
    			Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>"); 
    			Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
    			Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>"); 
    			Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
    			Client.addVariable("use.sso.ticket", "1"); 
    			Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
    			Client.addVariable("processlog.enabled", "0");
    			Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
    			Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/"); 
    			Client.addVariable("flash.client.origin", "popup");
    			Client.addVariable("nux.lobbies.enabled", "true");
    			Client.addVariable("country_code", "NL");
    			Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
    			Client.addParam('allowScriptAccess', 'always');
    			Client.addParam('menu', false);
    			Client.addParam('wmode', "opaque");
    			Client.write('client');
    			
    			FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
    		</script>
    	</center>
    </body>
    </html>
    </center>
    </div>
    <script>
    	//no flash?!
    	if(!FlashDetect.installed){
    		window.location.href = "<?= $config['hotelUrl'] ?>/noflash.php"; 	
    	}
    </script>
    </head>
    again thank you!!! <3

  15. #90
    Member Sir Marc is offline
    MemberRank
    Apr 2016 Join Date
    The NetherlandsLocation
    63Posts

    Re: PlusEMU - Help Thread

    Quote Originally Posted by Yesser View Post
    Check out your database tables. Some tables might be still empty.
    Which tables? Can't find 'em.



Advertisement