View difference between Paste ID: itSKp7C9 and C9C9CmC7
SHOW: | | - or go back to the newest paste.
1
// The fish spawner needs to distinguish which rod to spawn the fish from. In order to do that you will need to pass the key of the rod over to the spawner by sending in the say commands and parsing the messages in the listen event. 
2
3
 default
4
{
5
    state_entry()
6
    {       
7
         llListen(-11223,"Fish Pond","","");    
8
        
9
                  
10
    }       
11
     
12
    listen(integer channel, string what, key who, string msg)
13
    {                                                   
14
                
15
        llSay(-11223,"Equip_" + (string)llGetKey()); 
16
17-
// The parsing function will split up a message into a list into separate 								// elements. We will use a separator symbol for the parsing function to 						              // distinguish where to spilt the message up. In this case we use the underscore 	 
17+
// The parsing function will split up a message into a list into separate 								
18
19
// elements. We will use a separator symbol for the parsing function to 						              
20
21
// distinguish where to spilt the message up. In this case we use the underscore 	 
22
23
// as the seperator symbol. 
24
                       
25
    }
26
                 
27
}