LlGetInventoryName/ko
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
설명
함수: string llGetInventoryName( integer type, integer number );
|
|
예제
상자에서 모두 꺼내기
<lsl> // script created by SpiritWolf Chikuwa // minor changes by Strife Onizuka to speed things up // // /!\ PUBLIC DOMAIN /!\ // You can Copy/Mod/Trans // Please, do not resell this script and give it full perm // Just please leave this header intact // // 누구나 복사/수정/전달할 수 있습니다. // 이 스크립트를 재판매하지 마시고, 모든 권한으로 배포해주세요 // 머리말은 그대로 남겨주세요 // // Minor changes: (스크립트에 수정을 가한 뒤에 당신의 이름을 여기에 넣고 이 붙임말을 지워주세요, 감사합니다) // // 스크립트는 여기서부터 시작합니다:
list gInventoryList;
list getInventoryList() {
list result = []; integer n = llGetInventoryNumber(INVENTORY_ALL);
while(n) result = llGetInventoryName(INVENTORY_ALL, --n) + result; return result;
}
default {
state_entry() { gInventoryList = getInventoryList(); }
touch_start( integer n ) { integer i = 0; string folder = llGetObjectName();
while(i < n) { llGiveInventoryList(llDetectedKey(i), folder, gInventoryList ); ++i; } }
changed( integer change ) { if ( change == CHANGED_INVENTORY ) gInventoryList = getInventoryList(); }
}
// llGetInventory number and name will scan all objects on the box. // llGiveInventory will give you the content. // See also llGetInventory and llGiveInventory on LSL Wiki for further informations. </lsl>
함께 보기
함수
• | llGetInventoryNumber | – | 사용자함에서 특정 형의 항목들의 개수를 반환한다 | |
• | llGetInventoryType | – | 사용자함에 해당 항목이 있는지 확인하고 형을 반환한다 | |
• | llGetInventoryCreator | – | 사용자함 해당 항목의 제작자를 반환한다 | |
• | llGetInventoryPermMask | – | 사용자함 해당 항목의 권한을 반환한다 | |
• | llGetInventoryKey | – | (모든 권한일 때에) 사용자함 해당 항목의 UUID를 반환한다 |
상세 기록
이 글이 유용하지 않으세요? LSL Wiki의 관련항목이 도움을 줄 수 있을 지도 모릅니다.