corrade-lsl-templates – Diff between revs 10 and 11
?pathlinks?
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 226... | Line 240... | |||
226 | |
240 | |
|
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; |
|
- | 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?"; |
||
231 | |
249 | return; |
|
232 | data =" |
250 | } |
|
233 | |
251 | |
|
234 | ~~~~~~~~~ Corrade Eggdrop ~~~~~~~~~ |
252 | // Hand out the notecard. |
|
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. |
253 | llGiveInventory(agent, |
|
239 | \t@fortune\t\t- Get a random fortune cookie. |
254 | wasKeyValueGet("help card", configuration) |
|
240 | \t@joke\t\t- Get a random joke. |
- | ||
241 | \t@eval <expression>\t- Evaluate a mathematical expression. |
- | ||
242 | \t@ban <first> <last>\t- Ban a group member by name. |
- | ||
243 | \t@invite <first> <last>\t- Invite agent to group by name. |
255 | ); |
|
244 | |
256 | |
|
245 | \t@help\t- This help message. |
- | ||
246 | ~~~~~~~~~ Corrade Eggdrop ~~~~~~~~~ |
- | ||
Line 247... | Line 257... | |||
247 | "; |
257 | data = "Sent you a help notecard " + firstname + ". Please check your inventory."; |
|
248 | |
258 | |
|
249 | state tell; |
259 | state tell; |
|
250 | } |
260 | } |