Teleports, Asset upload / download, Restructure stuff, Fix varlength read bug, BVH parser, agent initial appearance and animation glitches, LLSD + Caps + Event queue
This commit is contained in:
@@ -2,6 +2,7 @@ const nmv = require('../dist/index');
|
||||
const loginParameters = new nmv.LoginParameters();
|
||||
|
||||
const parameters = require('./loginParameters.json');
|
||||
const fs = require('fs');
|
||||
|
||||
loginParameters.firstName = parameters.firstName;
|
||||
loginParameters.lastName = parameters.lastName;
|
||||
@@ -14,28 +15,23 @@ let resp = null;
|
||||
|
||||
bot.login().then((response) =>
|
||||
{
|
||||
bot.clientEvents.onLure.subscribe((lureEvent) =>
|
||||
{
|
||||
bot.getRegionMapInfo(lureEvent.gridX, lureEvent.gridY).then((regionInfo) =>
|
||||
{
|
||||
console.log('Auto-accepting teleport lure to ' + regionInfo.name + ' (' + regionInfo.avatars.length + ' avatar' + ((regionInfo.avatars.length === 1)?'':'s') + ' present) from ' + lureEvent.fromName + ' with message: ' + lureEvent.lureMessage);
|
||||
bot.acceptTeleport(lureEvent);
|
||||
});
|
||||
});
|
||||
|
||||
//Establish circuit wit region
|
||||
resp = response;
|
||||
return bot.connectToSim();
|
||||
}).then(() =>
|
||||
{
|
||||
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();
|
||||
// Do some stuff
|
||||
|
||||
// When it's time to go home, call bot.close();
|
||||
}).catch((error) =>
|
||||
{
|
||||
console.log("Error:");
|
||||
|
||||
Reference in New Issue
Block a user