Advertisement
Guest User

Untitled

a guest
Apr 16th, 2017
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  display()
  2. {
  3.         integer cnt =  llGetInventoryNumber( INVENTORY_OBJECT );
  4.        
  5.         active = cnt>0;
  6.    
  7.         if(active){
  8.            
  9.             llSetObjectName("Sales Box");
  10.  
  11.             llSetText(llGetInventoryName(INVENTORY_OBJECT,0)
  12.             +(string)
  13. "\n L$"+(string)PL+"\nAvailable: "+(string)cnt, <1,1,1>, 1);
  14.         }else{
  15.             llSetText("** Empty **", <1,1,1>, 1);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement