Pouney 32 Posted February 16, 2017 Share Posted February 16, 2017 Bonjour à toutes & à tous ! Certains ont peut être remarqué que le jeu en pixel avait quelques bugs. Aujourd'hui je vais vous apprendre à fixer la commande d'alertes avec les liens qui ouvre le lien sur le client (et déconnecte l'utilisateur) Pour commencer rendez-vous dans votre client.php (hotel.php ou autre cela dépend du CMS) Cherchez ceci : habboMain Si vous trouvez quelque chose, supprimez la ligne. Ensuite rendez-vous dans votre footer.php (ou Header) Et collez-y ceci : <script>window.name="habboMain";</script> Ensuite allez dans le dossier js de votre Web-gallery (si vous n'en avez pas, créez un dossier js à la racine) appelez le "externalinterface.js" Et copiez le contenu de cette page dedans : Cliquez Ici ! Une fois fais, retournez dans votre fichier client.php et ajoutez cette ligne : <script type="text/javascript" src="http://VOTRESITE/DOSSIER/js/externalinterface.js"></script> (remplacez le gras par vos informations) Et normalement les lien s'ouvrirons du côté site et plus du côté client (c'est une alternative non parfaite mais ça ne déconnecte plus les joueurs) Cordialement, Pouney ! PAS D'AIDE EN MP Sites Webs : - HostRetro.com - Ado-Lite.fr - Alls-Heberg.fr Link to comment Share on other sites More sharing options...
Sam26 1 Posted July 21, 2017 Share Posted July 21, 2017 Des Bâtard Meme pas un Merci Link to comment Share on other sites More sharing options...
Modérateur CptHenri 74 Posted July 23, 2017 Modérateur Share Posted July 23, 2017 Merci @Maxime13014 Tqt Flemme, ils ont supprimés mon ancienne signature Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 11, 2018 Share Posted February 11, 2018 Sa ne fonctionne pas, sa demande d'installer Adobe Flash quand on veux se connecter au client Link to comment Share on other sites More sharing options...
Inspirat 2 Posted February 11, 2018 Share Posted February 11, 2018 Trop compliqué, il y a beaucoup plus simple window.name = ""; if (typeof HabboClient != "undefined") { HabboClient.windowName = ""; HabboClient.maximizeWindow = true; } Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 11, 2018 Share Posted February 11, 2018 à l’instant, Inspirat a dit : Trop compliqué, il y a beaucoup plus simple window.name = ""; if (typeof HabboClient != "undefined") { HabboClient.windowName = ""; HabboClient.maximizeWindow = true; } Je test après et je te dit si sa fonctionne Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 13, 2018 Share Posted February 13, 2018 Le 11/02/2018 à 23:03, Inspirat a dit : Trop compliqué, il y a beaucoup plus simple window.name = ""; if (typeof HabboClient != "undefined") { HabboClient.windowName = ""; HabboClient.maximizeWindow = true; } Faut le mettre ou ce que tu dit ? Link to comment Share on other sites More sharing options...
Inspirat 2 Posted February 14, 2018 Share Posted February 14, 2018 Il y a 19 heures, ZaYor a dit : Faut le mettre ou ce que tu dit ? https://gyazo.com/171531b704e204f3d99173afe5da0652 Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 15, 2018 Share Posted February 15, 2018 Après faut redémarrer l'ému ou pas besoin ? Link to comment Share on other sites More sharing options...
Runyard 69 Posted February 15, 2018 Share Posted February 15, 2018 à l’instant, ZaYor a dit : Après faut redémarrer l'ému ou pas besoin ? Faut que tu débug l'émulateur oui Sky, un bot discord français multifonctions avec un RPG hors du commun. Site web : https://skybot.fr Serveur communautaire : https://skybot.fr/discord Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 15, 2018 Share Posted February 15, 2018 Le 11/02/2018 à 23:03, Inspirat a dit : Trop compliqué, il y a beaucoup plus simple window.name = ""; if (typeof HabboClient != "undefined") { HabboClient.windowName = ""; HabboClient.maximizeWindow = true; } Sa ouvre une nouvelle fenêtre mais sa fonctionne pas par exemple je met facebook.fr après quand je clique sa m'affiche dans l'URL : http://MONRETRO/game/gordon/PRODUCTION-201701242205-837386173/facebook.fr Link to comment Share on other sites More sharing options...
Inspirat 2 Posted February 20, 2018 Share Posted February 20, 2018 Le 15/02/2018 à 15:18, ZaYor a dit : Sa ouvre une nouvelle fenêtre mais sa fonctionne pas par exemple je met facebook.fr après quand je clique sa m'affiche dans l'URL : http://MONRETRO/game/gordon/PRODUCTION-201701242205-837386173/facebook.fr Le problème vient de ta commande hal, car le code que je t'ai donné fonctionne correctement (je l'ai testé avant de te le donner) Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 21, 2018 Share Posted February 21, 2018 Le 20/02/2018 à 15:00, Inspirat a dit : Le problème vient de ta commande hal, car le code que je t'ai donné fonctionne correctement (je l'ai testé avant de te le donner) Peut tu me donner ta commande hal si ta le temps s'il te plaît ? Link to comment Share on other sites More sharing options...
Inspirat 2 Posted February 22, 2018 Share Posted February 22, 2018 Il y a 15 heures, ZaYor a dit : Peut tu me donner ta commande hal si ta le temps s'il te plaît ? J'utilise Comet NetworkManager.getInstance().getSessions().broadcast(new AdvancedAlertMessageComposer(Locale.getOrDefault("command.hotelalertlink.title", "Alert"), this.merge(params, 1) + "<br><br><i> " + client.getPlayer().getData().getUsername() + "</i>", Locale.getOrDefault("command.hotelalertlink.buttontitle", "Click here"), link, "")); Link to comment Share on other sites More sharing options...
ZaYor 5 Posted February 22, 2018 Share Posted February 22, 2018 Il y a 4 heures, Inspirat a dit : J'utilise Comet NetworkManager.getInstance().getSessions().broadcast(new AdvancedAlertMessageComposer(Locale.getOrDefault("command.hotelalertlink.title", "Alert"), this.merge(params, 1) + "<br><br><i> " + client.getPlayer().getData().getUsername() + "</i>", Locale.getOrDefault("command.hotelalertlink.buttontitle", "Click here"), link, "")); J'utilise PlusEmu ducoup ta commande ne va pas fonctionner chez moi ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now