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

Skills Namespace Reference

Skill related stuff. More...


General Skill stuff

char AdvanceSkill (CHARACTER s, int sk, char skillused)
void AdvanceStats (CHARACTER s, int sk)
 Advance STR, DEX and INT after use of a skill.

char CheckSkillSparrCheck (int c, unsigned short int sk, int low, int high, P_CHAR pcd)
void SkillUse (NXWSOCKET s, int x)
 Skill is clicked on the skill list.

void updateSkillLevel (P_CHAR pc, int s)
 Calculate the skill of this character based on the characters baseskill and stats.


Hiding/Stealth stuff

void Hide (NXWSOCKET s)
 Implements the hiding skill.

void Stealth (NXWSOCKET s)
 Stealths a char.


Musicianship stuff

void PeaceMaking (NXWSOCKET s)
void PlayInstrumentWell (NXWSOCKET s, int i)
void PlayInstrumentPoor (NXWSOCKET s, int i)
int GetInstrument (NXWSOCKET s)
void target_provocation1 (NXWCLIENT ps, P_TARGET t)
void target_enticement1 (NXWCLIENT ps, P_TARGET t)

Blacksmithing stuff

int CalcRank (NXWSOCKET s, int skill)
void ApplyRank (NXWSOCKET s, int c, int rank)
int GetSubIngotAmt (int p, char id1, char id2, char color1, char color2)
int DeleSubIngot (int p, int id1, int id2, int color1, int color2, int amount)
void target_repair (NXWCLIENT ps, P_TARGET t)
void target_smith (NXWCLIENT ps, P_TARGET t)

ID-Stuff

void target_itemId (NXWCLIENT ps, P_TARGET t)

Alchemy stuff

void CreatePotion (CHARACTER s, char type, char sub, int mortar)
 Does the appropriate skillcheck for the potion, creats it in the mortar on success and tries to put it into a bottle.

void DoPotion (NXWSOCKET s, SI32 type, SI32 sub, P_ITEM mortar)
 Determines regs and quantity, creates working sound indirectly calls CreatePotion() on success.

void target_alchemy (NXWCLIENT ps, P_TARGET t)
void target_bottle (NXWCLIENT ps, P_TARGET t)
 Uses the targeted potion bottle outside the backpack to pour in the potion from the mortar.

void PotionToBottle (P_CHAR pc, P_ITEM mortar)
 This really creates the potion.


Tinkering stuff

void target_tinkerAxel (NXWCLIENT ps, P_TARGET t)
void target_tinkerAwg (NXWCLIENT ps, P_TARGET t)
void target_tinkerClock (NXWCLIENT ps, P_TARGET t)

Cooking stuff

void target_cookOnFire (NXWCLIENT ps, P_TARGET t)

Tailoring stuff

void target_tailoring (NXWCLIENT ps, P_TARGET t)
void target_wheel (NXWCLIENT ps, P_TARGET t)
void target_loom (NXWCLIENT ps, P_TARGET t)

Bowcrafting stuff

void target_fletching (NXWCLIENT ps, P_TARGET t)
void target_bowcraft (NXWCLIENT ps, P_TARGET t)

Mining stuff

void target_mine (NXWCLIENT ps, P_TARGET t)
void GraveDig (NXWSOCKET s)

Healing stuff

void target_healingSkill (NXWCLIENT ps, P_TARGET t)

Thievery stuff

void target_randomSteal (NXWCLIENT ps, P_TARGET t)
 Steal random.

void target_stealing (NXWCLIENT ps, P_TARGET t)
 Steal something.

void PickPocketTarget (NXWCLIENT ps)
 Steal from a pickpocket, a stealing training dummy.

void target_lockpick (NXWCLIENT ps, P_TARGET t)
 lockpicking skill


Cartography Stuff

void Cartography (NXWSOCKET s)
 By Polygon - opens the cartography skillmenu.

bool HasEmptyMap (CHARACTER cc)
 By Polygon - checks if player has an empty map.

bool DelEmptyMap (CHARACTER cc)
 By Polygon - deletes an empty map from the player's pack.

void Decipher (P_ITEM tmap, NXWSOCKET s)
 By Polygon - attempt to decipher a tattered treasure map.


Functions

