blob: ec7b65d8aab041aaf7b4dfb8261b81ee52de59f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { updateActionCommands } from './updateActionCommands'
import { client } from '../client'
/**
* Change role via OOC.
*/
export function changeRoleOOC() {
const roleselect = <HTMLInputElement>document.getElementById("role_select");
client.sendOOC(`/pos ${roleselect.value}`);
client.sender.sendServer(`SP#${roleselect.value}#%`);
updateActionCommands(roleselect.value);
}
window.changeRoleOOC = changeRoleOOC;
|