On 16/09/10 23:23, bodzette Coignet wrote:
Hi Justin:
On your blog you have a post "passing data between a script and a region
module with modSendCommand()"

Is that more or less how I would go about testing whether I can invoke
this code?

No, you would invoke the npc via normal script commands with an os prefix, e.g.

default
{
    touch_start(integer total_number)
    {
        key cloneKey = osNpcCreate("Scary", "Clone", <134, 194, 43>, 
llDetectedKey(0));
    }
}

There's no real documentation of these apart from the code (in OSSL_Api.cs).  
However, they are the last four in the list at

http://www.scengine.org/index.php?option=com_content&view=article&id=10:opensim-api-functions&catid=6:os-api-functions&Itemid=14

It also looks like someone else already tried them without success.  Which 
leads me to suspect that they no longer work.

http://www.osgrid.org/forums/viewtopic.php?f=5&t=2699

Remember, you will need to enable OSSL functions at a High threat level. Information on how to do this should be available via Google.


On Thu, Sep 16, 2010 at 3:36 PM, Justin Clark-Casey
<[email protected] <mailto:[email protected]>> wrote:

    On 16/09/10 22:27, bodzette Coignet wrote:

        No, I'm talking about the NPC module that's in the opensim
        source code
        found at the following location in the source tree:

        OpenSim\Region\OptionalModules\World\NPC

        Does *nobody* know who the original dev is that did this work?


    That module has been there for ages.  You should be able to find out
    who created it by looking in the git logs.

     >From a quick code inspection, it looks like the CreateNPC method
    needs to be triggered to get anything to happen.  This is hooked up
    to the osNpcCreate() command (in the OSSL_Api.cs file).  You could
    try invoking this command via an in-world script - it looks like
    you'll need the uuid of an existing avatar to get going.  There are
    some other os commands there which appear to the NPC module (say,
    move, remove).

    It's also very possible that this module doesn't work any more - I
    haven't heard of anybody trying to use it for a long time.  The only
    way to find out is to try it.

    --
    Justin Clark-Casey (justincc)
    http://justincc.org
    http://twitter.com/justincc

    _______________________________________________
    Opensim-users mailing list
    [email protected] <mailto:[email protected]>
    https://lists.berlios.de/mailman/listinfo/opensim-users




_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users


--
Justin Clark-Casey (justincc)
http://justincc.org
http://twitter.com/justincc
_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users

Reply via email to