Labels

2008年3月20日木曜日

グループ招待 script ちょっと改良


グループ招待のスクリプトを、少しだけ改良した。

といっても、タッチした人の名前を入れて

招待文をもう少し丁寧にしただけ(^∇^)

使い方の質問があったので、スクリプトの使い方も入れておきました。

string group_id = "9a3997da-cb99-e4c6-9e55-d2e244298f70";

の"9a3997da-cb99-e4c6-9e55-d2e244298f70";がグループのIDを入れる場所です。

ここは、ご自分のグループIDに書き換えてください。

今はいってるのは、サンプルです。^^;


// Group inviter script
// Written by hays uriza
// v:0.6
//
//-----japanese------------------------------
// kinou:
// user ni group no link wo tuch de osieru
//
// tukaumae ni surukoto:
// kono script no Group ID wo hituyou na Group ni suru.
// script wo PR object ni ireru ,basyo ha contents no ran
//
// ID no sirabekata:
// kensaku gamen no subete de ,group kensaku suru.
// gamen no sita ni sono group no linkID ga deru
// Rei "Concierge Information Group (JP)"to iu Group no baai, kensaku suru to
// Link to this page: http://world.secondlife.com/group/b09b461f-abef-8bec-12e0-a407a41e7b3b to demasu. kono nakano b09b461f-abef-8bec-12e0-a407a41e7b3b no bubunga ID desu.
//
//-----------English----------------
// Task:
// Message a user with a grouplink to Click
//
// Preparation:
// You do change the Group ID below to the one of your group
// Put the script into any prim by you desire group
//
//Group ID is investigated:
// You can determine this by doing a search in the new search.
// Every group has a page and at the bottom it shows the ID within a link
// For example "Concierge Information Group (JP)"
// Link to this page: http://world.secondlife.com/group/b09b461f-abef-8bec-12e0-a407a41e7b3b
// b09b461f-abef-8bec-12e0-a407a41e7b3b <= the id
//"b09b461f-abef-8bec-12e0-a407a41e7b3b". pick your ID and replace the one below

string group_id = "9a3997da-cb99-e4c6-9e55-d2e244298f70";
// message to be shown before the link
// messagejp to be shown before the link (Other languages)

string messagejp = "チャットのURLをクリックして、ご加入ください。:";
string message = "Please Click to the following url to join our group (If you can't click the link press CTRL+H to open chat history.)";
default
{
touch_start(integer total_number)
{
llInstantMessage(llDetectedKey(0), "始めまして! "+llDetectedName(0)+"様"+ messagejp + " secondlife:///app/group/" + group_id + "/about");
llInstantMessage(llDetectedKey(0), "Hello!"+llDetectedName(0)+" "+ message + " secondlife:///app/group/" + group_id + "/about");
}
}

0 件のコメント:

コメントを投稿