void Meditation (NXWSOCKET s)
 Implements Meditation skill.

void target_removeTraps (NXWCLIENT ps, P_TARGET t)
void target_carpentry (NXWCLIENT ps, P_TARGET t)
void MakeMenu (P_CHAR pc, int m, int skill, P_ITEM first, P_ITEM second=NULL)
void MakeMenu (P_CHAR pc, int m, int skill, UI16 firstId=0, COLOR firstColor=0, UI16 secondId=0, COLOR secondColor=0)
void target_smeltOre (NXWCLIENT ps, P_TARGET t)
void target_tree (NXWCLIENT ps, P_TARGET t)
void target_detectHidden (NXWCLIENT ps, P_TARGET t)
void SpiritSpeak (NXWSOCKET s)
 Spirit speack time on a base of 30 seconds + skill[SPIRITSPEAK]/50 + INT.

void target_armsLore (NXWCLIENT ps, P_TARGET t)
void target_tame (NXWCLIENT ps, P_TARGET t)
void target_begging (NXWCLIENT ps, P_TARGET t)
void target_animalLore (NXWCLIENT ps, P_TARGET t)
void target_forensics (NXWCLIENT ps, P_TARGET t)
void target_poisoning (NXWCLIENT ps, P_TARGET t)
void TDummy (NXWSOCKET s)
void target_tinkering (NXWCLIENT ps, P_TARGET t)
void AButte (NXWSOCKET s1, P_ITEM pButte)
void Persecute (NXWSOCKET s)
 AntiChrist persecute stuff.

int GetAntiMagicalArmorDefence (CHARACTER p)
 blackwind meditation armor stuff


Detailed Description

Skill related stuff.

Function Documentation

void Skills::AButte NXWSOCKET    s1,
P_ITEM    pButte
 

char Skills::AdvanceSkill CHARACTER    s,
int    sk,
char    skillused
 

void Skills::AdvanceStats CHARACTER    s,
int    sk
 

Advance STR, DEX and INT after use of a skill.

Author:
Duke
Date:
21/03/2000
Parameters:
s  crafter character
sk  skill identifier
checks if STR+DEX+INT are higher than statcap from server.cfg gives all three stats the chance (from skills.scp & server.cfg) to rise and reduces the two other stats if necessary

void ApplyRank NXWSOCKET    s,
int    c,
int    rank
 

int CalcRank NXWSOCKET    s,
int    skill
 

void Skills::Cartography NXWSOCKET    s
 

By Polygon - opens the cartography skillmenu.

Author:
Polygon
Parameters:
s  socket of the crafter
Function is called when clicked on the Cartography button

char Skills::CheckSkillSparrCheck int    c,
unsigned short int    sk,
int    low,
int    high,
P_CHAR    pcd
 

void Skills::CreatePotion CHARACTER    s,
char    type,
char    sub,
int    mortar
 

Does the appropriate skillcheck for the potion, creats it in the mortar on success and tries to put it into a bottle.

Author:
Duke
Parameters:
s  pointer to the character crafter
type  type of potion
sub  subtype of potion
mortar  serial of the mortar

void Skills::Decipher P_ITEM    tmap,
NXWSOCKET    s
 

By Polygon - attempt to decipher a tattered treasure map.

Author:
Polygon
Parameters:
tmap  item pointer to the map
s  socket of the decipher
Called when double-click such a map

bool Skills::DelEmptyMap CHARACTER    cc
 

By Polygon - deletes an empty map from the player's pack.

Author:
Polygon
Returns:
always false (?)
Todo:
write it

int DeleSubIngot int    p,
int    id1,
int    id2,
int    color1,
int    color2,
int    amount
 

void Skills::DoPotion NXWSOCKET    s,
SI32    type,
SI32    sub,
P_ITEM    pi_mortar
 

Determines regs and quantity, creates working sound indirectly calls CreatePotion() on success.

Author:
Duke

int Skills::GetAntiMagicalArmorDefence CHARACTER    p
 

blackwind meditation armor stuff

int Skills::GetInstrument NXWSOCKET    s
 

int GetSubIngotAmt int    p,
char    id1,
char    id2,
char    color1,
char    color2
 

void Skills::GraveDig NXWSOCKET    s
 

