Anestacia Posted February 14, 2016 Share Posted February 14, 2016 I have a gacha script and sometimes it hands out the scripts instead of the items.Is there a way to stop the script from being given? Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 14, 2016 Share Posted February 14, 2016 Yes. Just tell it not to. You can test to see what type of item you are about to give with llGetInventoryType, so you can script your if test in either of two ways: (1) Script it to offer anything that is not a script: if (llGetInventoryType(ThisItem) != INVENTORY_SCRIPT){ // Go ahead and give the item} (2) Script it to offer anything that is an object: if (llGetInventoryType(ThisItem) == INVENTORY_OBJECT){ // Go ahead and give the item} A simpler variation of the first option, if there's only one script in your object, would be if (ThisItem != llGetScriptName()){ // Go ahead and give the item} In each case, of course, ThisItem is the name of the object you are about to give. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now