diff options
| author | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-07 17:01:25 -0400 |
|---|---|---|
| committer | Caleb <caleb.mabry.15@cnu.edu> | 2022-09-07 17:01:25 -0400 |
| commit | 3f8d0974b327e663328bc36cd97f1ba1855a2269 (patch) | |
| tree | fe9a18c8c0cdbf1ab8ef037af6f98a53b0ea018f /webAO/dom/iniEdit.ts | |
| parent | 5362069a05b4bfbef03f37605af979aa3cf0e066 (diff) | |
Added more functions
Diffstat (limited to 'webAO/dom/iniEdit.ts')
| -rw-r--r-- | webAO/dom/iniEdit.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/webAO/dom/iniEdit.ts b/webAO/dom/iniEdit.ts new file mode 100644 index 0000000..359a226 --- /dev/null +++ b/webAO/dom/iniEdit.ts @@ -0,0 +1,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; |
