Fix off by one bug in objects GrabbingBehaviour of pCampBot.exe
Also fix usage message.iar_mods
parent
b242ceda1e
commit
84023c8162
|
@ -47,7 +47,7 @@ namespace pCampBot
|
||||||
{
|
{
|
||||||
Dictionary<UUID, Primitive> objects = Bot.Objects;
|
Dictionary<UUID, Primitive> objects = Bot.Objects;
|
||||||
|
|
||||||
Primitive prim = objects.ElementAt(Bot.Random.Next(0, objects.Count)).Value;
|
Primitive prim = objects.ElementAt(Bot.Random.Next(0, objects.Count - 1)).Value;
|
||||||
|
|
||||||
// This appears to be a typical message sent when a viewer user clicks a clickable object
|
// This appears to be a typical message sent when a viewer user clicks a clickable object
|
||||||
Bot.Client.Self.Grab(prim.LocalID);
|
Bot.Client.Self.Grab(prim.LocalID);
|
||||||
|
|
|
@ -111,7 +111,7 @@ namespace pCampBot
|
||||||
" -firstname first name for the bots\n" +
|
" -firstname first name for the bots\n" +
|
||||||
" -lastname lastname for the bots. Each lastname will have _<bot-number> appended, e.g. Ima Bot_0\n" +
|
" -lastname lastname for the bots. Each lastname will have _<bot-number> appended, e.g. Ima Bot_0\n" +
|
||||||
" -password password for the bots\n" +
|
" -password password for the bots\n" +
|
||||||
" -b, behaviours behaviours for bots. Comma separated, e.g. p,g. Default is p\n",
|
" -b, behaviours behaviours for bots. Comma separated, e.g. p,g. Default is p\n" +
|
||||||
" current options are:" +
|
" current options are:" +
|
||||||
" p (physics)" +
|
" p (physics)" +
|
||||||
" g (grab)" +
|
" g (grab)" +
|
||||||
|
|
Loading…
Reference in New Issue