Difference between revisions of "User:Kristy Fanshaw/Vendor System Script"
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 | {{box|Pay Script for Reseller vendor| | ||
What it does: | Place this script in a Vendor Root prim you've created.<br><br> | ||
What it does: | |||
# it asks the owner of the vendor to rezz the update box.<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> | |||
# 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> | |||
# when debits are granted the vendor will be active.<br> | |||
Purchase: | # 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> | ||
Purchase: | |||
# buyer can pay only the amount of money that is set in "integer gCorrectAmount" | |||
# 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. | |||
# vendor sends now email to server prim with buyers ID in subject line and its own email address in message content. | |||
# 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
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
- Click Here To see my main page for more scripts, if i'll make any :))
- Shorter Vendor System Script :: Same script, but without HTTP check
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/>.