Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008093opensim[REGION] Scripting Enginepublic2016-12-14 13:242016-12-14 14:35
ReporterMandarinka Tasty 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Statuspatch includedResolutionopen 
PlatformUnix, Win, MacOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0008093: New OSSL function: osNpcSetProfileWebURL(LSL_Key npc, string url);
DescriptionHello :)

The patch has been included.

The patch gives possibility to set url to any webpage in created NPC's profile.

Example of the script's code:

key npc = NULL_KEY;
string url = "http://www.my_web.com" [^] // string url to the webpage

default
{
    touch_start(integer num)
    {
        if(npc == NULL_KEY)
        {
            osOwnerSaveAppearance("MyClone");
            llSetTimerEvent(2);
        }
        else
        {
            osNpcRemove(npc);
            npc = NULL_KEY;
            llRemoveInventory("MyClone");
        }
    }
    timer()
    {
        llSetTimerEvent(0);
        npc = osNpcCreate("John","Smith",llGetPos()+<0,0,2>,"MyClone");
        osNpcSetProfileWebURL(npc, url);
    }
}

To make it run in OSGRID profile's system, one needs to download:

OpenSimProfile source, that can be taken from http://www.osgrid.org/index.php/downloads [^] [^] [^] [^]

and replace line:

remoteClient.SendAvatarProperties(avatarID,
                                  ((INPC)(p.ControllingClient)).profileAbout,
                                  "5/25/1977",
                                  Utils.StringToBytes("Non Player Character"),
                                  "NPCs have no life.", 16,
                                  UUID.Zero, UUID.Zero, String.Empty, UUID.Zero);


with line:

remoteClient.SendAvatarProperties(avatarID,
                                  ((INPC)(p.ControllingClient)).profileAbout,
                                  ((INPC)(p.ControllingClient)).Born,
                                  Utils.StringToBytes("Non Player Character"),
                                  "NPCs have no life.", 16,
                                  UUID.Zero,
((INPC)(p.ControllingClient)).profileImage,
((INPC)(p.ControllingClient)).profileWebURL, UUID.Zero);

and next compile the source with this module.

After accepting this patch, appropriate profile dll library will be included

in OSGRID's distribution.
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics, ODE, BulletSim, ubODE
Script Engine
EnvironmentUnknown, Mono / Linux32, Mono / Linux64, Mono / Windows, Mono / OSX, .NET / Windows32, .NET / Windows64
Mono Version4.0.1
Viewer
Attached Filespatch file icon 0001-New-OSSL-function-osNpcSetProfileWebURL-LSL_Key-npc-.patch [^] (7,506 bytes) 2016-12-14 13:24 [Show Content]

- Relationships

-  Notes
(0031455)
UbitUmarov (administrator)
2016-12-14 14:29

patch on hold
(0031457)
Mandarinka Tasty (reporter)
2016-12-14 14:35

Of course :)

- Issue History
Date Modified Username Field Change
2016-12-14 13:24 Mandarinka Tasty New Issue
2016-12-14 13:24 Mandarinka Tasty File Added: 0001-New-OSSL-function-osNpcSetProfileWebURL-LSL_Key-npc-.patch
2016-12-14 13:24 Mandarinka Tasty Status new => patch included
2016-12-14 14:29 UbitUmarov Note Added: 0031455
2016-12-14 14:35 Mandarinka Tasty Note Added: 0031457


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker