- Joined
- Aug 10, 2011
- Messages
- 7,399
- Reaction score
- 3,307
Forwarding to a room when opening the client is actually clientside.
Forwarding to a room when opening the client is actually clientside.
I use FlashInterface right now to detect the logout & character settings event. Been trying to figure out 'open-room' either of you or anyone have any idea what the event is exactly? Digging through habbos habboapi right now plus their angular code to figure it out, I'm not really getting much from it:Derp, right. It's a call to ExternalInterface. Still... you COULD do it from RCON, maybe as a function for housekeeping to send a user to a specific room, or send all users to a room, or certain ranks, whatever. You get the idea.
[SIZE=2][COLOR=#000000][COLOR=#0000ff]this[/COLOR]._$window.addEventListener([COLOR=#a31515]"load"[/COLOR],[COLOR=#0000ff] this[/COLOR]._$window.HabboFlashClient.init(document.getElementById([COLOR=#a31515]'flash-container'[/COLOR])));
[COLOR=#0000ff]
this[/COLOR]._$window.FlashExternalInterface = {};
[COLOR=#0000ff]
this[/COLOR]._$window.FlashExternalInterface.logout = () [COLOR=#0000ff]=>[/COLOR]
{[/COLOR][/SIZE][COLOR=#000000][INDENT][SIZE=2][COLOR=#0000ff]return this[/COLOR]._$translate([[COLOR=#a31515]'dialogs.title'[/COLOR], [COLOR=#a31515]'dialogs.logout'[/COLOR], [COLOR=#a31515]'dialogs.ok_logout'[/COLOR], [COLOR=#a31515]'dialogs.cancel'[/COLOR]])
.then((text) [COLOR=#0000ff]=>
[/COLOR]{[/SIZE][/INDENT]
[INDENT=2][SIZE=2][COLOR=#0000ff]return this[/COLOR]._$mdDialog.show([/SIZE][/INDENT]
[INDENT=3][SIZE=2][COLOR=#0000ff]this[/COLOR]._$mdDialog.confirm({[/SIZE][/INDENT]
[INDENT=4][SIZE=2][COLOR=#a31515]title[/COLOR]: text[[COLOR=#a31515]'dialogs.title'[/COLOR]],
[COLOR=#a31515]textContent[/COLOR]: text[[COLOR=#a31515]'dialogs.logout'[/COLOR]],
[COLOR=#a31515]ok[/COLOR]: text[[COLOR=#a31515]'dialogs.ok_logout'[/COLOR]],
[COLOR=#a31515]cancel[/COLOR]: text[[COLOR=#a31515]'dialogs.cancel'[/COLOR]][/SIZE][/INDENT]
[INDENT=3][SIZE=2]}));[/SIZE][/INDENT]
[INDENT=2][SIZE=2]})
[/SIZE][/INDENT]
[INDENT][SIZE=2].then(() [COLOR=#0000ff]=>
[/COLOR]{[/SIZE][/INDENT]
[INDENT=2][SIZE=2][COLOR=#0000ff]return this[/COLOR]._Session.destroy_session();[/SIZE][/INDENT]
[INDENT][SIZE=2]})
.then(() [COLOR=#0000ff]=>
[/COLOR]{[/SIZE][/INDENT]
[INDENT=2][SIZE=2][COLOR=#0000ff]return this[/COLOR]._$state.go([COLOR=#a31515]'login'[/COLOR]);[/SIZE][/INDENT]
[INDENT][SIZE=2]})
.catch(() [COLOR=#0000ff]=>
[/COLOR]{[/SIZE][/INDENT]
[INDENT=2][SIZE=2][COLOR=#0000ff]return[/COLOR];[/SIZE][/INDENT]
[INDENT][SIZE=2]})[/SIZE][/INDENT]
[SIZE=2]};[/SIZE]
[/COLOR][SIZE=2][COLOR=#000000][/COLOR][/SIZE]
Huh, yeah, this has me a bit stumped too. It's expecting an event "message" to be fired with variable "n", where n is an object with the data, but I'm not sure what n is generated by. I'm not seeing it in the code anywhere.
I think it's something like this:You must be registered to see links
But I'm not really sure where to send the event. I tried doing it on .COM, and it returns "true", but nothing happens in-game. This used to be way easier, it was just ExternalInterface.call('openRoom', id) iirc.
edit: I just realized, this is probably some kind of Angular magic, right? I haven't messed with Angular much but if it has some sort of standard for firing events like this, give it a shot.
does this got a ban function, i have never got a working one for arcturus
Yeah, it seems like a real witch nowadays, it used to be a pretty simple interface. Maybe it'd be easier to just use RCON, send the player's ID or w/e to the RCON socket and just load them into the room. I'll take a look at it tomorrow and make a plugin.I've been trying for hours to figure this out I'm about to lose my mind LOL I can not figure out where the event is called. I've gotten as far as decompiling the Habbo.swf and searching there, this is what I foundYou must be registered to see linksand honestly I just don't know.
I looked at the source code for habbos habboapi.js following the functions back to its parents and vice versa but with the darn obfuscation they use it just makes it so much harder to see plus they change vars to different vars when it's really the same var still I'm just so frustrated
Well I don't think a plugin is needed as rCRON already supports forwarduser ?????Yeah, it seems like a real witch nowadays, it used to be a pretty simple interface. Maybe it'd be easier to just use RCON, send the player's ID or w/e to the RCON socket and just load them into the room. I'll take a look at it tomorrow and make a plugin.
You should be able to register? Everyone else is just fineHow can I test the demo? Because I cant make an account and you didnt provide any login creds.
Well I don't think a plugin is needed as rCRON already supports forwarduser ?????
You should be able to register? Everyone else is just fine
I keep getting a message: "Something went wrong please try it again."
Trying this out, i'll update with my thoughts
every username i put in is taken and same goes with emails.... Whats going on D:
edit probably me just doing something wrong. time to troubleshoot
Nice CMS! I'm currently learning nodejs and all that stuff, so it's great for me, except for one problem..
I got it working on my server but I can't register?