draconian.c
demise/src/draconian.c · 199.5 KB
From the archive dodbackup-final.tar.gz
Download the archive « Back to the archive contents
/****************************************
* *
* Draconians/Half-Dragons *
* Coded By *
* Gunnar Trulsrud *
* aka Corim *
* *
* for *
* *
* Dreams of Demise *
* *
****************************************/
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"
char *
get_dprof (CHAR_DATA * ch)
{
static char prof[100];
prof[0] = '\0';
if (IS_DRAC_NONE (ch))
sprintf (prof, "");
else if (IS_DRAC_WARRIOR (ch))
sprintf (prof, " #yW#oarrio#yr#n");
else if (IS_DRAC_MAGE (ch))
sprintf (prof, " #RW#rarloc#Rk#n");
else if (IS_DRAC_CLERIC (ch))
sprintf (prof, " #CC#cleri#Cc#n");
else if (IS_DRAC_SCOUT (ch))
sprintf (prof, " #7S#0cou#7t#n");
else
sprintf (prof, " #sB#su#sg#sg#se#sd#n");
return prof;
}
char *
get_dage (CHAR_DATA * wch)
{
static char age[100];
age[0] = '\0';
if (wch->pcdata->dpowers[DRAGON_AGE] == HATCHLING)
sprintf (age, "A Hatchling Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == VERY_YOUNG)
sprintf (age, "A Very Young Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == YOUNG)
sprintf (age, "A Young Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == JUVENILE)
sprintf (age, "A Juvenile Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == YOUNG_ADULT)
sprintf (age, "A Young Dragon Adult");
else if (wch->pcdata->dpowers[DRAGON_AGE] == ADULT)
sprintf (age, "An Adult Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == MATURE_ADULT)
sprintf (age, "A Mature Dragon Adult");
else if (wch->pcdata->dpowers[DRAGON_AGE] == OLD)
sprintf (age, "An Old Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == VERY_OLD)
sprintf (age, "A Very Old Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == VENERABLE)
sprintf (age, "A Venerable Dragon");
else if (wch->pcdata->dpowers[DRAGON_AGE] == WYRM)
sprintf (age, "A Wyrm");
else if (wch->pcdata->dpowers[DRAGON_AGE] == SUPREME)
sprintf (age, "An Ancient Dragon");
return age;
}
char *
get_dragon (CHAR_DATA * wch)
{
static char age[100];
age[0] = '\0';
if (wch->pcdata->dpowers[DRAGON_AGE] == HATCHLING)
sprintf (age, "A Hatchling %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == VERY_YOUNG)
sprintf (age, "A Very Young %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == YOUNG)
sprintf (age, "A Young %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == JUVENILE)
sprintf (age, "A Juvenile %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == YOUNG_ADULT)
sprintf (age, "A Young %s Dragon Adult",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == ADULT)
sprintf (age, "An Adult %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == MATURE_ADULT)
sprintf (age, "A Mature %s Dragon Adult",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == OLD)
sprintf (age, "An Old %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == VERY_OLD)
sprintf (age, "A Very Old %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == VENERABLE)
sprintf (age, "A Venerable %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == WYRM)
sprintf (age, "A %s Wyrm", dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
else if (wch->pcdata->dpowers[DRAGON_AGE] == SUPREME)
sprintf (age, "An Ancient %s Dragon",
dcolor2[wch->pcdata->dpowers[DRAGON_COLOR]]);
return age;
}
char *
get_dprof2 (CHAR_DATA * ch)
{
static char prof[100];
prof[0] = '\0';
if (IS_DRAC_NONE (ch))
sprintf (prof, "");
else if (IS_DRAC_WARRIOR (ch))
sprintf (prof, "Warrior");
else if (IS_DRAC_MAGE (ch))
sprintf (prof, "Warlock");
else if (IS_DRAC_CLERIC (ch))
sprintf (prof, "Cleric");
else if (IS_DRAC_SCOUT (ch))
sprintf (prof, "Scout");
else
sprintf (prof, "Bugged");
return prof;
}
char *
get_drank (CHAR_DATA * ch)
{
static char drank[100];
drank[0] = '\0';
if (IS_DRAC_NONE (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, "Bugged");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, "Commoner");
}
else if (IS_DRAC_WARRIOR (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, "War Chief");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, "Crusader");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, "Veteran");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, "Soldier");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, "Fighter");
}
else if (IS_DRAC_MAGE (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, "Battle Magus");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, "Spellbinder");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, "Diabolist");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, "Occultist");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, "Witch Doctor");
}
else if (IS_DRAC_CLERIC (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, "Discord Herald");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, "Shaman");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, "Prophet");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, "Preacher");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, "Deacon");
}
else if (IS_DRAC_SCOUT (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, "Strife Ranger");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, "Pilferer");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, "Rogue");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, "Adventurer");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, "Runner");
}
else
sprintf (drank, "Bugged");
return drank;
}
char *
get_drank2 (CHAR_DATA * ch)
{
static char drank[100];
drank[0] = '\0';
if (IS_DRAC_NONE (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, " #sB#su#sg#sg#se#sd#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, "");
}
else if (IS_DRAC_WARRIOR (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, " #yW#oa#yr#o C#yhie#of#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, " #yC#orusade#yr#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, " #yV#oetera#yn#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, " #yS#ooldie#yr#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, " #yF#oighte#yr#n");
}
else if (IS_DRAC_MAGE (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, " #RB#rattl#Re#0 M#ra#Rg#ru#0s#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, " #RS#rpellbinde#Rr#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, " #RD#riabolis#Rt#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, " #RO#rccultis#Rt#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, " #RW#ritc#Rh#r D#Rocto#rr#n");
}
else if (IS_DRAC_CLERIC (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, " #CD#ciscor#Cd#p H#0eral#pd#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, " #CS#chama#Cn#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, " #CP#crophe#Ct#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, " #CP#creache#Cr#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, " #CD#ceaco#Cnr#n");
}
else if (IS_DRAC_SCOUT (ch))
{
if (ch->pcdata->cpowers[DRAC_RANK] >= 5)
sprintf (drank, " #7S#0trif#7e#0 R#7ange#0r#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 4)
sprintf (drank, " #7P#0ilfere#7r#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 3)
sprintf (drank, " #7R#0ogu#7e#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 2)
sprintf (drank, " #7A#0dventure#7r#n");
else if (ch->pcdata->cpowers[DRAC_RANK] >= 1)
sprintf (drank, " #7R#0unne#7r#n");
}
else
sprintf (drank, " #sB#su#sg#sg#se#sd#n");
return drank;
}
void
do_study (CHAR_DATA * ch, char *argument)
{
char buf[MSL];
char afr[MSL];
char bfr[MSL];
char arg1[MIL];
char arg2[MIL];
char arg3[MIL];
char line[MSL];
int cost, caste, rank, inpart, max, age;
int cor = 5;
int percent = 0;
int percent2 = 0;
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
argument = one_argument (argument, arg3);
max = 5;
if (IS_DRAGON (ch))
max *= 2;
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
sprintf (line,
"#r<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<#p**#P**#R+++#P**#p**#r>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_PROF] == PROF_WARRIOR)
caste = DRAC_COMBAT;
else if (ch->pcdata->cpowers[DRAC_PROF] == PROF_CLERIC)
caste = DRAC_RELIGION;
else if (ch->pcdata->cpowers[DRAC_PROF] == PROF_MAGE)
caste = DRAC_MAGIC;
else if (ch->pcdata->cpowers[DRAC_PROF] == PROF_SCOUT)
caste = DRAC_STEALTH;
else
caste = 0;
rank = ch->pcdata->cpowers[DRAC_RANK];
if (arg1[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Ancient Disciplines of the Draconian Horde #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| | |#n\n\r",
ch);
if (IS_DRAGON (ch))
{
sprintf (buf,
"#r| #y %-13s#c [#7%s%s%s%s%s%s%s%s%s%s#c]#r |#y %-13s#c [#7%s%s%s%s%s%s%s%s%s%s#c]#r |#n\n\r",
"Divination",
ch->pcdata->cpowers[DRAC_SIGHT] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 10 ? "*" : " ",
"Draconic",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 10 ? "*" : " ");
}
else
{
sprintf (buf,
"#r| #y %-13s#c [#7%s%s%s%s%s#c]#r |#y %-13s#c [#7%s%s%s%s%s#c]#r |#n\n\r",
"Divination",
ch->pcdata->cpowers[DRAC_SIGHT] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SIGHT] >= 5 ? "*" : " ",
"Draconic",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DRACONIC] >= 5 ? "*" : " ");
}
stc (buf, ch);
stc
("#r| | |#n\n\r",
ch);
if (IS_DRAGON (ch))
{
sprintf (buf,
"#r| #y %-13s #c[#7%s%s%s%s%s%s%s%s%s%s#c]#r | #y %-13s #c[#7%s%s%s%s%s%s%s%s%s%s#c]#r |#n\n\r",
"Endurance",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 10 ? "*" : " ",
"Physique",
ch->pcdata->cpowers[DRAC_MIGHT] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 10 ? "*" : " ");
}
else
{
sprintf (buf,
"#r| #y %-13s #c[#7%s%s%s%s%s#c]#r | #y %-13s #c [#7%s%s%s%s%s#c]#r |#n\n\r",
"Endurance",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TOUGHNESS] >= 5 ? "*" : " ",
"Physique",
ch->pcdata->cpowers[DRAC_MIGHT] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_MIGHT] >= 5 ? "*" : " ");
}
stc (buf, ch);
stc
("#r| | |#n\n\r",
ch);
if (IS_DRAGON (ch))
{
sprintf (buf,
"#r| #y %-13s #c[#7%s%s%s%s%s%s%s%s%s%s#c]#r | #y %-13s #c[#7%s%s%s%s%s%s%s%s%s%s#c]#r |#n\n\r",
"Alacrity",
ch->pcdata->cpowers[DRAC_SPEED] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 10 ? "*" : " ",
"Conflict",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 10 ? "*" : " ");
}
else
{
sprintf (buf,
"#r| #y %-13s #c [#7%s%s%s%s%s#c] #r | #y%-13s #c[#7%s%s%s%s%s#c] #r |#n\n\r",
"Alacrity",
ch->pcdata->cpowers[DRAC_SPEED] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_SPEED] >= 5 ? "*" : " ",
"Conflict",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_OFFENSIVE] >= 5 ? "*" : " ");
}
stc (buf, ch);
stc
("#r| | |#n\n\r",
ch);
if (IS_DRAGON (ch))
{
sprintf (buf,
"#r| #y %-13s #c[#7%s%s%s%s%s%s%s%s%s%s#c]#r | #y %-13s #c[#7%s%s%s%s%s%s%s%s%s%s#c]#r |#n\n\r",
"Defiance",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 10 ? "*" : " ",
"Transmutation",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 5 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 6 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 7 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 8 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 9 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 10 ? "*" : " ");
}
else
{
sprintf (buf,
"#r|#y %-13s #c [#7%s%s%s%s%s#c] #r | #y%-13s #c [#7%s%s%s%s%s#c] #r|#n\n\r",
"Defiance",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_DEFENSIVE] >= 5 ? "*" : " ",
"Transmutation",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 1 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 2 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 3 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 4 ? "*" : " ",
ch->pcdata->cpowers[DRAC_TRANSFORM] >= 5 ? "*" : " ");
}
stc (buf, ch);
stc
("#r| | |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r| #y Caste Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_PROF] != PROF_NONE)
{
sprintf (buf,
"#r|#y You are a member of the Caste of#c:#y%7s#r |#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
stc
("#r| |#n\n\r",
ch);
if (caste != 0)
{
sprintf (buf,
"#r|#y %7s #c[#7%s%s%s%s%s#c]#r |#n\n\r",
get_dprof2 (ch),
ch->pcdata->cpowers[caste] >= 1 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 2 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 3 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 4 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 5 ? "*" : " ");
stc (buf, ch);
}
}
else
{
stc
("#r| #yTo choose a Caste: study caste <warrior/warlock/scout/cleric> #r|#n\n\r",
ch);
stc
("#r| #yBe sure to read the help files for the Castes before choosing #r|#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
sprintf (buf,
"#r|#y Rank: #c[#7%d#c] #r|#n\n\r",
ch->pcdata->cpowers[DRAC_RANK]);
stc (buf, ch);
if (ch->pcdata->cpowers[DRAC_RANK] < 2)
{
stc
("#r|#y To improve your Rank type: study rank improve#r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
if (IS_DRAGON (ch))
{
sprintf (buf,
"#r|#y You are %-29s #r|#n\n\r",
get_dragon (ch));
stc (buf, ch);
stc
("#r|#y #r |#n\n\r",
ch);
if (ch->pcdata->dpowers[DRAGON_COLOR] >= 11)
{
stc
("#r|#y To chose a Color type: study color #c<#ychosen color#c> #r|#n\n\r",
ch);
stc
("#r|#y #r |#n\n\r",
ch);
}
}
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
sprintf (buf,
"#r|#y You are a %-10s#y%15s #r |#n\n\r",
ch->class == CLASS_DRAGON ? "Dragon#c:" : "Draconian#c:",
get_drank (ch));
stc (buf, ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg1, "divination"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r| #y Divination Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_SIGHT] > 0)
{
stc
("#r|#y 1#c.#y Sight of the Dragon. (dsight) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_SIGHT] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y Dragon Lore. (dlore) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Dragon Scrutiny. (dscrutiny) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y Plane Sight of the Drake. (psight) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y Spies of the Dragon. (dspy) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 5)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 6#c.#y The Majestic Dragon. (auto) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 6)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 7#c.#y The Serpent's Senses. (dserpent) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 7)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 8#c.#y Serpent's Sense Improve I. (auto) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 8)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 9#c.#y Serpent's Sense Improve II. (auto) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 9)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 10#c.#y Scrutiny of the Ancient Wyrm. (global dscrutiny) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r|#y To improve your Divination discipline#c:#y study divination improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_SIGHT;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
cor *= 2;
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Divination discipline type#c:#y study divination improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "draconic"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Draconic Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 0)
{
stc
("#r|#y 1#c.#y Dragon Wings. (dwings) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y Horns of the Drake. (dhorn) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Dragon Tail. (dtail) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y Form of the Dragon. (dform) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y Dragon Breath. (dbreath) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 5)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 6#c.#y Learn the True Dragon BreathWeapons. (dlearn) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 6)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 7#c.#y You Can Learn Another Breath. #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 7)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 8#c.#y You Can Learn Another Breath. #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 8)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 9#c.#y You Can Learn Another Breath. #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] > 9)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 10#c.#y You Can Learn Another Breath. #r|#n\n\r",
ch);
}
}
else
{
stc
("#r|#y To improve your Draconic discipline#c:#y study draconic improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_DRACONIC;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Draconic discipline type#c:#y study draconic improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "endurance"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Endurance Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_TOUGHNESS] > 0)
{
if (IS_DRAGON (ch))
{
if (ch->pcdata->cpowers[DRAC_TOUGHNESS] < 6)
{
percent = ch->pcdata->cpowers[DRAC_TOUGHNESS];
percent *= 12;
}
else
{
percent = 60;
percent2 = ch->pcdata->cpowers[DRAC_TOUGHNESS];
percent2 *= 2;
percent += percent2;
}
}
else
{
percent = ch->pcdata->cpowers[DRAC_TOUGHNESS];
percent *= 12;
}
sprintf (buf,
"#r|#y Endurance#c:#y Damage you take is reduced by#c:#R %2d#y percent. #r|#n\n\r",
percent);
stc (buf, ch);
}
else
{
stc
("#r|#y To improve your Endurance discipline#c:#y study Endurance improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_TOUGHNESS;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Endurance discipline type#c:#y study endurance improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "physique"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Physique Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_MIGHT] > 0)
{
sprintf (buf,
"#r|#y Physique#c:#R %2d00#y damcap,#R %2d00#y hit/dam/ac improve.#r |#n\n\r",
(ch->pcdata->cpowers[DRAC_MIGHT] * 4),
(ch->pcdata->cpowers[DRAC_MIGHT] * 2));
stc (buf, ch);
}
else
{
stc
("#r|#y To improve your Physique discipline#c:#y study physique improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_MIGHT;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Physique discipline type#c:#y study physique improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "alacrity"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Alacrity Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_SPEED] > 0)
{
if (IS_DRAGON (ch))
{
if (ch->pcdata->cpowers[DRAC_SPEED] < 6)
{
percent = ch->pcdata->cpowers[DRAC_SPEED];
}
else
{
percent = 5;
percent2 = ch->pcdata->cpowers[DRAC_SPEED];
percent2 /= 3;
percent += percent2;
}
}
else
{
percent = ch->pcdata->cpowers[DRAC_SPEED];
}
sprintf (buf,
"#r|#y Alacrity#c:#y Improves speed by#R %d#y, and gives #R%d#y extra attacks per round. #r|#n\n\r",
(percent / 2), percent);
stc (buf, ch);
}
else
{
stc
("#r|#y To improve your Alacrity discipline#c:#y study alacrity improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_SPEED;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your alacrity discipline type#c:#y study alacrity improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "conflict"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Conflict Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 0)
{
stc
("#r|#y 1#c.#y Dragon Aura. (dconfuse/dfear) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y The Dragon's Conflict. (dconflict) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Dragon Jaws. (djaws) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y Spear of the Dragon. (dspear/dthrust) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y Roar of the Dragon. (droar) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 5)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 6#c.#y Swoop of the Wyrm. (swoop) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 6)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 7#c.#y Gleeming Fangs of the Wyrm. (improved djaws) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 7)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 8#c.#y Set Your Automatic BreathWeapon. (setbreath) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 8)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 9#c.#y Wyvern's Sting. (improved tail) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] > 9)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 10#c.#y Dragon's Gorging. (sustenance from the corpses you consume) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r|#y To improve your Conflict discipline#c:#y study conflict improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_OFFENSIVE;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Conflict discipline type#c:#y study conflict improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "warrior"))
{
if (!IS_DRAC_WARRIOR (ch))
{
do_study (ch, "");
return;
}
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Warrior Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Skill of the Dragon. (improved weapon skills) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_COMBAT] > 0)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 1#c.#y Strength of the Dragon. (extra damcap, hit and dam) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_COMBAT] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y Dragon Harpoon. (dharpoon) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_COMBAT] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y The Drake's Sharpening. (dsharpen) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_COMBAT] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y Charge of the Dragon. (improved first attack) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_COMBAT] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y Dragon Bash. (knock them down, then stomp on them) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y To improve your Warrior discipline#c:#y study warrior improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_COMBAT;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (ch->pcdata->cpowers[inpart] >= 5)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Warrior discipline type#c:#y study warrior improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "warlock"))
{
if (!IS_DRAC_MAGE (ch))
{
do_study (ch, "");
return;
}
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Warlock Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Draconic Magic Mastery. (improved spell colors) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_MAGIC] > 0)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 1#c.#y Curse of the Drake. (dcurse) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_MAGIC] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y Dragon Breath Forge. (breathforge) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_MAGIC] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Dragon Magic. (extra practice spells and faster casting) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_MAGIC] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y The Drake's Concentration. (mystical power regeneration) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_MAGIC] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y True Magic. (chant) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y To improve your Warlock discipline#c:#y study warlock improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_MAGIC;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (ch->pcdata->cpowers[inpart] >= 5)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Warlock discipline type#c:#y study warlock improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "cleric"))
{
if (!IS_DRAC_CLERIC (ch))
{
do_study (ch, "");
return;
}
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Cleric Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Crucifix of Draygon the Lord of Dragons. (dcrucifix) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_RELIGION] > 0)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 1#c.#y Bless of Draygon. (dbless) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_RELIGION] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y Draygon's Restoration. (drestore) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_RELIGION] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Draygon's Baptismal. (dbaptism) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_RELIGION] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y Draygon's Banishment/Draygon's Hammer. (dbanish/dhammer) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_RELIGION] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y Draygon's Avatar/Draygon's Hammer Strike. (davatar/dstrike) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y To improve your Cleric discipline#c:#y study cleric improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_RELIGION;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (ch->pcdata->cpowers[inpart] >= 5)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Cleric discipline type#c:#y study cleric improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "scout"))
{
if (!IS_DRAC_SCOUT (ch))
{
do_study (ch, "");
return;
}
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Scout Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y The Dragon's Poison. (dpoison) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_STEALTH] > 0)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 1#c.#y Cloak of the Drake. (dcloak) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_STEALTH] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y Dragon Guidance. (improved backstab) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_STEALTH] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Traps of the Dragon. (dtrap) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_STEALTH] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y The Dragon's Escape. (descape) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_STEALTH] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y The Drake's BlowPipe. (dpipe) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y To improve your Scout discipline#c:#y study scout improve #r|#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_STEALTH;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (ch->pcdata->cpowers[inpart] >= 5)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Scout discipline type#c:#y study scout improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "defiance"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Defiance Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 0)
{
stc
("#r|#y 1#c.#y Dragon Heal. (dheal) #r|#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 1)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 2#c.#y The Aegis of the Dragon. (daegis) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 2)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 3#c.#y Dragon Flight. (dfly) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 3)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 4#c.#y Dragon Obscurity. (dobscure) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 4)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 5#c.#y Dragon Protectors. (dprotect) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 5)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 6#c.#y Gem Form. (gemform) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 6)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 7#c.#y Luck of the Dragon. (dluck) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 7)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 8#c.#y Sleep of the Dragon. (dsleep) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 8)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 9#c.#y Rejuvenating Dragon Sleep. (sleep of the dragon improve) #r|#n\n\r",
ch);
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 9)
{
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y 10#c.#y Wyrm's Heal. (improved dheal) #r|#n\n\r",
ch);
}
}
else
{
stc
("#r|#y To improve your Defiance discipline#c:#y study defiance improve #r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_DEFENSIVE;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Defiance discipline type#c:#y study defiance improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "transmutation"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r|#y Transmutation Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_TRANSFORM] > 0)
{
if (IS_DRAGON (ch))
{
if (ch->pcdata->cpowers[DRAC_TRANSFORM] < 6)
{
percent = ch->pcdata->cpowers[DRAC_TRANSFORM];
percent *= 6;
}
else
{
percent = 30;
percent2 = ch->pcdata->cpowers[DRAC_TRANSFORM];
percent2 *= 1.5;
percent += percent2;
}
}
else
{
percent = ch->pcdata->cpowers[DRAC_TRANSFORM];
percent *= 6;
}
sprintf (buf,
"#r|#y Transmutation#c:#y Your skin offers a #R%d#y percent chance to deflect magic#r|#n\n\r",
percent);
stc (buf, ch);
if (IS_DRAGON (ch))
{
if (ch->pcdata->cpowers[DRAC_TRANSFORM] < 6)
{
percent = ch->pcdata->cpowers[DRAC_TRANSFORM];
percent *= 5;
}
else
{
percent = 25;
percent2 = ch->pcdata->cpowers[DRAC_TRANSFORM];
percent += percent2;
}
}
else
{
percent = ch->pcdata->cpowers[DRAC_TRANSFORM];
percent *= 5;
}
sprintf (buf,
"#r|#y Your skin has a #R%d#y percent chance to deflect weapons #r|#n\n\r",
percent);
stc (buf, ch);
}
else
{
stc
("#r|#yTo improve your Transmutation discipline#c:#y study transmutation improve#r|#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
inpart = DRAC_TRANSFORM;
cost = (ch->pcdata->cpowers[inpart] + 1) * 5000;
if (IS_DRAGON (ch))
{
age = (ch->pcdata->dpowers[DRAGON_AGE] / 2);
cor *= 2;
rank += age;
}
if (str_cmp (ch->name, "Corim"))
{
if (ch->pcdata->cpowers[inpart] >= max)
{
sprintf (buf,
"#yYou have already completed your study into the %s discipline.\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->cpowers[inpart] >= rank)
{
sprintf (buf,
"#yYou need to increase your rank before you can increase your %s discipline any further.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
if (ch->pcdata->power[POWER_CURRENT] < cost)
{
sprintf (buf,
"#yYou need #R%d#y more %s power points to improve your %s discipline.#n\n\r",
(cost - ch->pcdata->power[POWER_CURRENT]),
get_class (ch), capitalize (arg1));
stc (buf, ch);
return;
}
ch->pcdata->cpowers[inpart]++;
ch->pcdata->power[POWER_CURRENT] -= cost;
}
else
{
ch->pcdata->cpowers[inpart] = cor;
}
sprintf (buf, "#yYou study and improve your %s discipline.#n\n\r",
capitalize (arg1));
stc (buf, ch);
return;
}
else
{
stc
("#yTo improve your Transmutation discipline type#c:#y study transmutation improve.#n\n\r",
ch);
return;
}
return;
}
else if (!str_cmp (arg1, "caste"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
stc
("#r| #y Caste Discipline #r|#n\n\r",
ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
if (ch->pcdata->cpowers[DRAC_PROF] != PROF_NONE)
{
sprintf (buf,
"#r|#y You are a member of the Caste of#c:#y%7s#r |#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
stc
("#r| |#n\n\r",
ch);
if (caste != 0)
{
sprintf (buf,
"#r|#y %7s #c[#7%s%s%s%s%s#c]#r |#n\n\r",
get_dprof2 (ch),
ch->pcdata->cpowers[caste] >= 1 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 2 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 3 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 4 ? "*" : " ",
ch->pcdata->cpowers[caste] >= 5 ? "*" : " ");
stc (buf, ch);
}
}
else
{
stc
("#r| #yTo choose a Caste: study caste <warrior/warlock/scout/cleric> #r|#n\n\r",
ch);
stc
("#r| #yBe sure to read the help files for the Castes before choosing #r|#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "warrior"))
{
if (ch->pcdata->cpowers[DRAC_PROF] != PROF_NONE)
{
do_study (ch, "caste");
return;
}
ch->pcdata->cpowers[DRAC_PROF] = PROF_WARRIOR;
sprintf (buf, "#yYou start down the path of the %s.#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
sprintf (buf, "#y%s has chosen the %s Caste.", ch->name,
get_dprof2 (ch));
do_info (ch, buf);
return;
}
else if (!str_cmp (arg2, "warlock"))
{
if (ch->pcdata->cpowers[DRAC_PROF] != PROF_NONE)
{
do_study (ch, "caste");
return;
}
ch->pcdata->cpowers[DRAC_PROF] = PROF_MAGE;
sprintf (buf, "#yYou start down the path of the %s.#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
sprintf (buf, "#y%s has chosen the %s Caste.", ch->name,
get_dprof2 (ch));
do_info (ch, buf);
return;
}
else if (!str_cmp (arg2, "cleric"))
{
if (ch->pcdata->cpowers[DRAC_PROF] != PROF_NONE)
{
do_study (ch, "caste");
return;
}
ch->pcdata->cpowers[DRAC_PROF] = PROF_CLERIC;
sprintf (buf, "#yYou start down the path of the %s.#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
sprintf (buf, "#y%s has chosen the %s Caste.", ch->name,
get_dprof2 (ch));
do_info (ch, buf);
return;
}
else if (!str_cmp (arg2, "scout"))
{
if (ch->pcdata->cpowers[DRAC_PROF] != PROF_NONE)
{
do_study (ch, "caste");
return;
}
ch->pcdata->cpowers[DRAC_PROF] = PROF_SCOUT;
sprintf (buf, "#yYou start down the path of the %s.#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
sprintf (buf, "#y%s has chosen the %s Caste.", ch->name,
get_dprof2 (ch));
do_info (ch, buf);
return;
}
return;
}
else if (!str_cmp (arg1, "rank"))
{
if (arg2[0] == '\0')
{
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
sprintf (buf,
"#r|#y Rank: #c[#7%d#c] #r|#n\n\r",
ch->pcdata->cpowers[DRAC_RANK]);
stc (buf, ch);
if (ch->pcdata->cpowers[DRAC_RANK] < 2)
{
stc
("#r|#y To improve your Rank type: study rank improve#r |#n\n\r",
ch);
}
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
stc
("#r| |#n\n\r",
ch);
sprintf (buf,
"#r|#y You are a Draconian#c:#y%15s #r |#n\n\r",
get_drank (ch));
stc (buf, ch);
stc
("#r| |#n\n\r",
ch);
stc (line, ch);
return;
}
else if (!str_cmp (arg2, "improve"))
{
if (rank > 4)
{
sprintf (buf,
"#yYou are a already a %s, you can not improve your rank any better then that.#n\n\r",
get_drank (ch));
stc (buf, ch);
return;
}
if ((IS_DRAC_NONE (ch))
|| (!IS_DRAC_WARRIOR (ch) && !IS_DRAC_MAGE (ch)
&& !IS_DRAC_SCOUT (ch) && !IS_DRAC_CLERIC (ch)))
{
stc
("#yYou need to chose a Caste before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] < rank)
{
stc
("#yYou need to study your Divination discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[caste] < rank)
{
sprintf (buf,
"#yYou need to study your %s discipline before you can improve your rank.#n\n\r",
get_dprof2 (ch));
stc (buf, ch);
return;
}
if (ch->pcdata->cpowers[DRAC_MIGHT] < rank)
{
stc
("#yYou need to study your Physique discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] < rank)
{
stc
("#yYou need to study your Draconic discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_TOUGHNESS] < rank)
{
stc
("#yYou need to study your Endurance discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_SPEED] < rank)
{
stc
("#yYou need to study your Alacrity discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_OFFENSIVE] < rank)
{
stc
("#yYou need to study your Conflict discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] < rank)
{
stc
("#yYou need to study your Defiance discipline before you can improve your rank.#n\n\r",
ch);
return;
}
if (ch->pcdata->cpowers[DRAC_TRANSFORM] < rank)
{
stc
("#yYou need to study your Transmutation discipline before you can improve your rank.#n\n\r",
ch);
return;
}
cost = (rank + 1) * 150;
if (ch->practice < cost)
{
sprintf (buf,
"#yYou need #R%d#y more primal to improve your rank.#n\n\r",
(cost - ch->practice));
stc (buf, ch);
return;
}
sprintf (bfr, get_drank (ch));
ch->pcdata->cpowers[DRAC_RANK]++;
sprintf (afr, get_drank (ch));
sprintf (buf,
"#yYou have advanced from the rank of #R%s#y to the rank of #R%s#y in the Draconian#R %s#y Hierarchy.#n\n\r",
bfr, afr, get_dprof2 (ch));
stc (buf, ch);
sprintf (buf,
"#7%s#y has advanced from the rank of #R%s#y to the rank of #R%s#y in the Draconian #R%s#y Hierarchy.#n\n\r",
ch->name, bfr, afr, get_dprof2 (ch));
do_info (ch, buf);
ch->practice -= cost;
return;
}
else
{
do_study (ch, "rank");
return;
}
}
else if (!str_cmp (arg1, "color"))
{
cost = 1000;
if (ch->pcdata->dpowers[DRAGON_COLOR] < 11)
{
sprintf (buf, "#yYou have already chosen the color#n %s#y.#n\n\r",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
stc (buf, ch);
return;
}
if (ch->practice < cost)
{
sprintf (buf,
"#yYou need #R%d#y more primal before you can chose a Color.#n\n\r",
(cost - ch->practice));
stc (buf, ch);
return;
}
if (arg2[0] == '\0')
{
stc ("#yWhat color do you chose?#n\n\r", ch);
sprintf (buf,
"%s.\n\r%s.\n\r%s.\n\r%s.\n\r%s.\n\r%s.\n\r%s.\n\r%s.\n\r%s.\n\r%s.\n\r",
dcolor[1], dcolor[2], dcolor[3], dcolor[4], dcolor[5],
dcolor[6], dcolor[7], dcolor[8], dcolor[9], dcolor[10]);
stc (buf, ch);
return;
}
else if (!str_cmp (arg2, "red"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 1;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_FBREATH);
}
else if (!str_cmp (arg2, "green"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 2;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_GBREATH);
}
else if (!str_cmp (arg2, "blue"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 3;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_LBREATH);
}
else if (!str_cmp (arg2, "brass"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 4;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_LBREATH);
}
else if (!str_cmp (arg2, "silver"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 5;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_CBREATH);
}
else if (!str_cmp (arg2, "white"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 6;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_GBREATH);
}
else if (!str_cmp (arg2, "black"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 7;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_ABREATH);
}
else if (!str_cmp (arg2, "gold"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 8;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_FBREATH);
}
else if (!str_cmp (arg2, "shadow"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 9;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_SBREATH);
}
else if (!str_cmp (arg2, "pink"))
{
ch->pcdata->dpowers[DRAGON_COLOR] = 10;
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_VBREATH);
}
else
{
do_study (ch, "color");
return;
}
ch->practice -= cost;
sprintf (buf, "#yYou are now a#n %s #yDragon.#n\n\r",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
send_to_char (buf, ch);
return;
}
else
{
do_study (ch, "");
return;
}
return;
}
void
do_dsight (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] < 1)
{
stc ("You need atleast 1 in your Divination discipline first.\n\r", ch);
return;
}
if (IS_SET (ch->mflags, MAGE_PERCEPTION))
{
REMOVE_BIT (ch->mflags, MAGE_PERCEPTION);
REMOVE_BIT (ch->vampaff, VAM_NIGHTSIGHT);
REMOVE_BIT (ch->act, PLR_HOLYLIGHT);
stc ("Sight returns to normal.\n\r", ch);
return;
}
SET_BIT (ch->mflags, MAGE_PERCEPTION);
SET_BIT (ch->vampaff, VAM_NIGHTSIGHT);
SET_BIT (ch->act, PLR_HOLYLIGHT);
stc
("You call upon your ancient dragon heritage to enhance your sight.\n\r",
ch);
return;
}
void
do_dheal (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
CHAR_DATA *victim;
bool hp = FALSE;
bool move = FALSE;
bool mana = FALSE;
int bonus = 1;
int heal = 0;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] < 1)
{
stc ("You need atleast 1 in your Defiance discipline first.\n\r", ch);
return;
}
if ((victim = get_char_room (ch, arg)) == NULL)
{
stc ("They aren't here.\n\r", ch);
return;
}
if (arg[0] == '\0')
victim = ch;
if (IS_NPC (victim))
{
stc ("Not on NPC's.\n\r", ch);
return;
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] > 9)
bonus = number_range (3, 5);
if (victim->pcdata->cpowers[DRAC_HEALING] > 0 && victim->fighting == NULL)
{
act ("$N is already defying the effect of $S wounds.", ch, NULL, victim,
TO_CHAR);
return;
}
if (ch->fight_timer > 0)
{
if (victim->hit < victim->max_hit)
{
heal = number_range (100, (500 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->hit += heal;
hp = TRUE;
}
if (victim->mana < victim->max_mana)
{
heal = number_range (100, (500 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->mana += heal;
mana = TRUE;
}
if (victim->move < victim->max_move)
{
heal = number_range (100, (500 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->move += heal;
move = TRUE;
}
}
else if (ch->fighting != NULL)
{
if (victim->hit < victim->max_hit)
{
heal = number_range (100, (300 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->hit += heal;
hp = TRUE;
}
if (victim->mana < victim->max_mana)
{
heal = number_range (100, (300 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->mana += heal;
mana = TRUE;
}
if (victim->move < victim->max_move)
{
heal = number_range (100, (300 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->move += heal;
move = TRUE;
}
}
else
{
if (victim->hit < victim->max_hit)
{
heal = number_range (300, (2000 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->hit += heal;
hp = TRUE;
}
if (victim->mana < victim->max_mana)
{
heal = number_range (300, (2000 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->mana += heal;
mana = TRUE;
}
if (victim->move < victim->max_move)
{
heal = number_range (300, (2000 * ch->pcdata->cpowers[DRAC_RANK]));
heal *= bonus;
victim->move += heal;
move = TRUE;
}
}
if (victim->hit > victim->max_hit && hp)
victim->hit = victim->max_hit;
if (victim->move > victim->max_move && move)
victim->move = victim->max_move;
if (victim->mana > victim->max_mana && mana)
victim->mana = victim->max_mana;
update_pos (victim);
if (victim == ch)
{
stc
("You channel magical energy into yourself, obtaining the power to defy your wounds.\n\r",
ch);
act
("$n channels magical energy into $mself, $e seems to glow with determination as $s wounds start to heal.",
ch, NULL, NULL, TO_ROOM);
}
else
{
act
("You channel magical energy into $N, giving $M the power to defy $S wounds.",
ch, NULL, victim, TO_CHAR);
act
("$n channels magical energy into you, giving you the power to defy your wounds.",
ch, NULL, victim, TO_VICT);
act
("$n channels magical energy into $N, $E seems to glow with determination as $S wounds start to heal.",
ch, NULL, victim, TO_NOTVICT);
}
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Dragon Heal on you.", ch, NULL, victim, TO_VICT);
}
if (victim->pcdata->cpowers[DRAC_HEALING] < 1)
victim->pcdata->cpowers[DRAC_HEALING] += number_range (4, 12);
waiting (ch, 12);
return;
}
void
do_dlore (CHAR_DATA * ch, char *argument)
{
OBJ_DATA *obj;
char arg[MSL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] < 2)
{
stc ("You need atleast 2 in your Divination discipline first.\n\r", ch);
return;
}
if (arg[0] == '\0')
{
stc ("What item do you wish to use your Dragon Lore on ?\n\r", ch);
return;
}
if ((obj = get_obj_carry (ch, arg)) == NULL)
{
stc ("Dragon Lore what?\n\r", ch);
return;
}
act ("You study $p applying your extensive lore to it.", ch, obj, NULL,
TO_CHAR);
spell_identify (skill_lookup ("identify"), ch->level, ch, obj);
return;
}
void
do_dscrutiny (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg[MSL];
char buf[MSL];
int con_hit, con_dam, con_ac, con_hp, con_mana, con_move;
int con_str, con_int, con_dex, con_wis, con_con;
int con_max_hp, con_max_mana, con_max_move;
bool global = FALSE;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] < 3)
{
stc ("You need atleast 3 in your Divination discipline first.\n\r", ch);
return;
}
if (arg[0] == '\0')
{
stc ("Whom do you wish to Scrutinize?\n\r", ch);
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] > 9)
{
global = TRUE;
}
if (global)
{
if ((victim = get_char_world (ch, arg)) == NULL)
{
stc ("Scrutinize whom?\n\r", ch);
return;
}
}
else
{
if ((victim = get_char_room (ch, arg)) == NULL)
{
stc ("Scrutinize whom?\n\r", ch);
return;
}
}
if (!IS_NPC (victim) && IS_IMMUNE (victim, IMM_SHIELDED)
&& !IS_ITEMAFF (ch, ITEMA_VISION) && !global)
{
stc ("You are unable to scrutinize them.\n\r", ch);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Dragon Scrutinize on you.", ch, NULL,
victim, TO_VICT);
}
return;
}
if (global &&victim->in_room != ch->in_room)
{
act ("You concentrate on $N scrutinizing $S aura from afar.", ch, NULL,
victim, TO_CHAR);
act ("A look of concentration crosses $s face.", ch, NULL, NULL,
TO_ROOM);
stc
("The hairs in the back of your neck stands on end making you feel like your being watched.",
victim);
}
else
{
act ("You stare at $N scrutinizing $S aura.", ch, NULL, victim,
TO_CHAR);
act ("$n stares at $N, how rude!", ch, NULL, victim, TO_NOTVICT);
act ("$n stares at you, how rude!", ch, NULL, victim, TO_VICT);
}
if (!IS_NPC (victim) && IS_EXTRA (victim, EXTRA_FAKE_CON))
{
con_hit = victim->pcdata->fake_hit;
con_dam = victim->pcdata->fake_dam;
con_ac = victim->pcdata->fake_ac;
con_str = victim->pcdata->fake_stats[STAT_STR];
con_int = victim->pcdata->fake_stats[STAT_INT];
con_wis = victim->pcdata->fake_stats[STAT_WIS];
con_dex = victim->pcdata->fake_stats[STAT_DEX];
con_con = victim->pcdata->fake_stats[STAT_CON];
con_hp = victim->pcdata->fake_hp;
con_mana = victim->pcdata->fake_mana;
con_move = victim->pcdata->fake_move;
con_max_hp = victim->pcdata->fake_max_hp;
con_max_mana = victim->pcdata->fake_max_mana;
con_max_move = victim->pcdata->fake_max_move;
}
else
{
con_hit = char_hitroll (victim);
con_dam = char_damroll (victim);
con_ac = char_ac (victim);
con_str = get_curr_str (victim);
con_int = get_curr_int (victim);
con_wis = get_curr_wis (victim);
con_dex = get_curr_dex (victim);
con_con = get_curr_con (victim);
con_hp = victim->hit;
con_mana = victim->mana;
con_move = victim->move;
con_max_hp = victim->max_hit;
con_max_mana = victim->max_mana;
con_max_move = victim->max_move;
}
if (IS_NPC (victim))
sprintf (buf, "%s is an NPC.\n\r", victim->short_descr);
else
{
if (victim->level == 13)
sprintf (buf, "%s is an Owner.\n\r", victim->name);
else if (victim->level == 12)
sprintf (buf, "%s is an Implementor.\n\r", victim->name);
else if (victim->level == 11)
sprintf (buf, "%s is a High Judge.\n\r", victim->name);
else if (victim->level == 10)
sprintf (buf, "%s is a Judge.\n\r", victim->name);
else if (victim->level == 9)
sprintf (buf, "%s is an Enforcer.\n\r", victim->name);
else if (victim->level == 8)
sprintf (buf, "%s is a Quest Maker.\n\r", victim->name);
else if (victim->level == 7)
sprintf (buf, "%s is a Builder.\n\r", victim->name);
else if (victim->level >= 3)
sprintf (buf, "%s is an Avatar.\n\r", victim->name);
else
sprintf (buf, "%s is a Mortal.\n\r", victim->name);
}
stc (buf, ch);
sprintf (buf, "Str: %d. Int: %d. Wis: %d. Dex: %d. Con: %d.\n\r",
con_str, con_int, con_wis, con_dex, con_con);
stc (buf, ch);
sprintf (buf, "Life: %d/%d, Mp: %d/%d, Vitality: %d/%d.\n\r",
con_hp, con_max_hp, con_mana, con_max_mana, con_move,
con_max_move);
stc (buf, ch);
sprintf (buf, "Hitroll: %d, Damroll: %d, AC: %d.\n\r",
con_hit, con_dam, con_ac);
stc (buf, ch);
if (!IS_NPC (victim))
{
sprintf (buf, "Status: %d, ", victim->race);
stc (buf, ch);
}
sprintf (buf, "Alignment: %d.\n\r", victim->alignment);
stc (buf, ch);
if (!IS_NPC (victim) && IS_EXTRA (victim, EXTRA_PREGNANT))
act ("$N is pregnant.", ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim) && IS_VAMPIRE (victim)
&& victim->pcdata->diableries[DIAB_EVER] >= 5)
act ("$N's soul is permanently stained with multiple diablerie.", ch,
NULL, victim, TO_CHAR);
if (!IS_NPC (victim) && IS_VAMPIRE (victim)
&& victim->pcdata->diableries[DIAB_TIME] > 0)
act ("$N has recently committed diablerie.", ch, NULL, victim, TO_CHAR);
if (!IS_NPC (victim) && IS_MORE (victim, MORE_INFORM))
{
if (ch->pcdata->lie == LIE_TRUE)
act ("$N has recently lied.", ch, NULL, victim, TO_CHAR);
else
act ("$N has recently spoken truthfully.", ch, NULL, victim, TO_CHAR);
}
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Dragon Scrutinize on you.", ch, NULL, victim,
TO_VICT);
}
return;
}
void
do_psight (CHAR_DATA * ch, char *argument)
{
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] < 4)
{
stc ("You need atleast 4 in your Divination discipline first.\n\r", ch);
return;
}
if (IS_SET (ch->nymbits, NYM_PLANESIGHT))
{
REMOVE_BIT (ch->nymbits, NYM_PLANESIGHT);
REMOVE_BIT (ch->nymbits, NYM_DEATHSIGHT);
REMOVE_BIT (ch->affected_by, AFF_SHADOWSIGHT);
REMOVE_BIT (ch->vampaff, VAM_SPIRITEYES);
stc ("You no longer see across the planes.\n\r", ch);
return;
}
SET_BIT (ch->nymbits, NYM_PLANESIGHT);
// SET_BIT (ch->nymbits, NYM_DEATHSIGHT);
SET_BIT (ch->affected_by, AFF_SHADOWSIGHT);
SET_BIT (ch->vampaff, VAM_SPIRITEYES);
stc ("You call upon ancient dragon spirits to see across the planes.\n\r",
ch);
return;
}
void
do_dspy (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
ROOM_INDEX_DATA *chroom;
ROOM_INDEX_DATA *victimroom;
DESCRIPTOR_DATA *d;
char arg[MIL];
char buf[MSL];
bool found = FALSE;
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_SIGHT] < 5)
{
stc ("You need atleast 5 in your Divination discipline first.\n\r", ch);
return;
}
if (arg[0] == '\0')
{
stc
("You send out your thoughts in the form of a huge raven, locating your enemies one by one.\n\r",
ch);
act
("$n closes $s eyes and suddenly a huge spirit like raven seems to fly out of $s body.",
ch, NULL, NULL, TO_ROOM);
for (d = descriptor_list; d != NULL; d = d->next)
{
if (d->connected != CON_PLAYING)
continue;
if ((victim = d->character) == NULL)
continue;
if (IS_NPC (victim) || victim->in_room == NULL)
continue;
if (victim == ch)
continue;
if (!can_see (ch, victim))
continue;
if (IS_IMMORTAL (victim))
continue;
if (!plane_see (ch, victim) && !IS_IMMORTAL (ch))
continue;
if (IS_AFFECTED (victim, AFF_POLYMORPH))
sprintf (buf, "(%s) %s: ", victim->name, victim->morph);
else
sprintf (buf, "%s: ", victim->name);
stc (buf, ch);
if (IS_SAINT (victim) && victim->monkab[HOLY] > 1
&& !IS_IMMORTAL (ch))
sprintf (buf, "(guarded by angel).");
else if (victim->in_room->area->plane == PLANE_PAND)
sprintf (buf,
"Unable to establish a lock on the victim\'s location.");
else if (!IS_IMMUNE (victim, IMM_SHIELDED))
sprintf (buf, "%s.", victim->in_room->name);
else if (IS_IMMORTAL (ch))
sprintf (buf, "%s.", victim->in_room->name);
else if (IS_XXX (victim, XXX_TIMESHIELD))
sprintf (buf, "(undetectable)");
else if (ch->lstatus >= 9)
sprintf (buf, "%s.", victim->in_room->name);
else
sprintf (buf, "(shielded).");
stc (buf, ch);
stc ("\n\r", ch);
found = TRUE;
}
if (!found)
stc ("You cannot seem to locate anyone.\n\r", ch);
return;
}
stc ("You send out your thoughts in the form of a huge raven.\n\r", ch);
act
("$n closes $s eyes and suddenly a huge spirit like raven seems to fly out of $s body.",
ch, NULL, NULL, TO_ROOM);
if ((victim = get_pc_world (ch, arg)) == NULL)
{
if ((victim = get_npc_world (ch, arg)) == NULL)
{
stc ("Your Raven is unable to locate them.\n\r", ch);
return;
}
}
if (victim->in_room->area->plane == PLANE_PAND)
{
stc ("Unable to establish a lock on the victim\'s location.", ch);
return;
}
if (!IS_NPC (victim) && IS_IMMUNE (victim, IMM_SHIELDED)
&& !IS_ITEMAFF (ch, ITEMA_VISION) && !IS_IMMORTAL (ch))
{
if (ch->lstatus < 9)
{
stc ("Your Raven is unable to locate them.\n\r", ch);
if (!IS_NPC (victim) && ch != victim
&& IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just failed to use Dragon Spies on you.", ch, NULL,
victim, TO_VICT);
if (IS_SAINT (victim) && victim->monkab[HOLY] > 1
&& !IS_IMMORTAL (ch))
{
free_string (victim->scryperp);
victim->scryperp = str_dup (ch->name);
victim->gangtime = number_range (5, 7);
guardian_message (victim);
act ("Do you want me to BRING $m to you master.", ch, NULL,
victim, TO_VICT);
}
}
return;
}
}
if (IS_IMMORTAL (victim) && !IS_NPC (victim))
{
stc ("Your Raven is totaly unable to locate them.\n\r", ch);
act ("$n just tried to use Dragon Spies on you.", ch, NULL, victim,
TO_VICT);
return;
}
chroom = ch->in_room;
victimroom = victim->in_room;
char_from_room (ch);
char_to_room (ch, victimroom);
act ("Your Raven locates $N, spying down at $M from high above.", ch, NULL,
victim, TO_CHAR);
act ("You see a #0raven#n flying, slowly losing #Lsight#n of it.", ch, NULL,
NULL, TO_ROOM);
do_look (ch, "auto");
char_from_room (ch);
char_to_room (ch, chroom);
if (!IS_NPC (victim) && ch != victim && IS_MORE (victim, MORE_GUARDIAN))
{
guardian_message (victim);
act ("$n just used Dragon Spies on you.", ch, NULL, victim, TO_VICT);
if (IS_SAINT (victim) && victim->monkab[HOLY] > 1 && !IS_IMMORTAL (ch))
{
free_string (victim->scryperp);
victim->scryperp = str_dup (ch->name);
victim->gangtime = number_range (5, 7);
guardian_message (victim);
act ("Do you want me to BRING $m to you master.", ch, NULL, victim,
TO_VICT);
}
if (IS_DRACONIAN (victim))
{
int dam = number_range (1000, 3000);
sprintf (buf,
"An Ancient Spirit Dragon breathes a blast of ghostly fire at you #7[#R%d#7]#n.\n\r",
dam);
stc (buf, ch);
sprintf (buf,
"Your Ancient Dragon Spirit breathes a blast of ghostly fire at $n #7[#R%d#7]#n.",
dam);
act (buf, ch, NULL, victim, TO_VICT);
act
("An Ancient Dragon Spirit breathes a blast of ghostly fire at $n.",
ch, NULL, NULL, TO_ROOM);
hurt_person (ch, ch, dam, 0);
}
}
return;
}
void
do_daegis (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
char buf[MSL];
CHAR_DATA *rch;
one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_DEFENSIVE] < 2)
{
stc ("You need atleast 2 in your Defiance discipline first.\n\r", ch);
return;
}
if (has_fighttimer (ch))
return;
if (ch->pcdata->obeah > 0 && !IS_MORE (ch, MORE_NEUTRAL))
{
if (ch->pcdata->obeah > 1)
sprintf (buf,
"You cannot call upon the Aegis of the Dragon for another %s.\n\r",
get_time (ch->pcdata->obeah, ""));
else
sprintf (buf,
"You cannot call upon the Aegis of the Dragon for another 1 second.\n\r");
stc (buf, ch);
return;
}
if (ch->in_room == NULL)
{
stc ("Nothing happens.\n\r", ch);
return;
}
if (IS_MORE (ch, MORE_REINA))
{
stc ("Nothing happens.\n\r", ch);
return;
}
if (IS_MORE (ch, MORE_NEUTRAL))
{
REMOVE_BIT (ch->more, MORE_NEUTRAL);
REMOVE_BIT (ch->in_room->room_flags, ROOM_SAFE);
act ("A look of concentration crosses $n's face.", ch, NULL, NULL,
TO_ROOM);
stc ("You disband the truce granted by your Dragon forefathers.\n\r",
ch);
act ("$n disbands the truce granted by $s Dragon forefathers.", ch,
NULL, NULL, TO_ROOM);
ch->pcdata->obeah = 30;
return;
}
if (IS_SET (ch->in_room->room_flags, ROOM_SAFE))
{
stc ("You are unable to call upon the Aegis of the Dragon here.\n\r",
ch);
return;
}
SET_BIT (ch->in_room->room_flags, ROOM_SAFE);
SET_BIT (ch->more, MORE_NEUTRAL);
act ("$n calls upon the Aegis of the Dragon.", ch, NULL, NULL, TO_ROOM);
stc ("You call upon the Aegis of the Dragon.\n\r", ch);
ch->pcdata->obeah = 30;
stc ("Your Dragon forefathers grants a temporary truce here.\n\r", ch);
act ("$n's Dragon forefathers grants a temporary truce here.", ch, NULL,
NULL, TO_ROOM);
for (rch = ch->in_room->people; rch != NULL; rch = rch->next_in_room)
{
if (rch->fighting != NULL)
stop_fighting (rch, TRUE);
}
return;
}
void
do_dragonwings (CHAR_DATA * ch, char *argument)
{
char arg[MIL];
char wing[MSL];
argument = one_argument (argument, arg);
if (IS_NPC (ch))
return;
if (!IS_DRACONIAN (ch))
{
do_huh (ch, "");
return;
}
if (ch->pcdata->cpowers[DRAC_DRACONIC] < 1)
{
stc ("You need atleast 1 in your Draconic discipline first.\n\r", ch);
return;
}
if (arg[0] != '\0')
{
if (!IS_SET (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_WINGS))
{
stc ("First you better get your wings out!\n\r", ch);
return;
}
if (!str_cmp (arg, "unfold") || !str_cmp (arg, "u"))
{
if (IS_SET (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_UNFOLDED))
{
stc ("But your wings are already unfolded!\n\r", ch);
return;
}
sprintf (wing,
"Your huge scaly %s wings unfold from behind your back.\n\r",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
stc (wing, ch);
sprintf (wing,
"$n's huge scaly %s wings unfold from behind $s back.",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
act (wing, ch, NULL, NULL, TO_ROOM);
SET_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_UNFOLDED);
return;
}
else if (!str_cmp (arg, "fold") || !str_cmp (arg, "f"))
{
if (!IS_SET (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_UNFOLDED))
{
stc ("But your wings are already folded!\n\r", ch);
return;
}
sprintf (wing,
"Your huge scaly %s wings fold up behind your back.\n\r",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
stc (wing, ch);
sprintf (wing, "$n's huge scaly %s wings fold up behind $s back.",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
act (wing, ch, NULL, NULL, TO_ROOM);
REMOVE_BIT (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_UNFOLDED);
return;
}
else
{
stc ("Do you want to FOLD or UNFOLD your wings?\n\r", ch);
return;
}
}
if (IS_SET (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_WINGS))
{
if (IS_SET (ch->pcdata->cpowers[DRAC_WEAPONRY], DRAC_UNFOLDED))
{
sprintf (wing,
"Your huge scaly %s wings fold up behind your back.\n\r",
dcolor[ch->pcdata->dpowers[DRAGON_COLOR]]);
stc (wing, ch);
Showing the first 100 KB of 199.5 KB. Download the archive for the full file.