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