Atrinik Server 2.5
Functions
server/skills.c File Reference
#include <global.h>
#include <book.h>

Go to the source code of this file.

Functions

sint64 find_traps (object *pl, int level)
sint64 remove_trap (object *op)
objectfind_throw_tag (object *op, tag_t tag)
void do_throw (object *op, object *toss_item, int dir)

Detailed Description

This file contains core skill handling.

Definition in file skills.c.


Function Documentation

void do_throw ( object op,
object toss_item,
int  dir 
)

Op throws any object toss_item.

Parameters:
opLiving thing throwing something.
toss_itemItem thrown.
dirDirection to throw.

Definition at line 287 of file skills.c.

object* find_throw_tag ( object op,
tag_t  tag 
)

Requests an object to throw by tag reported by the client.

We search for it in the inventory of the owner (you've got to be carrying something in order to throw it).

Also checks to see if the object is throwable (ie, not applied, cursed worn, etc).

Parameters:
opObject to search in.
tagTag of the object we're looking for.
Returns:
The found object or NULL.

Definition at line 195 of file skills.c.

sint64 find_traps ( object pl,
int  level 
)

Checks for traps on the spaces around the player or in certain objects.

Parameters:
plPlayer searching.
levelLevel of the find traps skill.
Returns:
Experience gained for finding traps.

Definition at line 39 of file skills.c.

sint64 remove_trap ( object op)

This skill will disarm any previously discovered trap.

Parameters:
opPlayer disarming.
Returns:
0.

Definition at line 132 of file skills.c.