corrade-lsl-templates
/source/eggdrop/help.lsl |
@@ -234,19 +234,24 @@ |
) |
); |
|
// Check if this is an eggdrop command. |
if(llGetSubString(data, 0, 0) != |
wasKeyValueGet("command", configuration)) |
return; |
|
list command = llParseString2List(data, |
[wasKeyValueGet("command", configuration), " "], []); |
if(llList2String(command, 0) != "help") |
|
// Check if the command matches the current module. |
list command = llParseString2List(data, [" "], []); |
if(llList2String(command, 0) != |
wasKeyValueGet("command", configuration) + "help") |
return; |
|
// Remove command. |
command = llDeleteSubList(command, 0, 0); |
|
if(llGetInventoryType(wasKeyValueGet("help card", configuration)) |
!= INVENTORY_NOTECARD) { |
data = "Hmm. I have not notecard to hand out - contact my owner please?"; |
return; |
state tell; |
} |
|
// Hand out the notecard. |