diff --git a/houdini/handlers/play/navigation.py b/houdini/handlers/play/navigation.py index 377095e..63089a5 100644 --- a/houdini/handlers/play/navigation.py +++ b/houdini/handlers/play/navigation.py @@ -1,7 +1,7 @@ from houdini import handlers from houdini.handlers import XTPacket -import random +import random, time @handlers.handler(XTPacket('j', 'js'), pre_login=True) @@ -17,10 +17,19 @@ async def handle_join_server(p, penguin_id: int, login_key: str, lang: str): await p.send_xt('js', int(p.data.agent_status), int(0), int(p.data.moderator), int(p.data.book_modified)) + #handleGetMyPlayerPuffles() + + current_time = int(time.time()) + penguin_standard_time = current_time * 1000 + server_time_offset = 7 + + await p.send_xt('lp', p.server.penguin_string_compiler.compile(p), p.data.coins, 0, 1440, + penguin_standard_time, p.age, 0, p.data.minutes_played, None, server_time_offset, 1, 0, 211843) + spawn = random.choice(p.server.spawn_rooms) await spawn.add_penguin(p) await p.load() p.joined_world = True - + p.server.penguins_by_id[p.data.id] = p