removed useless _ folders
This commit is contained in:
3
Donate/Donate.sol
Normal file
3
Donate/Donate.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Donate">
|
||||
<Project name="Donate" path="Donate\Donate.prj" active="true"/>
|
||||
</Solution>
|
||||
6
Donate/Donate/Donate.prj
Normal file
6
Donate/Donate/Donate.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Donate" guid="D71112A9-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7111385-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Donate_1.lsl" guid="D711404A-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
80
Donate/Donate/Object/Donate_1.lsl
Normal file
80
Donate/Donate/Object/Donate_1.lsl
Normal file
@@ -0,0 +1,80 @@
|
||||
// :CATEGORY:Money
|
||||
// :NAME:Donate
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:51
|
||||
// :ID:247
|
||||
// :NUM:338
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Donate.lsl
|
||||
// :CODE:
|
||||
|
||||
|
||||
//Variables
|
||||
|
||||
integer randomDialogChannel;
|
||||
|
||||
integer donationAmount;
|
||||
|
||||
integer listenID;
|
||||
|
||||
key theirkey; // place to save the guy that touched us's key
|
||||
|
||||
|
||||
|
||||
//Options
|
||||
|
||||
|
||||
|
||||
// you need to add your key!!
|
||||
|
||||
key recepient = "93ffa6cc-e2c6-431c-b67c-54cdb7882265"; //Key for Fox, please add it here using the Key Prim script
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
//Select a random dialog channel so we don't conflict with other scripts
|
||||
|
||||
randomDialogChannel = -(integer)llFrand(2147483647);
|
||||
|
||||
}
|
||||
|
||||
on_rez(integer start_param)
|
||||
|
||||
{
|
||||
|
||||
//Always reset on rez
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
run_time_permissions(integer permissions)
|
||||
|
||||
{
|
||||
|
||||
if (permissions & PERMISSION_DEBIT)
|
||||
|
||||
{
|
||||
|
||||
//If we have received permissions to debit account, send money
|
||||
|
||||
llGiveMoney(recepient, donationAmount);
|
||||
|
||||
llSay(0,"Thank you very much for your donation!");
|
||||
|
||||
llInstantMessage(recepient, llKey2Name(llGetOwner()) + " just donated L$" + (string)donationAmount + " via the built-in donation option");
|
||||
|
||||
}
|
||||
|
||||
llResetScript(); //Reset the script to remove permission to debit account
|
||||
|
||||
Reference in New Issue
Block a user