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

/home/groups/n/no/noxwizard/cvs/src/skills.cpp File Reference

#include "nxwcommn.h"
#include "skills.h"
#include "basics.h"
#include "itemid.h"
#include "sndpkg.h"
#include "srvparms.h"
#include "amx/amxcback.h"
#include "race.h"
#include "magic.h"
#include "network.h"
#include "tmpeff.h"
#include "addmenu.h"
#include "scp_parser.h"
#include "set.h"
#include "items.h"
#include "chars.h"
#include "inlines.h"
#include "nox-wizard.h"
#include "scripts.h"
#include "debug.h"

Defines

#define AMX_SKILLS_MAIN   "__nxw_sk_main"
#define CREATEINBACKPACK(ITEM)   pi = item::CreateFromScript( ITEM, pc->getBackpack() );

Functions

void SetSkillDelay (CHARACTER cc)
bool DoOnePotion (NXWSOCKET s, UI16 regid, UI32 regamount, char *regname)
 Helper function for DoPotion().

int AdvanceOneStat (UI32 sk, int i, char stat, bool *update, int type, P_CHAR pc)
 Little helper function for cSkills::AdvanceStats() finds the appropriate line for the used skill in advance table and uses the value of that skill (!) to increase the stat and cuts it down to 100 if necessary Straylight: changed algorithm to use strength, dex and int sections from skills.xss.

void loadskills ()
void SkillVars ()

Variables

int ingottype = 0

Define Documentation

#define AMX_SKILLS_MAIN   "__nxw_sk_main"
 

#define CREATEINBACKPACK ITEM       pi = item::CreateFromScript( ITEM, pc->getBackpack() );
 


Function Documentation

int AdvanceOneStat UI32    sk,
int    i,
char    stat,
bool *    update,
int    type,
P_CHAR    pc
[static]
 

Little helper function for cSkills::AdvanceStats() finds the appropriate line for the used skill in advance table and uses the value of that skill (!) to increase the stat and cuts it down to 100 if necessary Straylight: changed algorithm to use strength, dex and int sections from skills.xss.

Author:
Duke
Date:
21/03/2000
Parameters:
sk  skill identifier
stat  stat identifier
pc  pointer to character to advance the stats to
Todo:
document missing paramteres

bool DoOnePotion NXWSOCKET    s,
UI16    regid,
UI32    regamount,
char *    regname
[static]
 

Helper function for DoPotion().

Author:
Duke
Date:
20/04/2000
Parameters:
s  socket of the crafter
regid  reagent identifier
regamount  amount of reagents
regname  name of the reagent
checks if player has enough regs for selected potion and delets them

void loadskills  
 

void SetSkillDelay CHARACTER    cc [inline]
 

void SkillVars  
 


Variable Documentation

int ingottype = 0
 

SourceForge.net Logo