Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Thiefing script?

Coreman Fairport
Registered User
Join date: 6 Apr 2009
Posts: 19
07-27-2009 14:42
I sorta want to make stealing available in a sim and I want to try the idea on a few items. Basically what I think is that the script runs on touch, it gives a copy of the item to the thief and the original gets deleted. Figure this would be easy to do? Would it be interesting to people in a sim to have stealable items?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-27-2009 14:55
Look up llDie and llGiveInventory. Handing out the replacement objects will have to be done by a central server because of limitations in self-rep.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Kokoro Fasching
Pixie Dust and Sugar
Join date: 23 Dec 2005
Posts: 949
07-27-2009 16:37
You would also need to make sure the person who touched the item is close.. say with in 1 or 2 meters.. most people can't steal something physical when they are 20 meters away. :)

You'd need to have a system where the person has a dexterity stat - fumbled finger people would fail most of the time, and get caught. :)
Coreman Fairport
Registered User
Join date: 6 Apr 2009
Posts: 19
07-27-2009 21:09
Is there an so called "area of effect" code where the avatar has to be in a certain range to activate the script?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-28-2009 02:04
From: Coreman Fairport
Is there an so called "area of effect" code where the avatar has to be in a certain range to activate the script?
Look up llGetPos() and llDetectedPos() and llVecDist().
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
07-28-2009 02:54
Set object in the edit box to 'give original' then the thief takes the object, but then of course anyone can also take it, whoever gets there first, so not a good solution I guess, but just thrown into the mix for reference.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
07-28-2009 03:02
Right, because we can't have people stealing from thieves. :confused:
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
07-28-2009 03:07
:P I assumed this was RPing and I guess they wouldn't want non RP thieves stealing it first, LOL :)
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-28-2009 03:26
From: Dekka Raymaker
:P I assumed this was RPing and I guess they wouldn't want non RP thieves stealing it first, LOL :)
Or RP non-thieves, for that matter.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Coreman Fairport
Registered User
Join date: 6 Apr 2009
Posts: 19
07-30-2009 21:57
Well, would it be possible to program it so people in a certain group (a thief group) could steal it, but no one else can.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
07-31-2009 01:45
llSameGroup()
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore