blob: 359a226b46b4733dde2599af5daa31cd0c3068ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { client } from "../client";
import { packetHandler } from "../packets/packetHandler";
/**
* Triggered by the ini button.
*/
export async function iniedit() {
const ininame = (<HTMLInputElement>document.getElementById("client_ininame"))
.value;
const inicharID = client.charID;
await client.handleCharacterInfo(ininame.split("&"), inicharID);
packetHandler.get("PV")!(`PV#0#CID#${inicharID}`.split("#"));
}
window.iniedit = iniedit;
|