Re: [Opensim-dev] CHANGED_REGION_START

2010-07-21 Thread drwhiet

If two honored developer argue .. i throw in a script i always use ..
There is this story (on oSGRID) that this 
  else if (change & 256) 
bit is set during a region restart 


default
{
state_entry()
{
// do something
}

changed(integer change) // something changed, take action
   {
  if(change & CHANGED_OWNER)
   {
// do something
  }
  else if (change & 256) // that bit is set during a region restart
  {
 llResetScript();
  }
   }

 on_rez(integer total_number)
{
llResetScript();
}

touch_start(integer total_number)
{
// do something
}   

}


best regards
Wordfromthe Wise



-Ursprüngliche Nachricht-
Von: opensim-dev-boun...@lists.berlios.de
[mailto:opensim-dev-boun...@lists.berlios.de] Im Auftrag von Melanie
Gesendet: Mittwoch, 21. Juli 2010 23:59
An: opensim-dev@lists.berlios.de
Betreff: Re: [Opensim-dev] CHANGED_REGION_START

it's implemented as CHANGED_REGION_RESTART.

Melanie

Justin Clark-Casey wrote:
> On 20/07/10 22:09, Siann Beck wrote:
>> Is this supported in OpenSim; that is, is the changed() event 
>> triggered for it? I know the constant is not defined, but putting the 
>> literal value, my handler is still not working.
>>
>> http://wiki.secondlife.com/wiki/CHANGED_REGION_START
> 
> It isn't yet implemented as far as I can see.  I'm not sure how 
> complex it would be to implement - it could be quite easy (perhaps 
> just have the script engine fire the event if it loads a script during
region or startup) or there might be some technical complexity.
> 
___
Opensim-dev mailing list
Opensim-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev

___
Opensim-dev mailing list
Opensim-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev


Re: [Opensim-dev] CHANGED_REGION_START

2010-07-21 Thread Melanie
it's implemented as CHANGED_REGION_RESTART.

Melanie

Justin Clark-Casey wrote:
> On 20/07/10 22:09, Siann Beck wrote:
>> Is this supported in OpenSim; that is, is the changed() event
>> triggered for it? I know the constant is not defined, but putting the
>> literal value, my handler is still not working.
>>
>> http://wiki.secondlife.com/wiki/CHANGED_REGION_START
> 
> It isn't yet implemented as far as I can see.  I'm not sure how complex it 
> would be to implement - it could be quite 
> easy (perhaps just have the script engine fire the event if it loads a script 
> during region or startup) or there might 
> be some technical complexity.
> 
___
Opensim-dev mailing list
Opensim-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev


Re: [Opensim-dev] CHANGED_REGION_START

2010-07-21 Thread Justin Clark-Casey

On 20/07/10 22:09, Siann Beck wrote:

Is this supported in OpenSim; that is, is the changed() event
triggered for it? I know the constant is not defined, but putting the
literal value, my handler is still not working.

http://wiki.secondlife.com/wiki/CHANGED_REGION_START


It isn't yet implemented as far as I can see.  I'm not sure how complex it would be to implement - it could be quite 
easy (perhaps just have the script engine fire the event if it loads a script during region or startup) or there might 
be some technical complexity.


--
Justin Clark-Casey (justincc)
http://justincc.org
http://twitter.com/justincc
___
Opensim-dev mailing list
Opensim-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev