Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
07-22-2009 01:07
Hi all, this could go under both Scripts & content creation (but here is the better forum  ) i want to make a Tazer phone like the one http://www.laneselfdefense.com/cellphonestungun.htmI have the basic shape done. what i'm looking for is a script to make an Arc between the contacts (particle) for about 10 sec. something to show numbers on a fake screen (parcel prim count, altitude or time ) and kill it after a few days if not creator or similar. (this might be hard)
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-22-2009 02:51
From: Tabris Daxter Hi all, this could go under both Scripts & content creation (but here is the better forum  ) i want to make a Tazer phone like the one http://www.laneselfdefense.com/cellphonestungun.htmI have the basic shape done. what i'm looking for is a script to make an Arc between the contacts (particle) for about 10 sec. something to show numbers on a fake screen (parcel prim count, altitude or time ) and kill it after a few days if not creator or similar. (this might be hard) for the particles, llParticleSystem probably with one contact targeting the other, and a texture that is half the distance between the contacts or less, using follow velocity to line it up. the numbers (I'm assuming it's not really important what they are only that the display randomly changes) would probably be better served with texture animation and the product demo-mode kill switch is probably the hardest part... but I've played with the idea, so here's a two state snippet that works if the creator of the object is also the vendor (meaning it can't be given to someone else for them to sell/distribute) integer gIntDemo; key gKeyCustomer;
default{ state_entry(){ if (llGetOwner() == llGetInventoryCreator( llGetScriptName() )){ state sEnable; }else{ llSetLinkPrimitiveParams( LINK_SET, [PRIM_SIZE, < 0.1, 0.1, 0.1 >, PRIM_TYPE, PRIM_TYPE_BOX, 0, ZERO_VECTOR, 0.0, ZERO_VECTOR, ZERO_VECTOR, ZERO_VECTOR] ); llSetLinkTexture( LINK_SET, TEXTURE_DEFAULT, ALL_SIDES ); } } }
state sEnable{
//-- main script actions go here
changed( integer vBitChg ){ if (CHANGED_OWNER & vBitChg){ if (gKeyCustomer){ llResetScript(); }else{ gKeyCustomer = llGetOwner(); gIntDemo = llGetUnixTime() + 172800; llSetTimerEvent( 3600 ); } } }
timer(){ if (llGetUnixTime() > gIntDemo){ llResetScript(); } } }
obviously you'll want both the script and the object to be no-Mod, and probably no-copy would be best (since we break the demo if they transfer it)... it's still susceptible to having the script ripped out (unless LL changed that) but that will only leave them the object which is no-mod
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
thanks
07-22-2009 03:06
From: someone creator of the object is also the vendor (meaning it can't be given to someone else for them to sell/distribute) does this mean that i have to give it from an item or just that the "creator name" has to be mine. From: someone it's still susceptible to having the script ripped out (unless LL changed that) but that will only leave them the object which is no-mod a way around this i have found is to "bury" the script a couple of Prims deep (if possible) and put a rubbish script in the Root Prim.
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
07-22-2009 08:32
From: Tabris Daxter Hi all, this could go under both Scripts & content creation (but here is the better forum  ) i want to make a Tazer phone like the one http://www.laneselfdefense.com/cellphonestungun.htmI have the basic shape done. what i'm looking for is a script to make an Arc between the contacts (particle) for about 10 sec. something to show numbers on a fake screen (parcel prim count, altitude or time ) and kill it after a few days if not creator or similar. (this might be hard) Just be very sure not to use the word Taser (tm) anywhere in the name or description of the product, except something like "similar to a Taser (tm)". Linden Lab has already been sued once by Taser International for people making items using that Trademarked brand name. 
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
07-22-2009 15:23
From: Darien Caldwell Just be very sure not to use the word Taser (tm) anywhere in the name or description of the product, except something like "similar to a Taser (tm)". Linden Lab has already been sued once by Taser International for people making items using that Trademarked brand name.  thanks. i'll keep it in mind. i just called it that because it's the only "universal" way to describe these type of items. however when/if i sell it i will re-name it. Back to coding. can someone point me to or post an on touch animation player. (prefer not asking for permission) something like (this is not code) //start not code touch; say ZAPPED particle arc or localized strobe (or both) wait 3 animation fall listen /5 "stand" //end not code
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-22-2009 21:04
From: Tabris Daxter does this mean that i have to give it from an item or just that the "creator name" has to be mine. it just means that there can't be any other av's in the chain of custody between you and the costomer buying it with the following exception: if it isn't ever rezzed by the intervening avs) this method basically assigns the first itself to the first user that rezzes it that isn't you. gets the current time when it's rezzed, and adds two days to that... then checks every hour that it's inworld and if the curent time is two days after the start up time, disables itself. obviously all that requires it to be in an area that enables scripts. as for the animation part, there is no way around requesting permissions.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Tabris Daxter
Snake oil Salesman
Join date: 22 Feb 2009
Posts: 61
|
07-23-2009 01:34
thanks for the clarification on that. i haven't been able to test it yet. //start not code touch; //done say ZAPPED // done particle arc // P.I.T.A but done or localized strobe (or both) wait 3 animation fall listen /5 "stand" //end not code with 2. "say ZAPPED" i want it to be an emote but with the AV's name not the item. i know it's something like: llsay (llgetowner + "/me got ZAPPED"  ; i know i'm close but not quite there.
|