Include (new)
Arrays
include "include/arrays";
ImplodeArray()
ImplodeArray( glue, byref the_array );
GetArrayRange()
GetArrayRange( byref the_array, start, stop:=0 );
BreakArray()
BreakArray( byref the_array, size:=1 );
FindInArray()
FindInArray( byref the_array, find_what );
RemoveFromArray()
RemoveFromArray( byref x_array, match );
Facings
include "include/facings";
TurnObjectToward()
TurnObjectToward( object, x_pos, y_pos );
IsFacing()
IsFacing( mobile, x, y );
IsBehind()
IsBehind( tgt_mob, locx, locy );
GetPointsByFacing()
GetPointsByFacing( x_pos, y_pos, facing, dist );
itemUtil
include "include/itemUtil";
useItem_check()
useItem_check( mobile, item, option := DEFAULT_ITEM, temp_dist := 0 );
EmptyHands_Check( )
EmptyHands_Check( mobile );
Landtiles
include "include/landtiles";
IsMinable()
IsMinable( landtile, targ );
IsSand()
IsSand( landtile );
IsSwamp()
IsSwamp( landtile );
IsTree()
IsTree( landtile );
objType
include "include/objType";
IsWater()
IsWater( item );
Occupied
Used to determine if a player is 'busy'.
include "include/occupied";
IsOccupied()
Determines if a mobile is already doing something.
IsOccupied(mobile, doing:=0);
Shapes
include "include/shapes";
GetCoordsInSquare()
Retrieves the coordinates in the area of a square.
GetCoordsInSquare(mid_x, mid_y, radius);
Parameters
Description
mid_x
X coordinate of the middle of the square.
mid_y
Y coordinate of the middle of the square.
radius
Size of the square
GetCoordsInRect()
Retrieves the coordinates in the area of a rectangle.
GetCoordsInRect(x1, y1, x2, y2);
GetCoordsInCircle()
Retrieves the coordinates in the area of a circle.
GetCoordsInCircle(mid_x, mid_y, radius);
Parameters
Description
mid_x
X coordinate of the middle of the square.
mid_y
Y coordinate of the middle of the square.
GetCoordsInPolygon()
Takes in an array of structs containing .x, .y coordinates. Each point is a segment that builds the shape. Finds the coordinates inside of that shape.
GetCoordsInPolygon(coord_list);
Parameters
Description
coord_list
Array of structs. Each struct contains an x and y member.
uo_extend
include "include/uo_extend";
CONST
For: EnumerateOnlineCharactersABC()
CONST SORT_ASCENDING := 0x0; // Default
CONST SORT_DESCENDING := 0x1;
For: GetIsAType()
CONST ISA_GET_MAIN := 0x0; // Default
CONST ISA_GET_ALL := 0x1;
For: ListMobilesInRange()
CONST RNG_SQUARE := 0x00; // Range is "square" (ie, simply +/- to x & y)
CONST RNG_CIRCLE := 0x01; // Range is a real "circle" [DEFAULT]
EnumerateOnlineCharactersABC()
EnumerateOnlineCharactersABC( dir:=SORT_ASCENDING, cmdlevel:=-1 );
EnumeratePhysicalItems()
EnumeratePhysicalItems( mobile );
GetIsAType()
GetIsAType( object, flags:=ISA_GET_MAIN );
GetIsAName()
GetIsAName( isa_id );
ListMobilesInRange()
ListMobilesInRange( x, y, z, range, realm := _DEFAULT_REALM, flags := LISTEX_FLAG_NORMAL, range_type := RNG_SQUARE )
FindMatchingObjtypeInContainer()
FindMatchingObjtypeInContainer( container, item );
DupeItem()
DupeItem( item, newitem );
util_extend
include "include/util_extend";
RandomIntRange()
Generates a random number >= min and <= max.
RandomIntRange( min_val:=0, max_val:=1 )
Parameters
Description
min_val
The minimum number that can be generated.
max_val
The maximum number that can be generated.
RandomFloatRange()
RandomFloatRange( min_val:=0.0, max_val:=1.0 )
Last updated
Was this helpful?