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/skitarg.cpp File Reference

#include "nxwcommn.h"
#include "itemid.h"
#include "sndpkg.h"
#include "amx/amxcback.h"
#include "targeting.h"
#include "tmpeff.h"
#include "constants.h"
#include "npcai.h"
#include "debug.h"
#include "srvparms.h"
#include "addmenu.h"
#include "weight.h"
#include "set.h"
#include "archive.h"
#include "map.h"
#include "items.h"
#include "chars.h"
#include "skills.h"
#include "basics.h"
#include "inlines.h"
#include "range.h"
#include "nox-wizard.h"
#include "data.h"

Compounds

class  cTinkCreateAwG
class  cTinkCreateClock
class  cTinkCreateParts
class  cTinkerCombine
struct  Ore

Defines

#define AMXINGOTMAKEMENU   "__nxw_ingot_mm"
#define AMXSMELTORE   "__nxw_smeltOre"
#define AMXLUMBERJACKING   "__nxw_sk_lumber"
#define AMXTAILORING   "__nxw_sk_tailoring"
#define AMXTANNERING   "__nxw_sk_tannering"
#define max_res_x   610
#define max_res_y   410
#define cTC_AwG   11
#define cTC_Parts   22
#define cTC_Clock   33

Functions

P_ITEM Check4Pack (NXWSOCKET s)
bool CheckInPack (NXWSOCKET s, P_ITEM pi)
bool ForgeInRange (NXWSOCKET s)
bool AnvilInRange (NXWSOCKET s)
void AnvilTarget (NXWSOCKET s, P_ITEM pi, int ma, int mm, char *matname)
 Little helper function for cSkills::target_smith().

void target_enticement2 (NXWCLIENT ps, P_TARGET t)
void target_provocation2 (NXWCLIENT ps, P_TARGET t)
void target_poisoning2 (NXWCLIENT ps, P_TARGET t)
 Poison target.


Variables

AmxFunctiontailoring = NULL
AmxFunctiontannering = NULL
int ingottype
const struct Ore OreTable []
const short NumberOfOres = sizeof(OreTable)/sizeof(Ore)

Define Documentation

#define AMXINGOTMAKEMENU   "__nxw_ingot_mm"
 

#define AMXLUMBERJACKING   "__nxw_sk_lumber"
 

#define AMXSMELTORE   "__nxw_smeltOre"
 

#define AMXTAILORING   "__nxw_sk_tailoring"
 

#define AMXTANNERING   "__nxw_sk_tannering"
 

#define cTC_AwG   11
 

#define cTC_Clock   33
 

#define cTC_Parts   22
 

#define max_res_x   610
 

#define max_res_y   410
 


Function Documentation

bool AnvilInRange NXWSOCKET    s [static]
 

void AnvilTarget NXWSOCKET    s,
P_ITEM    pi,
int    ma,
int    mm,
char *    matname
[static]
 

Little helper function for cSkills::target_smith().

Author:
Duke
Date:
28/03/2000
Parameters:
s  socket number
pi  pointer to material item
ma  maximum amount
mm  makemenu number to invoke from create.scp
matname  name of the metal
checks for anvil in reach and enough material and invokes appropriate makemenu

P_ITEM Check4Pack NXWSOCKET    s
 

bool CheckInPack NXWSOCKET    s,
P_ITEM    pi
 

bool ForgeInRange NXWSOCKET    s [static]
 

Todo:
use or remove it!

void target_enticement2 NXWCLIENT    ps,
P_TARGET    t
 

void target_poisoning2 NXWCLIENT    ps,
P_TARGET    t
 

Poison target.

Author:
AntiChrist, rewritten by Endymion
Parameters:
ps  the client
Note:
pi->morez is the poison type

void target_provocation2 NXWCLIENT    ps,
P_TARGET    t
 


Variable Documentation

int ingottype
 

const short NumberOfOres = sizeof(OreTable)/sizeof(Ore)
 

const struct Ore OreTable[]
 

Initial value:

   
{

    {0x0386,650,126,"Shadow"},
    {0x02C3,700,112,"Merkite"},
    {0x046E,750, 98,"Copper"},
    {0x0961,790, 84,"Silver"},
    {0x02E7,800, 70,"Bronze"},
    {0x0466,850, 56,"Golden"},
    {0x0150,900, 42,"Agapite"},
    {0x022F,950, 28,"Verite"},
    {0x0191,990, 14,"Mythril"}
}

AmxFunction* tailoring = NULL
 

AmxFunction* tannering = NULL
 

SourceForge.net Logo