Wplace Live Chats

Livechat for wplace.live

作者
mininxd
今日安裝
1
安裝總數
7
評價
0 0 0
版本
2.3.2
建立日期
2025-08-25
更新日期
2025-08-28
尺寸
298.5 KB
授權條款
未知
腳本執行於

wplace.live Live Chat

This script adds a live chat interface to wplace.live, allowing you to communicate with other players in real-time. The chat is context-aware, automatically connecting you to different chat rooms based on your location in the game.

Features

  • Region-Specific Chat: Automatically join a chat room with other players in your current on-screen region.
  • Alliance Chat: A dedicated, private chat room for you and your alliance members.
  • Real-Time Messaging: Messages appear instantly without needing to refresh the page, thanks to a persistent connection to the chat server.
  • User-Friendly Interface: A clean, modern chat UI with a draggable chat FAB button, settings, and a clear layout.
  • Message Caching: Previously loaded conversations are cached for faster switching between chat rooms.

How It Works

The script's magic lies in its ability to know where you are on the canvas without any official API. Here's a simplified breakdown:

  1. Monitoring Network Activity: The script securely monitors the game's network requests in the background. Specifically, it looks for requests related to placing a pixel (/s0/pixel/).
  2. Extracting Location Data: When you click on the canvas, the script inspects the corresponding network request to find your x and y coordinates and the boardId you are on.
  3. Creating a Dynamic Chat Room: It uses this information to generate a unique chat room ID based on your location. For example, it groups players into rooms based on 500x500 pixel areas. This ensures you are always chatting with players who are looking at the same part of the canvas as you.
  4. Connecting to the Chat: The script then connects to this specific chat room, loading existing messages and establishing a live connection for new ones.

This all happens automatically. All you have to do is click on the canvas, and the script will handle switching to the correct chat room.

Chat Interface

  • Floating Chat Button: A draggable button on the screen that you can click to open the chat window.
  • Chat Window:
    • User Info: Displays your name, ID, current region, and alliance information.
    • Tabs: Easily switch between the public 'Region' chat and your private 'Alliance' chat.
    • Message Display: Shows the conversation history.
    • Input Area: Type your messages here.
  • Settings Modal:
    • Enter to Send: Toggle whether pressing the Enter key sends your message.
    • Lock Chat to Region: Prevent the chat from automatically switching regions when you pan around the canvas.

Privacy

The script only reads publicly available network information generated by the game to determine your location. It does not access any of your personal data. All chat messages are sent securely to the chat server.