Difference between revisions of "User:Kristy Fanshaw/Vendor System Script"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 96: | Line 96: | ||
{ | { | ||
llResetScript(); | llResetScript(); | ||
} | |||
} | |||
state sens1 | |||
{ | |||
state_entry() | |||
{ | |||
state sens; | |||
} | } | ||
} | } | ||
Line 114: | Line 121: | ||
{ | { | ||
url = message; | url = message; | ||
llOwnerSay("updated"); | llOwnerSay("updated"); | ||
llShout(Ch,"updated"); | llShout(Ch,"updated"); | ||
Line 122: | Line 128: | ||
{ | { | ||
llListenRemove(listen_handle); | llListenRemove(listen_handle); | ||
state | state sens1; | ||
} | } | ||
no_sensor () | no_sensor () | ||
Line 148: | Line 154: | ||
} | } | ||
} | } | ||
state Ready1 | |||
{ | |||
state_entry() | |||
{ | |||
state Ready; | |||
} | |||
} | |||
state Ready | state Ready | ||
{ | { | ||
Line 167: | Line 180: | ||
{ | { | ||
url = message; | url = message; | ||
llOwnerSay("updated"); | llOwnerSay("updated"); | ||
llShout(Ch,"updated"); | llShout(Ch,"updated"); | ||
Line 199: | Line 211: | ||
llInstantMessage(llDetectedKey(0),"You didn't pay enough, " + llKey2Name(id) + ". Refunding your payment of L$" + (string)amount + "."); | llInstantMessage(llDetectedKey(0),"You didn't pay enough, " + llKey2Name(id) + ". Refunding your payment of L$" + (string)amount + "."); | ||
llGiveMoney(id, amount); | llGiveMoney(id, amount); | ||
state | state Ready1; | ||
} | } | ||
else | else | ||
Line 255: | Line 267: | ||
llSetText("", <1.0, 1.0, 1.0>, 1.0); | llSetText("", <1.0, 1.0, 1.0>, 1.0); | ||
llSetTimerEvent(0); | llSetTimerEvent(0); | ||
state | state Ready1; | ||
} | } | ||
} | } | ||
Line 390: | Line 402: | ||
} | } | ||
totalsold = totalsold + 1; | totalsold = totalsold + 1; | ||
llSetObjectDesc((string)totalsold); | |||
llGetNextEmail("", ""); | llGetNextEmail("", ""); | ||
} | } |
Latest revision as of 02:52, 8 April 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/>.