bool Skills::HasEmptyMap CHARACTER    cc
 

By Polygon - checks if player has an empty map.

Author:
Polygon
Parameters:
cc  character to check if has empty map
Returns:
always false (?)
Todo:
write it

void Skills::Hide NXWSOCKET    s
 

Implements the hiding skill.

Author:
Luxor
Parameters:
s  socket requesting hiding

void Skills::MakeMenu P_CHAR    pc,
int    m,
int    skill,
UI16    firstId = 0,
COLOR    firstColor = 0,
UI16    secondId = 0,
COLOR    secondColor = 0
 

void Skills::MakeMenu P_CHAR    pc,
int    m,
int    skill,
P_ITEM    first,
P_ITEM    second = NULL
 

void Skills::Meditation NXWSOCKET    s
 

Implements Meditation skill.

Author:
Luxor

void Skills::PeaceMaking NXWSOCKET    s
 

void Skills::Persecute NXWSOCKET    s
 

AntiChrist persecute stuff.

Author:
AntiChrist
Date:
05/11/1999
Parameters:
s  socket of the persecuter
If you are a ghost and attack a player, you can PERSECUTE him and his mana decreases each time you try to persecute him decrease=3+(your int/10)

void Skills::PickPocketTarget NXWCLIENT    ps
 

Steal from a pickpocket, a stealing training dummy.

Author:
Ripper, updated by Endymion
Parameters:
ps  the client

void Skills::PlayInstrumentPoor NXWSOCKET    s,
int    i
 

void Skills::PlayInstrumentWell NXWSOCKET    s,
int    i
 

void Skills::PotionToBottle P_CHAR    pc,
P_ITEM    pi_mortar
 

This really creates the potion.

Author:
Endymion
Parameters:
pc  pointer to the crafter's character
pi_mortar  pointer to the mortar's item

void Skills::SkillUse NXWSOCKET    s,
int    x
 

Skill is clicked on the skill list.

Parameters:
s  socket to the character that used skill
x  skill identifier

void Skills::SpiritSpeak NXWSOCKET    s
 

Spirit speack time on a base of 30 seconds + skill[SPIRITSPEAK]/50 + INT.

Parameters:
s  socket to the character

void Skills::Stealth NXWSOCKET    s
 

Stealths a char.

Author:
AntiChrist
Parameters:
s  socket requesting stealthing

void Skills::target_alchemy NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_animalLore NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_armsLore NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_begging NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_bottle NXWCLIENT    ps,
P_TARGET    t
 

Uses the targeted potion bottle outside the backpack to pour in the potion from the mortar.

Author:
Duke
Parameters:
s  socket of the crafter

void Skills::target_bowcraft NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_carpentry NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_cookOnFire NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_detectHidden NXWCLIENT    ps,
P_TARGET    t
 

Author:
Luxor

void Skills::target_enticement1 NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_fletching NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_forensics NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_healingSkill NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_itemId NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_lockpick NXWCLIENT    ps,
P_TARGET    t
 

lockpicking skill

Author:
Unknow, rewrite by Endymion
Since:
0.53
Parameters:
ps  the client

void Skills::target_loom NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_mine NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_poisoning NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_provocation1 NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_randomSteal NXWCLIENT    ps,
P_TARGET    t
 

Steal random.

Author:
Unknow, updated by Endymion
Parameters:
ps  the client
Todo:
add string because it's locked contanier into translate

void Skills::target_removeTraps NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_repair NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_smeltOre NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_smith NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_stealing NXWCLIENT    ps,
P_TARGET    t
 

Steal something.

Author:
Unknow, completly rewritten by Endymion
Parameters:
ps  the client

void Skills::target_tailoring NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_tame NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_tinkerAwg NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_tinkerAxel NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_tinkerClock NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_tinkering NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_tree NXWCLIENT    ps,
P_TARGET    t
 

void Skills::target_wheel NXWCLIENT    ps,
P_TARGET    t
 

void Skills::TDummy NXWSOCKET    s
 

void Skills::updateSkillLevel P_CHAR    pc,
int    s
 

Calculate the skill of this character based on the characters baseskill and stats.

Parameters:
pc  pointer to the character
s  skill identifier
SourceForge.net Logo