corrade-lsl-templates – Diff between revs 11 and 15
?pathlinks?
Rev 11 | Rev 15 | |||
---|---|---|---|---|
Line 232... | Line 232... | |||
232 | "message", |
232 | "message", |
|
233 | message |
233 | message |
|
234 | ) |
234 | ) |
|
235 | ); |
235 | ); |
|
Line -... | Line 236... | |||
- | 236 | |
||
236 | |
237 | // Check if this is an eggdrop command. |
|
237 | if(llGetSubString(data, 0, 0) != |
238 | if(llGetSubString(data, 0, 0) != |
|
238 | wasKeyValueGet("command", configuration)) |
239 | wasKeyValueGet("command", configuration)) |
|
239 | return; |
240 | return; |
|
240 | |
241 | |
|
241 | list command = llParseString2List(data, |
242 | // Check if the command matches the current module. |
|
242 | [wasKeyValueGet("command", configuration), " "], []); |
243 | list command = llParseString2List(data, [" "], []); |
|
- | 244 | if(llList2String(command, 0) != |
||
243 | if(llList2String(command, 0) != "help") |
245 | wasKeyValueGet("command", configuration) + "help") |
|
Line -... | Line 246... | |||
- | 246 | return; |
||
- | 247 | |
||
- | 248 | // Remove command. |
||
244 | return; |
249 | command = llDeleteSubList(command, 0, 0); |
|
245 | |
250 | |
|
246 | if(llGetInventoryType(wasKeyValueGet("help card", configuration)) |
251 | if(llGetInventoryType(wasKeyValueGet("help card", configuration)) |
|
247 | != INVENTORY_NOTECARD) { |
252 | != INVENTORY_NOTECARD) { |
|
248 | data = "Hmm. I have not notecard to hand out - contact my owner please?"; |
253 | data = "Hmm. I have not notecard to hand out - contact my owner please?"; |
|
Line 249... | Line 254... | |||
249 | return; |
254 | state tell; |
|
250 | } |
255 | } |
|
251 | |
256 | |