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.h

Go to the documentation of this file.
00001   /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
00002     || NoX-Wizard UO Server Emulator (NXW) [http://noxwizard.sourceforge.net]  ||
00003     ||                                                                         ||
00004     || This software is free software released under GPL2 license.             ||
00005     || You can find detailed license information in nox-wizard.cpp file.       ||
00006     ||                                                                         ||
00007     || For any question post to NoX-Wizard forums.                             ||
00008     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
00009 
00015 #ifndef __SKILLS_H__
00016 #define __SKILLS_H__
00017 
00018 #include "target.h"
00019 
00023 namespace Skills {
00025 
00028         char AdvanceSkill(CHARACTER s, int sk, char skillused);
00029         void AdvanceStats(CHARACTER s, int sk);
00030         char CheckSkillSparrCheck(int c, unsigned short int sk, int low, int high, P_CHAR pcd);
00031         void SkillUse(NXWSOCKET s, int x);
00032         void updateSkillLevel(P_CHAR pc, int s);
00034 
00035 
00037 
00040         void Hide(NXWSOCKET s);
00041         void Stealth(NXWSOCKET s);
00043 
00045 
00048         void PeaceMaking(NXWSOCKET s);
00049         void PlayInstrumentWell(NXWSOCKET s, int i);
00050         void PlayInstrumentPoor(NXWSOCKET s, int i);
00051         int GetInstrument(NXWSOCKET s);
00052         void target_provocation1( NXWCLIENT ps, P_TARGET t );
00053         void target_enticement1( NXWCLIENT ps, P_TARGET t );
00055 
00056         void Meditation(NXWSOCKET s);
00057 
00059 
00062         int CalcRank(NXWSOCKET s,int skill); // by Magius(CHE)
00063         void ApplyRank(NXWSOCKET s,int c,int rank); // by Magius(CHE)
00064         int GetSubIngotAmt(int p, char id1, char id2, char color1, char color2);
00065         int DeleSubIngot(int p, int id1, int id2, int color1, int color2, int amount);
00066         void target_repair( NXWCLIENT ps, P_TARGET t );
00067         void target_smith( NXWCLIENT ps, P_TARGET t );
00069 
00071 
00074         void target_itemId( NXWCLIENT ps, P_TARGET t );
00076 
00078 
00081         void CreatePotion(CHARACTER s, char type, char sub, int mortar);
00082         void DoPotion(NXWSOCKET s, SI32 type, SI32 sub, P_ITEM mortar);
00083         void target_alchemy( NXWCLIENT ps, P_TARGET t );
00084         void target_bottle( NXWCLIENT ps, P_TARGET t );
00085         void PotionToBottle(P_CHAR pc, P_ITEM mortar);
00087 
00089 
00092         void target_tinkerAxel( NXWCLIENT ps, P_TARGET t );
00093         void target_tinkerAwg( NXWCLIENT ps, P_TARGET t );
00094         void target_tinkerClock( NXWCLIENT ps, P_TARGET t );
00096 
00098 
00101         void target_cookOnFire( NXWCLIENT ps, P_TARGET t );
00103 
00105 
00108         void target_tailoring( NXWCLIENT ps, P_TARGET t );
00109         void target_wheel( NXWCLIENT ps, P_TARGET t );
00110         void target_loom( NXWCLIENT ps, P_TARGET t );
00112 
00114 
00117         void target_fletching( NXWCLIENT ps, P_TARGET t );
00118         void target_bowcraft( NXWCLIENT ps, P_TARGET t );
00120 
00121         void target_removeTraps( NXWCLIENT ps, P_TARGET t );
00122         
00123         void target_carpentry( NXWCLIENT ps, P_TARGET t );
00124 
00125         void MakeMenu( P_CHAR pc, int m, int skill, P_ITEM first, P_ITEM second = NULL );
00126         void MakeMenu( P_CHAR pc, int m, int skill, UI16 firstId=0, COLOR firstColor=0, UI16 secondId=0, COLOR secondColor=0 );
00127 
00129 
00132         void target_mine( NXWCLIENT ps, P_TARGET t );
00133         void GraveDig(NXWSOCKET s);
00135 
00136         void target_smeltOre( NXWCLIENT ps, P_TARGET t );
00137         void target_tree( NXWCLIENT ps, P_TARGET t );
00138 
00139         void target_detectHidden( NXWCLIENT ps, P_TARGET t );
00140 
00142 
00145         void target_healingSkill( NXWCLIENT ps, P_TARGET t );
00147 
00148         void SpiritSpeak(NXWSOCKET s);
00149         
00150         void target_armsLore( NXWCLIENT ps, P_TARGET t );
00151         void target_tame( NXWCLIENT ps, P_TARGET t );
00152 
00154 
00157         void target_randomSteal( NXWCLIENT ps, P_TARGET t );
00158         void target_stealing( NXWCLIENT ps, P_TARGET t );
00159         void PickPocketTarget(NXWCLIENT ps);
00160         void target_lockpick( NXWCLIENT ps, P_TARGET t );
00162 
00163         void target_begging( NXWCLIENT ps, P_TARGET t );
00164         
00165         void target_animalLore( NXWCLIENT ps, P_TARGET t );
00166         
00167         void target_forensics( NXWCLIENT ps, P_TARGET t );
00168         
00169         void target_poisoning( NXWCLIENT ps, P_TARGET t );
00170 
00171         void TDummy(NXWSOCKET s);
00172         
00173         void target_tinkering( NXWCLIENT ps, P_TARGET t );
00174         
00175         void AButte(NXWSOCKET s1, P_ITEM pButte);
00176 
00177         void Persecute(NXWSOCKET s); 
00178 
00180 
00183         void Cartography(NXWSOCKET s); 
00184         bool HasEmptyMap(CHARACTER cc); 
00185         bool DelEmptyMap(CHARACTER cc); 
00186         void Decipher(P_ITEM tmap, NXWSOCKET s); 
00187 
00188 
00189         int GetAntiMagicalArmorDefence(CHARACTER p); 
00190 };
00191 void snooping( P_CHAR snooper, P_ITEM cont );
00192 
00193 
00194 void SkillVars();
00195 void loadskills();
00196 
00197 #endif
SourceForge.net Logo