-
mxp_choice
varargs string mxp_choice(string non_mxp,
string mxp,
mixed player)
This makes a choice between the mxp string and the non-mxp string.
- Parameters:
non_mxp - The string to return if the player doesn't have mxp
mxp - The string to return if the player has mxp
player - The player to test
- Returns:
non_mxp if the player doesn't have mxp, mxp if it has
-
mxp_event
string mxp_event(string name,
string output,
mixed player,
mixed args ...)
THis defines up an mxp event. The mxp event is an event wrapped
inside of an <event> tag. The args passed in can be of
two forms. If the first argument is a mapping, then the arguments
the key/value pairs inside the mapping. Otherwise the args
are assumed to be of the form: tag, value, tag, value.
- Parameters:
name - the name of the event
output - the output to wrap the event around.
player - the player the event is for
args - the arguments associated with the event
-
mxp_expire
varargs string mxp_expire(string category,
object player)
Returns an expire tag if the player has mxp
- Parameters:
category - The arguments to the expire tag
player - The player to test for having mxp
- Returns:
An expire tag if the player has mxp, else ""
-
mxp_frame_event
string mxp_frame_event(string event,
string str,
object player)
This method wraps up the input stuff into an output mxp event. It
wraps the event up nicely in stuff and does happy bunny mxp things.
- Parameters:
event - the event to wrap it up in
str - the output to wrap
player - the player to use as a target
- Returns:
the new string
-
mxp_next_secure
varargs string mxp_next_secure(object player)
Returns the next secure mxp escape code if the player has mxp.
- Parameters:
player - The player to check
- Returns:
the next secure mxp escape code if the player has mxp, else ""
-
mxp_open
varargs string mxp_open(mixed player)
Returns the open mxp escape code if the player has mxp.
- Parameters:
player - The player to check
- Returns:
the open mxp escape code if the player has mxp, else ""
-
mxp_query_reply
varargs string mxp_query_reply(string type,
string value,
string args)
This makes the tag which sends back the results of a specific type of
mxp query reply.
-
mxp_secure
varargs string mxp_secure(mixed player)
Returns the secure mxp escape code if the player has mxp.
- Parameters:
player - The player to check
- Returns:
the secure mxp escape code if the player has mxp, else ""
-
mxp_secure_next
string mxp_secure_next(mixed player)
Returns the next secure mxp escape code if the player has mxp.
- Parameters:
player - The player to check
- Returns:
the next secure mxp escape code if the player has mxp, else ""
-
mxp_tag
varargs string mxp_tag(string tag,
string output,
mixed player)
This puts in the mxp tags if the player has mxp turned on.
- Parameters:
tag - the tag to wrap the text in
output - the original string
player - the player to verify the mxp status on
-
mxp_tag_args
varargs string mxp_tag_args(string tag,
string args,
string output,
mixed player)
This puts in the mxp tags if the player has mxp turned on, it also
inserts arguments as needed.
- Parameters:
tag - the tag to wrap the text in
args - the args to add
output - the original string
player - the player to verify the mxp status on
-
mxp_tag_args_secure
varargs string mxp_tag_args_secure(string tag,
string args,
string output,
mixed player)
This puts in the mxp tags if the player has mxp turned on, it also
inserts arguments as needed. It also puts secure next thingy
tags in so the begin and end are recognised.
- Parameters:
tag - the tag to wrap the text in
args - the args to add
output - the original string
player - the player to verify the mxp status on
-
mxp_tag_empty
varargs string mxp_tag_empty(string tag,
string args,
mixed player)
This creates an empty mxp tag if the player has mxp turned on, it also
inserts arguments as needed. An empty tag does not require a close tag.
- Parameters:
tag - the tag to use
args - the args to add
player - the player to verify the mxp status on
-
mxp_url
varargs string mxp_url(string str,
object player)
Finds URLs in a block of text and adds mxp links to them if the player has
mxp.
- Parameters:
str - The text to search for URLs in
player - The player to test for mxp
- Returns:
The same text, but with mxp links added as appropriate
-
mxp_var
varargs string mxp_var(string name,
string args,
int output,
mixed player,
int flags)
This puts in the mxp tags for the specified variable if the player
has mxp turned on. If the original string is 0 or "" then the
system will use the entity tag, otherwise it will use the var
tag.
- Parameters:
name - the name of the variable to set
args - the actualy variable value and any other arguments
output - Whether the var should be visible or not
player - the player to verify the mxp status on
flags - bitmap to make the entity (1) private or (2) publish