Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string g;
- key nid;
- string note; // The name of the notecard
- integer ncLine; // Current line we're reading from note
- nextLine()
- {
- ncLine++; // Number of next line to read
- nid = llGetNotecardLine(note, ncLine); // Read it
- }
- default
- {
- on_rez(integer sp)
- {
- llResetScript();
- }
- state_entry()
- {
- note = "New Note";
- llOwnerSay("Reading Configuration....");
- nid = llGetNotecardLine(note, ncLine);
- }
- changed(integer change)
- {
- if (change & CHANGED_INVENTORY)
- {
- llResetScript();
- }
- }
- link_message(integer sender,integer num, string str,key id)
- {
- if(str == "delete")
- {
- llRemoveInventory("!!!!!!!!Configuration card");
- }
- }
- dataserver(key qid, string data) {
- if (qid != nid) return; // If this isn't our notecard line, return
- if (data == EOF)
- { // If the last line has been read, return
- llOwnerSay("debug");
- llOwnerSay(g);
- llSetPrimitiveParams([ PRIM_TEXTURE, ALL_SIDES, g ,<1.0,1.0,0.0>, <0.0,0.0,0.0>, 0.0, PRIM_FULLBRIGHT, 0, TRUE] );
- llOwnerSay("Finished, " + (string) (--ncLine) + " lines read");
- return;
- } else
- {
- list d = llParseString2List( data, ["="], [] );
- if( llStringTrim( llList2String( d, 0 ), STRING_TRIM ) == "Rental Texture" )
- {
- string texture = llStringTrim( llList2String( d, 1 ), STRING_TRIM );
- llSetTexture( texture, ALL_SIDES );
- llOwnerSay( texture );
- }
- }
- // if (llGetSubString(data, 0, 21) == "Vector color of Door =")
- //h=(vector)llDeleteSubString(data, 0, 21);
- nextLine();
- }
- }
Add Comment
Please, Sign In to add comment