Who Is Online

1
Online

Thursday, 24 May 2018 03:20

Vendor that sells to Only One Person

//Title: Vendor to Sell to Only One Person //Date: 01-28-2004 04:38 PM //Version: 1.0.0 //Scripter: Ama Omega // string name = "Nameofpersonbuying"; integer price = 10; // adjust accordingly string item = "nameofitem"; default { state_entry() { llRequestPermissions( llGetOwner(), PERMISSION_DEBIT ); } run_time_permissions(integer perms) { if (perms & PERMISSION_DEBIT) state run; } } state run { money(key id, integer amount) { if (llKey2Name(id) == name) { if (amount != price) { llWhisper(0,"Sorry! The price is $" + (string)price); llGiveMoney(id,amount); } else { llGiveInventory(id,item); llInstantMessage(llGetOwner(),name + " bought their item."); state sold; } } else { llWhisper(0,"Sorry I'm only selling this to " + name); llGiveMoney(id,amount); } } } state sold { state_entry() { } }

Flash Scratch to SL - Your Scripting Tool

Script ImageNeed to write a LSL script and don't know how to script?  I know I hate trying to get my head around LSLS when I an in a time crunch. So why not give Flash Scratch a try! Its a great tool for learning and scoding your own scripts for Second Life without having to pay someone to do it and without a crash course in LSL

A Huge thanks to John Bennet of ATLAS Institute at University of Colorado and Eric Rosenbaum at MIT for writing Scratch for SL to begin with.

Read more: Flash Scratch to SL - Your Scripting Tool