Advertisement
Guest User

Object: Fishing Rod(To send Message to Fishing Pond)

a guest
Sep 28th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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                              
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement