Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. llLinkedMessage(LINK_SET,0,"Fruit_Bananas_4","");
  2.  
  3.  
  4.  
  5. link_message(integer sender, integer num, string msg, key id)
  6. {
  7.  
  8.     list tmp = llParseString2List(msg,"_","");    
  9.  
  10.     string thing = llList2String(tmp,0);
  11.     string type = llList2String(tmp,1);
  12.     integer quantity = (integer)llList2String(tmp,3);  
  13.  
  14.     if(thing == "Fruit")
  15.     {
  16.        
  17.       llOwnerSay("You have " + (string)quantity + type+".");
  18.              
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement