Advertisement
salahzar

metti componente chimico (per ricetta)

May 2nd, 2014
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer listener=-1;
  2. string hold;
  3.  
  4. default
  5. {
  6.     state_entry()
  7.     {
  8.         llSetText(llGetObjectName(),<1,1,1>,1);
  9.     }
  10.    touch_start(integer count)
  11.    {
  12.        key id=llDetectedKey(0);
  13.        listener=llListen(0,"",id,"");
  14.         llSay(0,llDetectedName(0)+": Digita la quantità");
  15.        llSetTimerEvent(10);
  16.        
  17.     }
  18.     timer()
  19.     {
  20.         llListenRemove(listener);
  21.         listener=-1;
  22.         llSay(0,"timeout");
  23.         llResetScript();
  24.     }
  25.     listen(integer channel,string name,key id,string str)
  26.     {
  27.        // llSay(0,"ricevuto da "+id+" sul canale "+(string)channel);
  28.         llListenRemove(listener);
  29.         llSetTimerEvent(0);
  30.         llSay(100,"METTI|"+str+"|"+llGetObjectName());
  31.        
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement