Atrinik Server  4.0
Functions
apply.c File Reference
#include <global.h>
#include <toolkit/string.h>
#include <player.h>
#include <object.h>

Go to the source code of this file.

Functions

static objectfind_best_object_match (object *pl, const char *params)
 
void command_apply (object *op, const char *command, char *params)
 

Detailed Description

Implements the /apply command.

Author
Alex Tokar

Definition in file apply.c.

Function Documentation

void command_apply ( object op,
const char *  command,
char *  params 
)

Format for a command handler function.

Parameters
opThe player.
commandThe command's name.
paramsOptional arguments for the command.

Definition at line 75 of file apply.c.

static object* find_best_object_match ( object pl,
const char *  params 
)
static

Search the inventory of 'pl' for what matches best with params.

Parameters
plPlayer object.
paramsParameters string.
Returns
Best match, or NULL if no match.

Definition at line 46 of file apply.c.