Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
archiv:opensim:downloads:scripts:tip_jar [2024/01/24 16:39] – Externe Bearbeitung 127.0.0.1 | archiv:opensim:downloads:scripts:tip_jar [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ===== Tip Jar / Donation Box ===== | ||
+ | |||
+ | < | ||
+ | //Keknehv Psaltery Updated Version of DONATION BOX By jean cook, ama omega, and nada epoch Debugged by YadNi Monde (LoL) Yea, that s a Bunch O Peeps =) | ||
+ | //Summary: The following script will make an object accept donations on your behalf. | ||
+ | //Usage: stick it on any object you own(my favorite is a top hat), and it will promptly display: | ||
+ | //"< | ||
+ | //Donate if you are so inclined." | ||
+ | //at which point anyone can right click on it and give you a tip. also, the script tells the donator thanks, and then tells you who donated how much | ||
+ | //also shows the total amount donated | ||
+ | |||
+ | integer totaldonated; | ||
+ | string owner; | ||
+ | |||
+ | default | ||
+ | { | ||
+ | on_rez( integer sparam ) | ||
+ | { | ||
+ | llResetScript(); | ||
+ | } | ||
+ | state_entry() | ||
+ | { | ||
+ | owner = llKey2Name( llGetOwner() ); | ||
+ | llSetText( owner + "' | ||
+ | //Red Light flash | ||
+ | | ||
+ | ([ | ||
+ | PSYS_PART_FLAGS, | ||
+ | PSYS_PART_INTERP_COLOR_MASK| | ||
+ | PSYS_PART_FOLLOW_SRC_MASK| | ||
+ | PSYS_PART_EMISSIVE_MASK, | ||
+ | PSYS_SRC_PATTERN_ANGLE_CONE, | ||
+ | PSYS_SRC_INNERANGLE, | ||
+ | PSYS_SRC_OUTERANGLE, | ||
+ | PSYS_SRC_BURST_SPEED_MIN, | ||
+ | PSYS_SRC_BURST_SPEED_MAX, | ||
+ | PSYS_SRC_BURST_RADIUS, | ||
+ | PSYS_SRC_BURST_PART_COUNT, | ||
+ | PSYS_SRC_BURST_RATE, | ||
+ | PSYS_PART_MAX_AGE, | ||
+ | PSYS_PART_START_SCALE, | ||
+ | PSYS_PART_START_COLOR, | ||
+ | PSYS_PART_END_COLOR, | ||
+ | PSYS_PART_START_ALPHA, | ||
+ | PSYS_PART_END_ALPHA, | ||
+ | ]); | ||
+ | // Rotate | ||
+ | | ||
+ | } | ||
+ | |||
+ | money(key id, integer amount) | ||
+ | { | ||
+ | totaldonated += amount; | ||
+ | llSetText( owner + "' | ||
+ | llInstantMessage(id," | ||
+ | llInstantMessage(llGetOwner(), | ||
+ | } | ||
+ | } | ||
+ | </ | ||