corrade-lsl-templates
/source/eggdrop/help.lsl |
@@ -212,6 +212,20 @@ |
if(wasKeyValueGet("type", message) != "group") |
return; |
|
string firstname = wasURLUnescape( |
wasKeyValueGet( |
"firstname", |
message |
) |
); |
|
string agent = (key)wasURLUnescape( |
wasKeyValueGet( |
"agent", |
message |
) |
); |
|
// Get the sent message. |
data = wasURLUnescape( |
wasKeyValueGet( |
@@ -228,24 +242,20 @@ |
[wasKeyValueGet("command", configuration), " "], []); |
if(llList2String(command, 0) != "help") |
return; |
|
if(llGetInventoryType(wasKeyValueGet("help card", configuration)) |
!= INVENTORY_NOTECARD) { |
data = "Hmm. I have not notecard to hand out - contact my owner please?"; |
return; |
} |
|
// Hand out the notecard. |
llGiveInventory(agent, |
wasKeyValueGet("help card", configuration) |
); |
|
data = "Sent you a help notecard " + firstname + ". Please check your inventory."; |
|
data =" |
|
~~~~~~~~~ Corrade Eggdrop ~~~~~~~~~ |
Syntax: @<command> [OPTIONS] |
\t@roll <number>\t- Roll a dice with <number> sides. |
\t@spank <name>\t- Spank a group member. |
\t@wiki <get|set|dir>\t- Wiki commands. |
\t@fortune\t\t- Get a random fortune cookie. |
\t@joke\t\t- Get a random joke. |
\t@eval <expression>\t- Evaluate a mathematical expression. |
\t@ban <first> <last>\t- Ban a group member by name. |
\t@invite <first> <last>\t- Invite agent to group by name. |
|
\t@help\t- This help message. |
~~~~~~~~~ Corrade Eggdrop ~~~~~~~~~ |
"; |
|
state tell; |
} |
on_rez(integer num) { |