Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function createinv($avuuid)
- {
- $inv_template = array(
- 'Calling Cards' => 2,
- 'Objects' => 6,
- 'Landmarks' => 3,
- 'Clothing' => 5,
- 'Gestures' => 21,
- 'Body Parts' => 13,
- 'Textures' => 0,
- 'Scripts' => 10,
- 'Photo Album' => 15,
- 'Lost And Found' => 16,
- 'Trash' => 14,
- 'Notecards' => 7,
- 'My Inventory' => 8,
- 'Sounds' => 1,
- 'Animations' => 20,
- 'Current Outfit' => 46,
- 'Settings' => 56,
- 'Favorites' => 23
- );
- $inv_masterID = $this->tools_model->getNewUUID();
- $version = "1";
- foreach ($inv_template as $invfldr_name => $inv_type)
- {
- $invfldr_uuid = $this->tools_model->getNewUUID();
- if ($inv_type == 8)
- {
- $invfldr_uuid = $inv_masterID;
- $inv_parent = '00000000-0000-0000-0000-000000000000';
- }
- else
- {
- $inv_parent = $inv_masterID;
- }
- $invsql = "INSERT INTO inventoryfolders (folderName,type,version,folderID,agentID,parentFolderID) VALUES ('$invfldr_name','$inv_type','$version','$invfldr_uuid','$avuuid','$inv_parent');";
- $sqlop = $this->zgrid->query($invsql);
- $issaved = "";
- if ($sqlop)
- $issaved = true;
- else
- $issaved = false;
- }
- return $issaved;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement