lslsnips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lslsnips [2025/11/10 01:36] – miko | lslsnips [2025/11/25 16:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 49: | Line 49: | ||
| </ | </ | ||
| + | ===== SL to Telegram ===== | ||
| < | < | ||
| string TELEGRAM_API_URL = " | string TELEGRAM_API_URL = " | ||
| Line 80: | Line 80: | ||
| } | } | ||
| </ | </ | ||
| + | ===== SL2Discord ===== | ||
| < | < | ||
| string discord_web_hook = " | string discord_web_hook = " | ||
| Line 105: | Line 106: | ||
| } | } | ||
| </ | </ | ||
| - | =====SNIPPETS===== | + | ===== Rezz at feet ==== |
| < | < | ||
| integer canRezAt(vector pos) //can I rez at this place? | integer canRezAt(vector pos) //can I rez at this place? | ||
| Line 146: | Line 147: | ||
| } | } | ||
| } | } | ||
| + | </ | ||
| + | ===== Random giver ===== | ||
| + | < | ||
| //gimme random | //gimme random | ||
| integer random_integer(integer min, integer max) | integer random_integer(integer min, integer max) | ||
| Line 152: | Line 155: | ||
| return min + (integer)(llFrand(max - min + 1)); | return min + (integer)(llFrand(max - min + 1)); | ||
| } | } | ||
| + | |||
| + | </ | ||
| + | ===== Find in List ===== | ||
| + | < | ||
| // find stuff in my list or not | // find stuff in my list or not | ||
| Line 162: | Line 169: | ||
| } | } | ||
| - | + | </code> | |
| - | //create a channel by unixtime | + | ===== Find an avatar key on region |
| - | + | < | |
| - | integer menuChan | + | |
| - | + | ||
| - | + | ||
| - | // find an avatar key on region | + | |
| string getKey(string req) | string getKey(string req) | ||
| Line 203: | Line 206: | ||
| } | } | ||
| + | </ | ||
| + | ===== Check if object is original ===== | ||
| + | < | ||
| integer checkOriginal(key id) { | integer checkOriginal(key id) { | ||
| Line 222: | Line 227: | ||
| } | } | ||
| + | </ | ||
| + | ===== Shield effect ===== | ||
| + | < | ||
| ShieldFade(integer link_num, float alpha_start, | ShieldFade(integer link_num, float alpha_start, | ||
| Line 268: | Line 276: | ||
| } | } | ||
| - | // WarpPos | + | </code> |
| + | ===== WarpPos | ||
| + | < | ||
| warpPos(vector destpos) { | warpPos(vector destpos) { | ||
| integer jumps = (integer)(llVecDist(destpos, | integer jumps = (integer)(llVecDist(destpos, | ||
| Line 282: | Line 292: | ||
| } | } | ||
| } | } | ||
| + | </ | ||
| + | ===== Binary converter ===== | ||
| + | < | ||
| Line 394: | Line 406: | ||
| showDialog(user, | showDialog(user, | ||
| } | } | ||
| + | } | ||
| + | </ | ||
| + | ===== Turn Avatar to Target / RLV ===== | ||
| + | < | ||
| + | vector pointTo = targetpos - llGetPos(); | ||
| + | float angleTo = llAtan2(pointTo.x, | ||
| + | llOwnerSay(" | ||
| + | </ | ||
| + | ===== Key2Number ===== | ||
| + | < | ||
| + | integer Key2Number(key objKey) { | ||
| + | return -(integer)(" | ||
| } | } | ||
| </ | </ | ||
| ~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
lslsnips.1762738569.txt.gz · Last modified: (external edit)
