Difference between revisions of "User:Ugleh Ulrik"

From Second Life Wiki
Jump to navigation Jump to search
Line 90: Line 90:


Random String  [[RandomString]]
Random String  [[RandomString]]
Time Ago [[TimeAgo]]
Time Ago [[TimeAgo]]

Revision as of 19:22, 23 May 2010

Profile
Anonymous.jpg
Born:
6th March 2009
About:
I have no face
Achievements:
  • Avid Programmer
    • LSL
    • PHP
    • MySql
    • CSS
    • Javascript/jQuery/ajax

About

Im just your average Ugleh. I hang out in SL, helping the scripting groups with my knowledge. I create weapons, utilities, games, and pretty much anything. I work for Learn Avatar as a teacher, in return i get a small piece of land to keep my projects including my inworld servers. I can script projects for free if simple, if not id ask for some lindens, but i never name prices, you name your own price and ill accept what you give me.

XStreetSL

Xstreet Link

Vector2List

<lsl> list Vector2List(vector v){

   list alist = llParseString2List((string)v,[",", ">", "<"],[]);

return alist; } </lsl> or <lsl> list Vector2List(vector v){

   return [v.x, v.y, v.z]; // *Tips a wink to Strife*

} </lsl>

More at User:Ugleh_Ulrik/Vector2List

FirstName

<lsl> string FirstName(key k){ list fn = llParseString2List(llKey2Name(k),[" "],[]); string firstn = llList2String(fn,0); return firstn; } </lsl> More at User:Ugleh_Ulrik/FirstName

LastName

<lsl> string LastName (key k){ list ln = llParseString2List(llKey2Name(k),[" "],[]); string lastn = llList2String(ln,1); return lastn; } </lsl> More at User:Ugleh_Ulrik/LastName

trimstring

<lsl> string trimstring(string text, integer length) {

   if (length < llStringLength(text)){
   length = length-1;
   string newstring = llGetSubString(text,0, length) + "...";
   return newstring;

}else{

   return text;

} } </lsl> More at User:Ugleh_Ulrik/trimstring

GiveBulkMoney

<lsl> GiveBulkMoney(list u, integer amount){ integer a = 0; while(a < llGetListLength(u)) {

   llGiveMoney(llList2Key(u,a), amount);
   ++a;

} } </lsl> More at User:Ugleh_Ulrik/GiveBulkMoney

Other Scripts

PHP Name2Key User:Ugleh_Ulrik/Name2Key

Random String RandomString

Time Ago TimeAgo