Jump to content

Shihan Feiri

Resident
  • Posts

    123
  • Joined

  • Last visited

Everything posted by Shihan Feiri

  1. I have see services that use notecard infos based on individual person. In other words, notecard comes to agent with his name inside notecard, and some data connected with this avatar. So, I wonder, what to use to be able trough script to write personal notecard in object prim and send them to someone.
  2. Just one prim. Thank you
  3. I have never work with resizing before so I dont know what to use if i nee to resize only one prim. I need simple sample how to resize prim for 50% smaller or again biger. Thank you
  4. I'm not talking about setting up permissions. I just need to have ability to check if items have permission for copy , modify, transfer and alow copy to anyone. If object don't have this perm, script will in another event warn about that and delite them from his inventory. The point is that person that place items in inventory know that he have make mistake. Same person have not ability to acces this object- just to load them. Thats why I need this part where is warning for false permissions.
  5. I'm trying on inventory change to check if all items inside object have copy, modify, transfer and alow anyone to copy permission. Now I am testing with this sample from wiki on one item but still I can't configure where to set to check ANYONE TO COPY warnIfClosed() { integer PERMS_OPEN = (PERM_MODIFY | PERM_COPY | PERM_TRANSFER); string item ="texture sample"; integer everyonePerms = llGetInventoryPermMask(item, MASK_EVERYONE); integer nextPerms = llGetInventoryPermMask(item, MASK_NEXT); if ((everyonePerms & PERM_COPY)) { if ((nextPerms & PERMS_OPEN) == PERMS_OPEN) { llOwnerSay("Open/ Yes Mod/ Yes Copy/ Yes Transfer/ Thank you"); return; } } llSay(0, "Q: Open/ Yes Mod/ Yes Copy/ Yes Transfer? A: Not so!!!"); }
  6. Btw, in this sample before rotation is correct. just position is changing
  7. First this was ok, but now i have problems after I place object ( rotate) . Rez object is close but not in first position- even after I restart script I have work with this sample //Rez an object on touch, with relative position, rotation, and velocity all described in the rezzing prim's coordinate system. string object = "object"; // Name of object in inventory vector relativePosOffset = <0.5,0.0,1.5>; // "Forward" and a little "above" this prim vector relativeVel = <1.0, 0.0, 0.0>; // Traveling in this prim's "forward" direction at 1m/s rotation relativeRot = <0.00000, 0.00000, 1.00000, 0.00000>; // Rotated 90 degrees on the x-axis compared to this prim integer startParam = 10; default { touch_start(integer a) { vector myPos = llGetPos(); rotation myRot = llGetRot(); vector rezPos = myPos+relativePosOffset*myRot; vector rezVel = relativeVel*myRot; rotation rezRot = relativeRot*myRot; llRezAtRoot(object, rezPos, rezVel, rezRot, startParam); } }
  8. Thank you Peter. Yes, this is much easyer
  9. I need to rotate prim on rez on Z for 180°. Not sure how that need to looks llRezObject("Object", llGetPos() + <0.0,0.0,1.0>, <0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>, 0);
  10. I work on similar thing, and have list with keys. But something I am making wrong... List that i recive ( list t) is uuid1,uuid2,uuid3,uuid4,uuid5 string tex1; string tex2; string tex3; string tex4; string tex5; default { state_entry() { llListen(1, "", "", ""); } listen( integer channel, string name, key id, string message ) { if (channel == 1) { list t= [message]; // on list are 5 texture UUID's integer i = 0; integer end = llGetListLength(t); for (; i<end; ++i) llSay(0,message); //Test of listen event tex1=llList2String(t,1); tex2=llList2String(t,2); tex3=llList2String(t,3); tex4=llList2String(t,4); tex5=llList2String(t,5); llSetTexture((key)tex1,1); llSetTexture((key)tex2,2); llSetTexture((key)tex3,4); llSetTexture((key)tex4,5); llSetTexture((key)tex5,6); } } on_rez(integer param) { llResetScript(); } }
  11. I'm not sure if to use llSetTimerEvent or some kind of sensor, but I need something that will triger event if prim is not in touch for more then eg. 2 min. Any tio will be very welcome Thank you
  12. Must be transfer. Only whats left is loading trough server...
  13. Hi there I wonder if is posible following: I sell object with modify permission. After rezzing and loading this object will trough script get copy and transfer but not any more modify permission. In fact, I try to protect my'n work that if i make it full perm , will soon be free of use.
  14. I was thinking on whole operation 2+3 =5
  15. Shihan Feiri

    2+3

    is 5 how to recive 5 trough script
  16. 1024sqm for sale 1500L http://maps.secondlife.com/secondlife/Villeneuve/208/237/30 3 more lands awailable
  17. No no, i need inventory from object. But when i place inventory for test, script say no inventory inside box
  18. Pls, I need to list all mine inventory in local chat. How to start to write this script? I have start something with wiki... default { touch_start(integer total_number) { list inventory; integer num = llGetInventoryNumber(INVENTORY_ALL); integer i = 0; for (; i < num; ++i) { string name = llGetInventoryName(INVENTORY_ALL, i); } if (llGetListLength(inventory) < 1) { llSay(0, "No items in inventory."); } else { llOwnerSay(llList2CSV(inventory)); } } } and if someone know where to search on wiki to learn about " i, +i, ++i, "
  19. Hi there, I have some issues so I need little help. When i use menu on specific channel i got in local chat name of button. How to escape that? Thank you
  20. Is our life posible without scripts? Realy? I write one for scripters weddings day string me; key bride; string best man; string bridesmade; string priest; list guest=[]; integer gPriestChan; integer gMotherInLaw=0; list weddings_vows= ["Yes, I do", "No","Mybe"]; default { state_entry() { llSetPrimitiveCarpetParams([PRIM_COLOR, ALL_SIDES, <0.0,0.0,0.0>, 1.0, PRIM_COLOR, 3, <1.0,1.0,1.0>, 1.0, PRIM_TEXTURE, 3, "4d304955-2b01-c6c6-f545-c1ae1e618288", <1.0,0.0,0.0>, <0.0,0.0,0.0>, 0.0, PRIM_FULLBRIGHT, 3, TRUE]); llSetText("Marriage time",, <1.0, 1.0, 1.0>, 1.0); llTriggerSound("Wedding song", 1.0); } touch_start (integer total_number) { state running; } } state running { state_entry() { gPriestChan= (integer)(llFrand(-1000000000.0) - 1000000000.0); llRequestPermissions(llGetOwner(), PERMISSION_DEBIT | PERMISSION_TAKE_CONTROLS | PERMISSION_TRIGGER_ANIMATION | PERMISSION_ATTACH ,0); llListen(gWedChan,"2,llGetOwner(),""); bride_name_query = llRequestAgentData(bride, DATA_NAME); llTriggerSound("Wedding song", 1.0); llOwnerSay("OMG"); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("Wedings walk"); llSetTimerEvent(35.0); } } timer() { llSetTimerEvent(0.0); llStopAnimation("wedings walk"); } touch_start (integer total_number) { llPriestSay(0,"My dear friends, you have come together in this church so that the Lord may seal and strengthen your love in the presence of the Church’s minister and this community. Christ abundantly blesses this love. He has already consecrated you in baptism and now he enriches and strengthens you by a special sacrament so that you may assume the duties of marriage in mutual and lasting fidelity. And so, in the presence of the Church, I ask you to state your intentions."); llSleep(3.0); llSay(0, " Do you "+ llGetDisplayName((string)me) + "takes " + llKey2Name(bride) + "to be your wife? Do you promise to be true to her in good times and in bad, in sickness and in health, to love her and honor her all the days of your life?"); llDialog(llGetOwner(),"Its now or never",weddings_vows, gPriestChan); } listen(integer _chan, string _name, key _id, string _option) { if (_chan == gMotherInLaw) { llOwnerSay("Not Again"); llSay(0,"Yes mother"); llInstantMessage((key)bride,"She have start again"); llStartAnimation("fake smile"); llSetTimerEvent(5.0); } } if (_chan==gPriestChan) { if(-option == "Yes, I do") { state finish } if(_option == "Mybe") { bride_name_query; return; } if(_option == "No") { state run; } } dataserver(key queryid, string data) { if ( bride_name_query == queryid ) { bride_name = data; llPriestSay(0, "The name of this bride is called : " + bride_name ); } } } state run { state_entry() { llStartAnimation("run"); } } state finish { state_entry() {llSetText("just Married ",, <1.0, 1.0, 1.0>, 1.0); llStartAnimation("party"); llDie; } }
  21. Its no problem. I have fix it with requestDisplayName
  22. Yes, same is with llGetDisplayName I will use requestName
×
×
  • Create New...