DAIKIN Air Resort SIM

LMmapDAR02.jpg

LSL script

// Multi TP-board

integer col=4;  // 横の分割数
integer row=4;  // 縦の分割数

list tp=[ // "テレポート先","SIM名",位置,

"Cafe Magellan","DAIKIN Air Resort",<41,214,23>,//1
"Cafe Magellan","DAIKIN Air Resort",<41,214,23>,//2
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//3
"Kyudo Club","DAIKIN Air Resort",<35,221,22>,//4

"Kyudo Club","DAIKIN Air Resort",<35,221,22>,//5
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//6
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//7
"Trenza Info","DAIKIN Air Resort",<247,248,24>,//8

"Cafe Magellan","DAIKIN Air Resort",<41,214,23>,//9
"Cafe Magellan","DAIKIN Air Resort",<41,214,23>,//10
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//11
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//12

"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//13
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//14
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//15
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//16


"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//17
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//18
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//19
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//20

"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//21
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//22
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//23
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//24

"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//25
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//26
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//27
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//28

"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//29
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//30
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//31
"Cafe Orion","DAIKIN Air Resort",<182,199,23>,//32


"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//33
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//34
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//35
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//36

"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//37
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//38
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//39
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//40

"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//41
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//42
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//43
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//44

"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//45
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//46
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//47
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//48


"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//49
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//50
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//51
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//52

"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//53
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//54
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//55
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//56

"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//57
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//58
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//59
"STAFF only SANDBOX","DAIKIN Air Resort",<64,126,23>,//60

"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//61
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//62
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//63
"MOEKISS2","DAIKIN Air Resort",<221,59,23>,//64

NULL_KEY];  // データの最後のカンマ用
integer len;

string slurl(integer i)
{  // SLURL生成
    vector v=llList2Vector(tp,i+2);
    string str=llList2String(tp,i);
    // SIM名をブランクにしてるものは閉店表示
    if (llList2String(tp,i+1) == "") return str+"... closed\n";
    str+=" http://slurl.com/secondlife/";
    str+=llEscapeURL(llList2String(tp,i+1));
    str+="/"+(string)((integer)v.x);
    str+="/"+(string)((integer)v.y);
    str+="/"+(string)((integer)v.z)+" \n";
    return str;
}

map(integer num)
{  // マップ表示用
    integer i=num*3;
    if (i >= len) {  // テレポートの登録数が少ないとき
        llWhisper(0,"This area is a blank.");
        return;  // リターン
    }
    string sim=llList2String(tp,i+1);
    vector pos=llList2Vector(tp,i+2);
    if (sim) llMapDestination(sim,pos,ZERO_VECTOR);  // マップ表示
    llWhisper(0,slurl(i));  // SLURL表示
}

default
{
    state_entry()
    {
        len=llGetListLength(tp)-1;  // ヌルキーを除いたリストの長さ
    }

    touch_start(integer total_number)
    {
        integer i=llDetectedTouchFace(0);  // タッチした面の番号を取得
        if (i != -1) { // SLビューワーが対応のとき
            vector v=llDetectedTouchST(0);  // タッチした表面の座標
            i=llFloor(v.x*col)+(row-llCeil(v.y*row))*col;  // 座標を番号に変換
            map(i);  // mapへ
        }
        else { // SLビューワーが非対応だったらSLURLを全部表示
            string str="Open the chat histry and click the SLURL.\n";
            for (i=0; i < len; i+=3) str+=slurl(i);
            llWhisper(0,str);  // チャットでSLURL表示
        }
    }
}

  • 最終更新:2012-03-22 11:01:46

このWIKIを編集するにはパスワード入力が必要です

認証パスワード