corrade-lsl-templates – Diff between revs 10 and 11

Subversion Repositories:
Rev:
Show entire fileRegard whitespace
Rev 10 Rev 11
Line 210... Line 210...
210 210
211 // This script only processes group notifications. 211 // This script only processes group notifications.
212 if(wasKeyValueGet("type", message) != "group") 212 if(wasKeyValueGet("type", message) != "group")
Line -... Line 213...
-   213 return;
-   214
-   215 string firstname = wasURLUnescape(
-   216 wasKeyValueGet(
-   217 "firstname",
-   218 message
-   219 )
-   220 );
-   221
-   222 string agent = (key)wasURLUnescape(
-   223 wasKeyValueGet(
-   224 "agent",
-   225 message
-   226 )
213 return; 227 );
214 228
215 // Get the sent message. 229 // Get the sent message.
216 data = wasURLUnescape( 230 data = wasURLUnescape(
217 wasKeyValueGet( 231 wasKeyValueGet(
Line 227... Line 241...
227 list command = llParseString2List(data, 241 list command = llParseString2List(data,
228 [wasKeyValueGet("command", configuration), " "], []); 242 [wasKeyValueGet("command", configuration), " "], []);
229 if(llList2String(command, 0) != "help") 243 if(llList2String(command, 0) != "help")
230 return; 244 return;
Line -... Line 245...
-   245
-   246 if(llGetInventoryType(wasKeyValueGet("help card", configuration))
-   247 != INVENTORY_NOTECARD) {
-   248 data = "Hmm. I have not notecard to hand out - contact my owner please?";
-   249 return;
-   250 }
-   251
-   252 // Hand out the notecard.
-   253 llGiveInventory(agent,
231   254 wasKeyValueGet("help card", configuration)
Line 232... Line -...
232 data =" -  
233   -  
234 ~~~~~~~~~ Corrade Eggdrop ~~~~~~~~~ -  
235 Syntax: @<command> [OPTIONS] -  
236 \t@roll <number>\t- Roll a dice with <number> sides. -  
237 \t@spank <name>\t- Spank a group member. -  
238 \t@wiki <get|set|dir>\t- Wiki commands. -  
239 \t@fortune\t\t- Get a random fortune cookie. -  
240 \t@joke\t\t- Get a random joke. -  
241 \t@eval <expression>\t- Evaluate a mathematical expression. 255 );
242 \t@ban <first> <last>\t- Ban a group member by name. -  
243 \t@invite <first> <last>\t- Invite agent to group by name. -  
244   -  
245 \t@help\t- This help message. -  
Line 246... Line 256...
246 ~~~~~~~~~ Corrade Eggdrop ~~~~~~~~~ 256
247 "; 257 data = "Sent you a help notecard " + firstname + ". Please check your inventory.";
248   258  
249 state tell; 259 state tell;