Nickname change with Javascript

gkardinal

New Member
Joined
Oct 17, 2018
Messages
2
Likes
1
Points
11
Age
19
#1
He i want to make an Nickname-Changer in HTML/Javascript but i cant find anything about this and didn't know the Syntax to Change the nickname
if someone can help me im very grateful,
in love your kardinal!
 
Joined
Oct 10, 2015
Messages
2
Likes
2
Points
38
#2
I guess you want a clientside changer (as I don't think there is a way to change names on the server).
There are bridges between ts3 and javascript, but I wouldn't recommend this.
Try learning python and use pyTson or learn lua and use the lua plugin (python is more useful though).
 

ewenjo

That norwegian guy
Joined
Dec 14, 2016
Messages
63
Likes
28
Points
57
Location
Norway
#3
Are you using some kind of backend server that connects with the TeamSpeak server? eg. Nodejs
 

XARON

get over here!
Joined
Nov 24, 2016
Messages
118
Likes
136
Points
103
Location
Venus
#4
Install and enable clientquery plugin, set auth key and nickname.

HTML:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        var authKey = 'S0XZ-6P77-69A4-KH2H-27CX-A6ID',
            nickname = 'XARONdaTEST';
        function changeNickname() {
            var xhr = new XMLHttpRequest();
            xhr.open("POST", "http://127.0.0.1:25639", true);
            xhr.onreadystatuschange = function() {
                return true;
            }
            xhr.send("auth apikey="+authKey+"\nclientupdate client_nickname="+nickname+"\n");
        }
    </script>
    <button type="button" onclick="changeNickname()">Change Nickname</button>
</body>
</html>
 
Last edited:

Top