Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007974opensim[REGION] Script Functionspublic2016-07-24 08:242016-07-24 08:24
ReporterMandarinka Tasty 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Statuspatch includedResolutionopen 
PlatformUnix, WindowsOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007974: New OSSL Function: osNpcSetTitle(key npc, string title);
DescriptionHello :)

I have created new OSSL function : osNpcSetTitle(key npc, string title);

That allows for setting any string title to existing NPC in a dynamical way.

OSSL Example:

key npc = NULL_KEY;
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");
        state title;
    }
    state_exit()
    {
        llSetTimerEvent(8);
    }
}
state title
{
    timer()
    {
        llSetTimerEvent(0);
        osNpcSetTitle(npc,"I'm the Bot");
        state default;
    }
}
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
Script Engine
EnvironmentMono / Linux32, Mono / Linux64, Mono / Windows, Mono / OSX, .NET / Windows32, .NET / Windows64
Mono Version4.0.1
Viewer
Attached Filespatch file icon 0001-New-OSSL-function-osNpcSetTitle-key-npc-string-title.patch [^] (6,176 bytes) 2016-07-24 08:24 [Show Content]

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2016-07-24 08:24 Mandarinka Tasty New Issue
2016-07-24 08:24 Mandarinka Tasty File Added: 0001-New-OSSL-function-osNpcSetTitle-key-npc-string-title.patch
2016-07-24 08:24 Mandarinka Tasty Status new => patch included


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker