Difference between revisions of "User:Kristy Fanshaw/Vendor System Script"

From Second Life Wiki
Jump to navigation Jump to search
(Undo revision 196612 by Kristy Fanshaw (Talk))
Line 16: Line 16:


To get a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.}}
To get a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.}}
{{box|Pay script for reseller vendor|Place this script in a Vendor Root prim you've created.<br>
{{box|Pay Script for Reseller vendor|
What it does:<br>
Place this script in a Vendor Root prim you've created.<br><br>
1. it asks the owner of the vendor to rezz the update box.<br>
What it does:
2. update box will define the URL from where it can aquire the email address of the vendor. (the webpage body should contain only pure address - index.html file should contain no code)<br>
# it asks the owner of the vendor to rezz the update box.<br>
3. when the URL is set, it asks the owner of the vendor to grant debits. If the owner won't do so, the script resets. <br>
# update box will define the URL from where it can aquire the email address of the vendor. (the webpage body should contain only pure address - index.html file should contain no code)<br>
4. when debits are granted the vendor will be active<br>
# when the URL is set, it asks the owner of the vendor to grant debits. If the owner won't do so, the script resets.<br>
5. if the owner of the vendor touches vendor in active mode, the vendor will tell how many items have been sold since activation.<br>
# when debits are granted the vendor will be active.<br>
Purchase:<br>
# if the owner of the vendor touches vendor in active mode, the vendor will tell how many items have been sold since activation.<br><br>
1. buyer can pay only the amount of money that is set in "integer gCorrectAmount = price;"<br>
Purchase:
2. when buyer pays money, the vendor goes to check the email address of the server from given URL. If there will be invalid response, money will be refunded to buyer and vendor shuts down till next update.<br>
# buyer can pay only the amount of money that is set in "integer gCorrectAmount"  
3. vendor sends now email to server prim with buyers ID in subject line and its own email address in message content.<br>
# when buyer pays money, the vendor goes to check the email address of the server from given URL. If there will be invalid response, money will be refunded to buyer and vendor shuts down till next update.
4. server will give the item to buyer and sends "delivered" notification back to vendor. If the server is not working or there will be some other issues with delivery, then money will be refunded to buyer and vendor shuts down till next update.<br>
# vendor sends now email to server prim with buyers ID in subject line and its own email address in message content.
5. when vendor receives email from server with "delivered" note, then creator of the vendor receives the money.}}
# server will give the item to buyer and sends "delivered" notification back to vendor. If the server is not working or there will be some other issues with delivery, then money will be refunded to buyer and vendor shuts down till next update.
# when vendor receives email from server with "delivered" note, then creator of the vendor receives the money.  
 
 
<lsl>////////////////////////////////////////////////////////////////////////////////////////////////
<lsl>////////////////////////////////////////////////////////////////////////////////////////////////
//    Copyright (c) 2008 by Kristy Fanshaw                                                    //
//    Copyright (c) 2008 by Kristy Fanshaw                                                    //
Line 266: Line 269:
                 state default;         
                 state default;         
             }                           
             }                           
}</lsl>}}
}</lsl>}}  
 
{{box|Updater Script for Reseller vendor|
{{box|Updater Script for Reseller vendor|
Place this script in a box you've created.}}
Place this script in a box you've created.<br><br>
What it does:
What it does:
# when rezzed next to the vendor, it will try to update the vendors URL string.
# when rezzed next to the vendor, it will try to update the vendors URL string.
Line 316: Line 318:
                     }
                     }
             }
             }
}</lsl>
}</lsl>}}

Revision as of 13:58, 10 January 2009

Copying Permission

Copyright © 2008 by Kristy Fanshaw

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

To get a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.

Pay Script for Reseller vendor

Updater Script for Reseller vendor