Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

item Namespace Reference

Item related stuff. More...


Functions

P_ITEM CreateFromScript (char *itemname, cObject *cont, int amount)
P_ITEM CreateFromScript (SCRIPTID itemnum, cObject *cont, int amount)
 adds an item read from items.xss/scp

int CreateRandomItem (char *sItemList)
P_ITEM CreateScriptRandomItem (char *sItemList, cObject *cont)
P_ITEM spawnItemByIdInternal (int nAmount, const char *cName, short id, short color)
P_ITEM CreateScriptItem (NXWSOCKET s, SI32 itemnum, LOGICAL nSpawned, cObject *cont)
 adds an item from spawner or gm 'ADDITEM command

SI32 getname (int i, char *itemname)
void GetScriptItemSetting (P_ITEM pi)
P_ITEM addByID (int id, UI32 nAmount, const char *cName, int color, Location where)
P_ITEM addByID (int id, UI32 nAmount, const char *cName, int color, int x, int y, int z)
P_ITEM SpawnRandomItem (NXWSOCKET s, char *cList, char *cItemID)
SI32 getname (SI32 i, char *itemname)
void AddRespawnItem (int s, int x, int y)

Variables

LOGICAL moreItemMemoryRequested = false


Detailed Description

Item related stuff.

Function Documentation

P_ITEM item::addByID int    id,
UI32    nAmount = 1,
const char *    cName = NULL,
int    color = 0x0000,
int    x = -1,
int    y = -1,
int    z = -1
 

P_ITEM item::addByID int    id,
UI32    nAmount,
const char *    cName,
int    color,
Location    where
 

Author:
Anthalir

void AddRespawnItem int    s,
int    x,
int    y
 

P_ITEM item::CreateFromScript SCRIPTID    itemnum,
cObject   cont = NULL,
int    amount = -1
 

adds an item read from items.xss/scp

Author:
Xanathar
Returns:
the created item
Parameters:
itemnum  scriptid of the item
cont  container to add the item to

P_ITEM item::CreateFromScript char *    itemname,
cObject   cont = NULL,
int    amount = -1
 

Author:
Anthalir

SI32 item::CreateRandomItem char *    sItemList
 

P_ITEM item::CreateScriptItem NXWSOCKET    s,
SI32    itemnum,
LOGICAL    nSpawned,
cObject   cont = NULL
 

adds an item from spawner or gm 'ADDITEM command

Returns:
the pointer to the item added
Parameters:
s  socket of the gm or -1
itemnum  spawner item or -1
nSpawned  is spawned?
cont  container to add the item to

P_ITEM item::CreateScriptRandomItem char *    sItemList,
cObject   cont = NULL
 

SI32 getname SI32    i,
char *    itemname
 

SI32 getname int    i,
char *    itemname
 

void item::GetScriptItemSetting P_ITEM    pi
 

Author:
Magius(CHE), bugfixed by AntiChrist

P_ITEM spawnItemByIdInternal int    nAmount,
const char *    cName,
short    id,
short    color
[static]
 

Warning:
for internal use only
Author:
Luxor

P_ITEM item::SpawnRandomItem NXWSOCKET    s,
char *    cList,
char *    cItemID
 


Variable Documentation

LOGICAL item::moreItemMemoryRequested = false
 

SourceForge.net Logo