Thread

Xelagot script/variable help (Bots)

Xelagot script/variable help // Bots

1  |  

shekwan

May 13, 2000, 7:16am
Hello fellow Citizens:-)))

I'm new to bots. Just downloaded my Xelagot about a week ago. And I'm
impressed about the posibilities with the Xelagots. This is very, very kewl
programming:-)))))

But I have a problem scripting my Xelagot. And I know it's me and not the
bot:-)) Perhaps I'll explain it with a scenario:

I found that the Xelagot is very usefull for my historical
surveys/expeditions/research so here goes:

I want my xelagot - Snoopy - to tack along when I'm on expedition and if I
find something interresting I will click on an object and have Snoopy report
to me verbal: Model, Description, Citizen, Action, and write it to a file
PLUS the objects position.

Well getting the information written to a file is fairly easy(!) But I can't
find a script command/variable which isolates Model, Decription etc. I
thought that all this was in the GetTargetObject script command. But it
seems to me that the data GetTargetObject returns is pos, hight and
direction of the object.

I know about querying the database, eventhandler, filter etc.

Your help will be apreciated:-))

Shekwan

faber

May 13, 2000, 3:17pm
I don't know Xelagot, but in general bots do only have a unique object identification (object number
and position) in click events. Click events do not carry anything else about the object.

To retrieve the object details, the bot would have to query the world server for all objects in the
current zone, remember those,
and then match the identification against that object list, find the clicked-on object, and use the
object details.

This is what Preston (my publically available bot) does in this context. A bot that does not have a
current object query data set cannot record the object details of the object directly, and a bot
that does not have query support at all will never be able to tell those details.

So I assume you either have to "enable" some Xelagot support for that or you would have to manually
script Xelagot to query the world database, remember result and match the click details against it.

More info is available from XelaG himself, i am sure, e.g. in AW :)

Faber


[View Quote]

xelag

May 17, 2000, 1:54pm
Hi,

If you go to the Survey Manager (menu Uni | Survey), you have an option to track
the bots position while querying... This is not available in scripting (not a
bad idea tho, to add this possibility) but can be combined with scripting. Try
starting a survey in the survey manager, menu Survey | Start Query, with the
following options enabled: auto survey map, use cache, map tracks bot. If the
bot is following you, it will start a new query when necessary. I admit this is
a bit clumsy, and there are possibilities to do that without the survey manager
on. Have you had a look at the script which comes with the bot called
avatar_object_click.txt? It has all the elements for detecting objects when the
bot is querying in the right zone, maybe you can use some of the code there. Be
careful, tho: if you click on an object the bot cannot find (in this particular
script) the bot teleports to gz :)

Another option is to ask the bot verbally to start a query at its own position
when you have an object you wish to record. Wait until the bot says it is
ready, and use the code in the script I mentioned to make a script to record the
object and its position... that is, if you don't mind talking or whispering to
bots :) That's much faster that using the survey manager option, because in the
survey manager, the bot queries 25 sectors instead of 9, to cover the edges of
the map

Hmm, looking at my help files, I see I omitted the verbal commands for querying
a zone (they exist for longer than a year LOL)... I will be adding them to-day
to the Build-Seed commands. The verbal command to query at the bot's position
is:

query here
query there

to query at a given coordinate
query at <coords>

you may have to stop an ongoing query for this:
end query

this is to make sure verbal commands don't accidentally interfere with scripts
and the survey manager

I hope this helps. For a faster reply, send me an e-mail to xelag at 3dee.nl

Alex (XelaG)


[View Quote] > Hello fellow Citizens:-)))
>
> I'm new to bots. Just downloaded my Xelagot about a week ago. And I'm
> impressed about the posibilities with the Xelagots. This is very, very kewl
> programming:-)))))
>
> But I have a problem scripting my Xelagot. And I know it's me and not the
> bot:-)) Perhaps I'll explain it with a scenario:
>
> I found that the Xelagot is very usefull for my historical
> surveys/expeditions/research so here goes:
>
> I want my xelagot - Snoopy - to tack along when I'm on expedition and if I
> find something interresting I will click on an object and have Snoopy report
> to me verbal: Model, Description, Citizen, Action, and write it to a file
> PLUS the objects position.
>
> Well getting the information written to a file is fairly easy(!) But I can't
> find a script command/variable which isolates Model, Decription etc. I
> thought that all this was in the GetTargetObject script command. But it
> seems to me that the data GetTargetObject returns is pos, hight and
> direction of the object.
>
> I know about querying the database, eventhandler, filter etc.
>
> Your help will be apreciated:-))
>
> Shekwan

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2022. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn