Jump to content

No script giver


Anestacia
 Share

You are about to reply to a thread that has been inactive for 2847 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

You are about to reply to a thread that has been inactive for 2847 days.

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
 Share

×
×
  • Create New...