Fix zerocoder, use buffers instead of strings for vardata, add util for null-terminated string<->buffer conversion

This commit is contained in:
Casper Warden
2017-11-26 19:47:41 +00:00
parent 3f25aa0f1b
commit fc6d77a893
195 changed files with 2005 additions and 1881 deletions

View File

@@ -12,14 +12,30 @@ const bot = new nmv.Bot(loginParameters);
let resp = null;
bot.Login().then((response) =>
bot.login().then((response) =>
{
//Establish circuit wit region
resp = response;
return response.region.circuit.establish(response.agent.agentID);
return bot.connectToSim();
}).then(() =>
{
resp.region.circuit.sendInstantMessage(resp.agent.agentID, "dbcd7dfe-a5db-4736-91bc-2af1e69902e6", "FUCK YOU");
let it = 0;
setInterval(() =>
{
it++;
if (it < 11)
{
bot.sendInstantMessage("dbcd7dfe-a5db-4736-91bc-2af1e69902e6", "Test " + it);
bot.sendInstantMessage("d1cd5b71-6209-4595-9bf0-771bf689ce00", "Test " + it);
}
}, 1000);
}).then(() =>
{
console.log("IM 1 Sent");
}).then(() =>
{
//console.log("Logging off");
//return bot.close();
}).catch((error) =>
{
console.log("Error:");