act.other.c
dbt/src/act.other.c · 314.3 KB
From the archive dbx2.gz
Download the archive « Back to the archive contents
/*
************************************************************************
* File: act.other.c Part of CircleMUD *
* Usage: Miscellaneous player-level commands *
* *
* All rights reserved. See license.doc for complete information. *
* *
* Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University *
* CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991. *
************************************************************************ */
#define __ACT_OTHER_C__
#include "conf.h"
#include "sysdep.h"
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
#include "db.h"
#include "spells.h"
#include "screen.h"
#include "house.h"
#include "dg_scripts.h"
/* extern variables */
extern char arg1 [MAX_INPUT_LENGTH];
extern char arg2 [MAX_INPUT_LENGTH];
extern int spell_sort_info[MAX_SKILLS+1];
extern struct str_app_type str_app[];
extern struct room_data *world;
extern struct descriptor_data *descriptor_list;
extern struct dex_skill_type dex_app_skill[];
extern struct spell_info_type spell_info[];
extern struct index_data *mob_index;
extern char *class_abbrevs[];
extern struct spell_entry spells[];
extern int free_rent;
extern int pt_allowed;
extern int max_filesize;
extern int nameserver_is_slow;
extern int top_of_world;
extern int auto_save;
extern sh_int r_death_start_room;
extern sh_int r_mortal_start_room;
extern sh_int r_immort_start_room;
extern sh_int r_demon_start_room;
extern sh_int r_saiyan_start_room;
extern sh_int r_konack_start_room;
extern sh_int r_majin_start_room;
extern sh_int r_pk1_room;
extern sh_int r_pk2_room;
extern sh_int r_pk3_room;
extern sh_int r_pk4_room;
extern sh_int r_icer_start_room;
extern sh_int r_truffle_start_room;
extern sh_int r_namek_start_room;
extern int dotmode;
extern int value1;
extern int value2;
/* extern procedures */
void list_skills(struct char_data * ch);
void appear(struct char_data * ch);
void perform_immort_vis(struct char_data *ch);
SPECIAL(shop_keeper);
ACMD(do_gen_comm);
void die(struct char_data * ch, struct char_data * killer);
void Crash_rentsave(struct char_data * ch, int cost);
void make_corpse(struct char_data * ch);
/* local functions */
ACMD(do_quit);
ACMD(do_save);
ACMD(do_fly);
ACMD(do_land);
ACMD(do_not_here);
ACMD(do_SWIFTNESS);
ACMD(do_hide);
ACMD(do_mug);
ACMD(do_practice);
ACMD(do_visible);
ACMD(do_title);
int perform_group(struct char_data *ch, struct char_data *vict);
void print_group(struct char_data *ch);
ACMD(do_group);
ACMD(do_ungroup);
ACMD(do_inplant);
ACMD(do_report);
ACMD(do_sbreed);
ACMD(do_split);
ACMD(do_ssj);
ACMD(do_kaioken);
ACMD(do_kyodaika);
ACMD(do_spar);
ACMD(do_sparkick);
ACMD(do_sparpunch);
ACMD(do_sparelbow);
ACMD(do_sparknee);
ACMD(do_sparkiblast);
ACMD(do_transform);
ACMD(do_learn);
ACMD(do_use);
ACMD(do_repair);
ACMD(do_wimpy);
ACMD(do_display);
ACMD(do_stealth);
ACMD(do_gen_write);
ACMD(do_powerup);
ACMD(do_meditate);
ACMD(do_powerdown);
ACMD(do_gen_tog);
ACMD(do_ingest);
ACMD(do_deflect);
ACMD(do_upgrade);
ACMD(do_mystic);
ACMD(do_perfection);
ACMD(do_heal);
ACMD(do_heal2);
ACMD(do_pk);
ACMD(do_majinmorph);
ACMD(do_janemba);
ACMD(do_clanlist);
ACMD(do_clanjoin);
ACMD(do_clanresign);
ACMD(do_rlist);
ACMD(do_mlist);
ACMD(do_olist);
ACMD(do_whois);
ACMD(do_mutate);
ACMD(do_shadow);
ACMD(do_augment);
ACMD(do_reincarnate);
ACMD(do_lp);
ACMD(do_potential);
ACMD(do_majinize);
ACMD(do_majinyes);
ACMD(do_mindread);
ACMD(do_skanassan);
ACMD(do_training);
ACMD(do_scouter);
ACMD(do_clan);
ACMD(do_race);
ACMD(do_roleplay);
ACMD(do_roleplay)
{
struct descriptor_data *pt;
skip_spaces(&argument);
delete_doubledollar(argument);
for (pt = descriptor_list; pt; pt = pt->next){
if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
if (!*argument) {
send_to_char("What do you want to say on your race channel???\r\n", ch);
return;
}
if (GET_MAX_HIT(ch) <= 999) {
send_to_char("You must be at least 1k powerlevel to use this channel.", ch);
return;
}
if (PLR_FLAGGED(ch, PLR_NOSHOUT)) {
send_to_char("You can't use this channel when muted!\r\n", ch);
return;
}
if (!PRF_FLAGGED(ch, PRF_QUEST)) {
send_to_char("You need to type rp to join the channel first!", ch);
return;
}
if (PRF_FLAGGED(ch, PRF_NOGOSS)) {
send_to_char("You have no roleplay turned on!", ch);
return;
}
else {
sprintf(buf, "&15%s &16(&14Roleplay&16)&00&07's, '&15%s&00&07'&00\r\n", GET_NAME(ch), argument);
if (PRF_FLAGGED(pt->character, PRF_QUEST) && !PRF_FLAGGED(pt->character, PRF_NOGOSS) && GET_NAME(pt->character) != GET_NAME(ch)) {
send_to_char(buf, pt->character);
}
}
}
}
sprintf(buf1, "&15You &16(&14Roleplay&16)&00&07's, '&15%s&00&07'&00\r\n", argument);
send_to_char(buf1, ch);
GET_ADD(ch) += 1;
}
ACMD(do_race)
{
struct descriptor_data *pt;
skip_spaces(&argument);
delete_doubledollar(argument);
for (pt = descriptor_list; pt; pt = pt->next){
if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
if (!*argument) {
send_to_char("What do you want to say on your race channel???\r\n", ch);
return;
}
if (GET_MAX_HIT(ch) <= 999) {
send_to_char("You must be at least 1k powerlevel to use this channel.", ch);
return;
}
if (PLR_FLAGGED(ch, PLR_NOSHOUT)) {
send_to_char("You can't use this channel when muted!\r\n", ch);
return;
}
else {
sprintf(buf, "&14%s &16(&09race&16)&00&07's, '&15%s&00&07'&00\r\n", GET_NAME(ch), argument);
if (GET_CLASS(pt->character) == GET_CLASS(ch) && GET_NAME(pt->character) != GET_NAME(ch)) {
send_to_char(buf, pt->character);
}
}
}
}
sprintf(buf1, "&15You &16(&09race&16)&00&07's, '&15%s&00&07'&00\r\n", argument);
send_to_char(buf1, ch);
GET_ADD(ch) += 1;
}
ACMD(do_clan)
{
struct descriptor_data *pt;
skip_spaces(&argument);
delete_doubledollar(argument);
for (pt = descriptor_list; pt; pt = pt->next){
if (STATE(pt) == CON_PLAYING && pt->character && !IS_NPC(pt->character)){
if (GET_CLAN(ch) <= 0) {
send_to_char("You do not have a clan scouter\r\n", ch);
return;
}
if (!*argument) {
send_to_char("What do you want to say on your clan channel???\r\n", ch);
return;
}
else {
sprintf(buf, "&14%s &16(&12clan&16)&00&07's, '&10%s&00&07'&00\r\n", GET_NAME(ch), argument);
if (GET_CLAN(pt->character) == GET_CLAN(ch) && GET_NAME(pt->character) != GET_NAME(ch)) {
send_to_char(buf, pt->character);
}
}
}
}
sprintf(buf1, "&15You &16(&12clan&16)&00&07's, '&10%s&00&07'&00\r\n", argument);
send_to_char(buf1, ch);
}
ACMD(do_scouter) {
struct char_data * vict;
one_argument(argument, arg);
if (!GET_EQ(ch, WEAR_SHIELD)) {
send_to_char("You need to wear a scouter to scout someone's power.\r\n", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Scout who's power?\r\n", ch);
return;
}
else {
act("&10 _____________________ &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10//&20 &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20 &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20 &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20&09Loading&16... &10 &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20 &00", FALSE, ch, 0, vict, TO_CHAR);
act("&10|]&20____________________&00 ", FALSE, ch, 0, vict, TO_CHAR);
act("&09...................... []&00", FALSE, ch, 0, vict, TO_CHAR);
sprintf(buf, "&10PL&15: &11%d&15&00\r\n", GET_HIT(vict));
send_to_char(buf, ch);
sprintf(buf, "&10Ki&15: &11%d&15&00\r\n", GET_MANA(vict));
send_to_char(buf, ch);
if (!IS_NPC(vict)) {
sprintf(buf, "&10Str&15: &11%d&15&00\r\n", GET_STR(vict));
send_to_char(buf, ch);
sprintf(buf, "&10Con&15: &11%d&15&00\r\n", GET_CON(vict));
send_to_char(buf, ch);
sprintf(buf, "&10Int&15: &11%d&15&00\r\n", GET_INT(vict));
send_to_char(buf, ch);
sprintf(buf, "&10Wis&15: &11%d&15&00\r\n", GET_WIS(vict));
send_to_char(buf, ch);
sprintf(buf, "&10Dex&15: &11%d&15&00\r\n", GET_DEX(vict));
send_to_char(buf, ch);
sprintf(buf, "&10Speed&15: &11%d&15&00\r\n", GET_RAGE(vict));
send_to_char(buf, ch);
}
act("&14$n&15 points their scouter at you, and pushes a button.&00\r\n", FALSE, ch, 0, vict, TO_VICT);
act("&14$n&15 points their scouter at &09$N&15 and pushes a button.&00\r\n", FALSE, ch, 0, vict, TO_NOTVICT);
}
}
ACMD(do_skanassan)
{
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
WAIT_STATE(ch, PULSE_VIOLENCE * .5);
if ((!IS_KANASSAN(ch)))
{
act("&15You're not a Kanassan&11!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act("&10o&12---------------&11[&14Super Kanassan &09Forms&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &15Stage Powerlevel Req.", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Skanassan first &121000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Skanassan second &1222000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&10o&12---------------&11[&14Super Kanassan &09forms&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && !PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*---------------------------------- Reverting --------------------------------------*/
if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans2)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(34000000, 34000000);
MAX_MANA = number(34000000, 34000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &16SKanassan&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &16SKanassan&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans1)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(4000000, 4000000);
MAX_MANA = number(4000000, 4000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &14SKanassan&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &14SKanassan&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) <= 999999) {
act("&15You do not have the power to attain that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) > 999999) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(4000000, 4000000);
MAX_MANA = number(4000000, 4000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&15The area around you begins to &00&03q&16u&15a&00&03k&16e&15, the &00&02e&10a&11r&00&03t&00&02h&15 cracking beneath your feet. You feel your &11a&00&03u&15r&00a&15 explode from your body as if it were part of you. Chunks of &00&03s&16t&15o&00n&03e&15 and rocks float into the air, surrounding your body as a great rushing as heard. Your &14s&00&06c&16al&00&06e&14s&15 begin to grow hard, lengthening and turning a &12d&00&04a&16r&15k &00&02g&10r&15e&10e&00&02n&15 shade. &14W&12a&00&06t&12e&14r&15 begins exploding from the cracks around you as your aura turns into a hazy teal color. You have achieved &11S&00&03u&15p&00&03e&11r &12K&00&04a&00&06n&14as&00&06s&00&04a&12n &16F&15i&00r&14s&00&06t&15!&00", FALSE, ch, 0, 0, TO_CHAR);
act("&15The area around you begins to &00&03q&16u&15a&00&03k&16e&15, the &00&02e&10a&11r&00&03t&00&02h&15 cracking beneath your feet. Chunks of &00&03s&16t&15o&00n&03e&15 and rocks float into the air, surrounding your body as a great rushing as heard. $n&15's &14s&00&06c&16al&00&06e&14s&15 begin to grow hard, lengthening and turning a &12d&00&04a&16r&15k &00&02g&10r&15e&10e&00&02n&15 shade. &14W&12a&00&06t&12e&14r&15 begins exploding from the cracks around $n&15's as thier aura turns into a hazy teal color. They have achieved &11S&00&03u&15p&00&03e&11r &12K&00&04a&00&06n&14as&00&06s&00&04a&12n &16F&15i&00r&14s&00&06t&15!&00", FALSE, ch, 0, 0, TO_ROOM);
}
if (!str_cmp(arg,"second") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15Your already in that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 1000000 <= 24000000) {
act("&15You do nthe power to attain that form of &16SKanassan!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 1000000 >= 24000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(30000000, 30000000);
MAX_MANA = number(30000000, 30000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&15Your body screams in &11p&09a&00&01i&03n&15, sending you to your knees. Your &14s&00&06c&16al&00&06e&14s&15 lengthen and sharpen, while turning a dark o&16ny&15x shade. Your &14s&00&06c&16al&00&06e&14s&15 turn hard, like armor plating, as the ground beneath you begins to &00&03q&16u&15a&00&03k&16e&15. The ground breaks away as you stand, a large, sharp &10f&00&06i&10n&15 exploding from your back as a &00g&14e&00&06ys&14e&00r&15 of &14w&12a&00&06t&12e&14r&15 surrounds you, crackling with &16b&15l&00a&16c&15k &00el&15e&11c&00&03tri&11c&15i&00ty&15. You have achieved &11S&00&03u&15p&00&03e&11r &12K&00&04a&00&06n&14as&00&06s&00&04a&12n &10S&00&02e&00&06co&00&02n&10d&15!&00", FALSE, ch, 0, 0, TO_CHAR);
act("&15$n&15's body starts to crackle with &00e&14n&00&06er&14g&00y&15, a scream escaping them as they fall to there knees. You notice there scales change and grow, turning a dark shade. The scales turn shiny as the ground begins to shake beneath your feet. As $n begins to stand, the ground breaks away around them and a massive &00g&14e&00&06ys&14e&00r&15 of &14w&12a&00&06t&12e&14r&15 explodes from the ground, crackling with &16b&15l&00a&16c&15k &00el&15e&11c&00&03tri&11c&15i&00ty&15. They have achieved &11S&00&03u&15p&00&03e&11r &12K&00&04a&00&06n&14as&00&06s&00&04a&12n &10S&00&02e&00&06co&00&02n&10d&15!&00", FALSE, ch, 0, 0, TO_ROOM);
return;
}
}
ACMD(do_training) {
one_argument(argument, arg);
if (!*argument) {
send_to_char("&15Training Flags you on who so people know you are training and do not wish to be bothered.\r\n&11Syntax&16: &15training &00&06(&14yes&00&06/&14no&00&06)&00\r\n", ch);
return;
}
if (!IS_NPC(ch)) {
if (!str_cmp(arg,"yes") && !PRF_FLAGGED(ch, PRF_TRAINING)) {
send_to_char("&15You announce you are ready to train hard!&00", ch);
SET_BIT(PRF_FLAGS(ch), PRF_TRAINING);
return;
}
else if (!str_cmp(arg,"no") && PRF_FLAGGED(ch, PRF_TRAINING)) {
send_to_char("&15You remove the training flag.&00", ch);
REMOVE_BIT(PRF_FLAGS(ch), PRF_TRAINING);
return;
}
}
}
ACMD(do_mindread)
{
struct char_data * vict;
if (!GET_SKILL(ch, SKILL_MINDREAD)) {
send_to_char("You don't know how to do that!\r\n", ch);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 30) {
send_to_char("&15Not enough mana to mind read right now....&00", ch);
return;
}
one_argument(argument, arg);
if (!*argument) {
send_to_char("&15You need to target a player to mindread.", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Read whom's mind?\r\n", ch);
return;
}
else
if (vict == ch) {
send_to_char("Just type score for yourself....\r\n", ch);
return;
}
if (IS_KAI(vict)) {
send_to_char("You can't read a kai.\r\n", ch);
return;
}
if (IS_NPC(vict)) {
send_to_char("You can not use that on mobiles!", ch);
return;
}
if (GET_INT(vict) >= GET_INT(ch) * 2) {
sprintf(buf2, "&14%s &15just read your mind, and you managed a glimpse into their's.&00\r\n", GET_NAME(ch));
sprintf(buf1, "&11Gold&15: &15%d &16| &10Lp&15: %d &16| &12Intelligence&15: %d &16| &09Constitution&15: %d &16| &14Wisdom&15: %d&00\r\n", GET_GOLD(ch), GET_PRACTICES(ch), GET_INT(ch), GET_CON(ch), GET_WIS(ch));
send_to_char(buf2, vict);
send_to_char(buf1, vict);
}
else if (GET_INT(vict) >= GET_INT(ch) && GET_INT(vict) < GET_INT(ch) * 2) {
sprintf(buf1, "&14%s &15just read your mind....&00\r\n", GET_NAME(ch));
send_to_char(buf1, vict);
}
else if (GET_INT(vict) < GET_INT(ch) && GET_INT(vict) >= GET_INT(ch) / 2) {
send_to_char("&15Someone just read your mind.&00\r\n", vict);
}
sprintf(buf," &16[&14Information for&16:&00 &15%s&16]&00\r\n", GET_NAME(vict));
sprintf(buf, "%s&15o&00&06=------------------------------------------------------------=&15o&00\r\n", buf); sprintf(buf, "%s&00&06|&10Race:&00 %s \r\n&00&06|&10Sex: &00 ", buf,
CLASS_ABBR(vict));
switch (GET_SEX(vict)) {
case SEX_MALE: strcat(buf, "&12Male&00\r\n"); break;
case SEX_FEMALE: strcat(buf, "&13Female&00\r\n"); break;
case SEX_NEUTRAL: strcat(buf, "&10Neutral&00\r\n"); break;
}
if (GET_INT(ch) >= number(1, 40)) {
sprintf(buf, "%s&00&06|&10Powerlevel&15: &15%d&12/&15%d&00\r\n", buf, GET_HIT(vict), GET_MAX_HIT(vict));
sprintf(buf, "%s&00&06|&10Ki&15: &15%d&12/&15%d&00\r\n", buf, GET_MANA(vict), GET_MAX_MANA(vict));
if (IS_Namek(vict) || IS_KAI(vict) || IS_MAJIN(vict)) {
sprintf(buf, "%s&00&06|&14Spirit&15: &15%d&12/&1520000&00\r\n", buf, GET_HOME(vict));
}
}
sprintf(buf, "%s&00&06|&00&06=------------------------------------------------------------=&15o&00\r\n", buf);
if (GET_INT(ch) >= number(1, 50)) {
sprintf(buf, "%s&00&06|&12Strength&15: &00 &16[&15%d&16]&00 &12Dexterity&15: &00 &16[&15%d&16]&00\r\n", buf, GET_STR(vict), GET_DEX(vict));
sprintf(buf, "%s&00&06|&12Upper Body Strength&15:&00 &16[&15%d&16]&00 &12Constitution&15: &00 &16[&15%d&16]&00\r\n", buf, GET_UBS(vict), GET_CON(vict));
sprintf(buf, "%s&00&06|&12Lower Body Strength&15:&00 &16[&15%d&16]&00 &12Hitroll&15: &00 &16[&15%d&16]&00\r\n", buf, GET_LBS(vict), (vict)->points.hitroll);
if (GET_WIS(vict) >= 100)
sprintf(buf, "%s&00&06|&12Wisdom&15:&00 &16[&15%d&16]&00 &12Damroll&15: &00 &16[&15%d&16]&00\r\n", buf, GET_WIS(vict), (vict)->points.damroll);
else
sprintf(buf, "%s&00&06|&12Wisdom&15:&00 &16[&15%d&16]&00 &12Damroll&15: &00 &16[&15%d&16]&00\r\n", buf, GET_WIS(vict), (vict)->points.damroll);
if (GET_INT(vict) >= 100)
sprintf(buf, "%s&00&06|&12Intelligence&15:&00 &16[&15%d&16]&00 &12Speed&15: &00 &16[&15%d&16]&00\r\n", buf, GET_INT(vict), GET_RAGE(vict));
else
sprintf(buf, "%s&00&06|&12Intelligence&15:&00 &16[&15%d&16]&00 &12Speed&15: &00 &16[&15%d&16]&00\r\n", buf, GET_INT(vict), GET_RAGE(vict));
sprintf(buf, "%s&00&06|&12Age&15:&00 &16[&15%d&16]&00 &09PKs&15: &00 &16[&15%d&16]&00\r\n", buf, GET_AGE(vict), GET_HEIGHT(vict));
if (GET_CHA(vict) >= 100)
sprintf(buf, "%s&00&06|&12Intuition&15:&00 &16[&15%d&16]&00 &00&01P.Deaths&15: &00 &16[&15%d&16]&00\r\n", buf, GET_CHA(vict), GET_WEIGHT(vict));
else
sprintf(buf, "%s&00&06|&12Intuition&15:&00 &16[&15%d&16]&00 &00&01P.Deaths&15: &00 &16[&15%d&16]&00\r\n", buf, GET_CHA(vict), GET_WEIGHT(vict));
}
sprintf(buf, "%s&00&06|&00&06=------------------------------------------------------------=&15o&00\r\n", buf);
if (GET_INT(ch) >= number(1, 45)) {
sprintf(buf, "%s&00&06|&14Zenni Carried&15: &00 &16[&11%d&16]&00\r\n", buf, GET_GOLD(vict));
sprintf(buf, "%s&00&06|&14Zenni In bank&15: &00 &16[&11%d&16]&00\r\n", buf, GET_BANK_GOLD(vict));
sprintf(buf, "%s&00&06|&14Zenni Total&15: &00 &16[&11%d&16]&00\r\n", buf, GET_BANK_GOLD(vict) + GET_GOLD(vict));
sprintf(buf, "%s&00&06|&00&06Experience&15:&00 &16[&15%Ld&16]&00\r\n", buf, GET_EXP(vict));
sprintf(buf, "%s&00&06|&00&06Experience TNB&15:&00 &16[&15%Ld&16]&00\r\n", buf, GET_LEVEL(vict)*1600);
/*sprintf(buf, "%s&00&06|&10Reincarnations&15: &00 &16[&11%d&16]&00\r\n", buf,
GET_REINC(vict));*/
sprintf(buf, "%s&00&06|&12T&00&07r&00&06u&00&07t&12h &00&05Points&15:&00 &16[&15%d&16]&00 &12Learning &00&06Points&15: &00 &16[&11%d&16]&00\r\n", buf, GET_ALIGNMENT(vict), GET_PRACTICES(vict));
sprintf(buf, "%s&00&06|&14Years&15: &16[&15%d&16] &14Weeks&15:&16 [&15%d&16] &14Days&15:&16 [&15%d&16] &14Hours&15:&16 [&15%d&16] &14Minutes&15:&16 [&15%d&16]&00\r\n", buf, vict->player.time.played / 31536000, ((vict->player.time.played % 31536000) / 604800), ((vict->player.time.played % 604800) / 86400), ((vict->player.time.played % 86400) / 3600), ((vict->player.time.played % 3600) / 60));
}
sprintf(buf, "%s&15o&00&06=------------------------------------------------------------=&15o&00\r\n", buf);
GET_MANA(ch) -= GET_MAX_MANA(ch) / 30;
send_to_char(buf, ch);
}
ACMD(do_majinyes)
{
one_argument(argument, arg);
if (!*argument) {
send_to_char("&15Type allow yes to allow a majin to majinize you. Be careful though, once majinized there is no going back.&00", ch);
return;
}
if (!str_cmp(arg,"yes") && !PLR_FLAGGED(ch, PLR_MAJINIZE)) {
send_to_char("&15You now accept majinization!&00", ch);
REMOVE_BIT(PLR_FLAGS(ch), PLR_NOMAJIN);
return;
}
}
ACMD(do_majinize)
{
struct char_data * vict;
if (!GET_SKILL(ch, SKILL_MAJIN)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
one_argument(argument, arg);
if (!*argument) {
send_to_char("&15You need to target a player to majinize.", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Majinize who?\r\n", ch);
return;
}
else
if (vict == ch) {
send_to_char("No using it on yourself!\r\n", ch);
return;
}
if (GET_MAX_HIT(vict) < GET_MAX_HIT(ch) /10) {
send_to_char("They are too weak!", ch);
return;
}
if (PLR_FLAGGED(vict, PLR_NOMAJIN)) {
send_to_char("They are not set to accept majinizing right now.", ch);
return;
}
if (PLR_FLAGGED(vict, PLR_MAJINIZE)) {
send_to_char("They already are being boosted by a majin!", ch);
return;
}
if (IS_MAJIN(vict)) {
send_to_char("You can't majinize fellow majins!", ch);
return;
}
if (GET_HOME(ch) <= 999) {
send_to_char("You do not have enough spirit to majinize!", ch);
return;
}
if (GET_HOME(ch) >= 1000) {
act("&15You grin as you hold your hands out towards &14$N&15, &00&05dark &10energy &15flows from your hands and courses through &14$N's &15body. After a moment an &13M&15 appears on their forhead as their power is boosted by your own.&00", FALSE, ch, 0, vict, TO_CHAR);
act("&14$n &15grins as $e holds $s hands out towards &14$N&15, &00&05dark &10energy &15flows from $n's hands and courses through &10$N's &15body. After a moment an &13M&15 appears on $N's forhead as their power is boosted by &14$n's&15 own.&00", FALSE, ch, 0, vict, TO_NOTVICT);
act("&14$n &15grins as $e holds $s hands out towards you&15, &00&05dark &10energy &15flows from $n's hands and courses through your &15body. After a moment an &13M&15 appears on your forhead as your power is boosted by &14$n's&15 own.&00", FALSE, ch, 0, vict, TO_VICT);
SET_BIT(PLR_FLAGS(vict), PLR_MAJINIZE);
GET_MAX_HIT(vict) += (GET_MAX_HIT(ch) / 100) * 5;
GET_HOME(ch) -= 1000;
sprintf(buf, "&16[&13Majinize &14boost&11: &15%d&16]&00", (GET_MAX_HIT(ch) / 100) * 5);
send_to_char(buf, vict);
return;
}
}
ACMD(do_potential)
{
struct char_data * vict;
if (!GET_SKILL(ch, SKILL_POTENTIAL)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
one_argument(argument, arg);
if (!*argument) {
send_to_char("&15You need to target a player to increase.", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Raise who's power?\r\n", ch);
return;
}
else
if (vict == ch) {
send_to_char("No using it on yourself!\r\n", ch);
return;
}
if (GET_MAX_HIT(vict) < GET_MAX_HIT(ch) /10) {
send_to_char("They are too weak!", ch);
return;
}
if (PLR_FLAGGED(vict, PLR_MAJINIZE)) {
send_to_char("You can't release the potential of a majinized person!", ch);
return;
}
if (IS_ANDROID(vict)) {
send_to_char("You can't release the potential of a artificial being!", ch);
return;
}
if (GET_HOME(ch) <= 999) {
send_to_char("You do not have enough spirit to use this technique! You need at least 1000 spirit per increase", ch);
return;
}
if (GET_MAX_HIT(vict) <= 1999999) {
send_to_char("They need to grow past 2mil powerlevel before their potential can be released.....\r\n", ch);
return;
}
if (GET_HOME(ch) >= 1000 && GET_MAX_HIT(vict) >= 2000000) {
act("&15You place your hand on &14$N's &15head, suddenly as you concentrate a beam of light invelopes them. Moments later their newly released power rushes outward.", FALSE, ch, 0, vict, TO_CHAR);
act("&14$n &15places $s hand on &14$N's &15head, suddenly as $e concentrates a beam of light invelopes $n. Moments later their newly released power rushes outward.", FALSE, ch, 0, vict, TO_NOTVICT);
act("&14$n &15places $s hand on your head, suddenly as $e concentrates a beam of light invelopes you. Moments later your newly released power rushes outward.", FALSE, ch, 0, vict, TO_VICT);
sprintf(buf, "&16[&14Potential &10Release&11: &09Pl&11: &15%d &12Ki&11: &15%d&16]", GET_MAX_HIT(ch) / 100, GET_MAX_MANA(ch) / 100);
send_to_char(buf, vict);
GET_MAX_HIT(vict) += GET_MAX_HIT(ch) / 100;
GET_MAX_MANA(vict) += GET_MAX_MANA(ch) / 100;
GET_HOME(ch) -= 1000;
return;
}
}
/*ACMD(do_reincarnate)
{
if (GET_LEVEL(ch) >= 1000000) {
send_to_char("You are an immortal dumbass! No reincarnating!\n", ch);
return;
}
if (IS_saiyan(ch)) {
send_to_char("Yeah right, don't make us take away your saiyan, ass.\n", ch);
return;
}
one_argument(argument, arg);
if (PLR_FLAGGED(ch, PLR_trans1) || PRF_FLAGGED(ch, PRF_MYSTIC2)) {
act("&15You can't reincarnate while in a transformation!!&00\n", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!*argument) {
send_to_char("&15Choose carefully, and type reincarnate plus the race you wish to be. Once you\rdecide, that will be that, no going back.&00\n", ch);
return;
}
if (GET_GOLD(ch) <= 1999999) {
act("&15You need 2000000 zenni before the gods will hear your plea for reincarnation!&00\n", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"human") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_Human;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a\r %s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"namek") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_Namek;
GET_SEX(ch) = SEX_NEUTRAL;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"truffle") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_TRUFFLE;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"kai") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_KAI;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"konatsu") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_KONATSU;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"mutant") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_MUTANT;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"demon") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_demon;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"bioandroid") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_CLASS(ch) = CLASS_BIODROID;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"halfbreed") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_HALF_BREED;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"android") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_ANDROID;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"majin") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_MAJIN;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
if (!str_cmp(arg,"icer") && GET_GOLD(ch) >= 2000000) {
send_to_char("&15You feel strange as you are immersed in &00&07light&15!\n", ch);
GET_PRACTICES(ch) = 0;
if (GET_WIS(ch) >= 25) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 7;
}
else if (GET_WIS(ch) >= 20) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 5;
}
else if (GET_WIS(ch) >= 15) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 3;
}
else if (GET_WIS(ch) >= 10) {
GET_PRACTICES(ch) = GET_LEVEL(ch) * 2;
}
if (PLR_FLAGGED(ch, PLR_MAJINIZE)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_MAJINIZE);
}
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / 4;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / 4;
GET_LEVEL(ch) = GET_LEVEL(ch) / 4;
GET_EXP(ch) = GET_EXP(ch) / 4;
GET_GOLD(ch) -= 2000000;
GET_REINC(ch) += 1;
GET_CLASS(ch) = CLASS_icer;
act("&14$n &15is suddenly surrounded by &11bright &00&07light&15, when the light disappears they are gone!&00\n", FALSE, ch, 0, 0, TO_NOTVICT);
sprintf(buf, "&16[&11Reincarnation&16] &15The gods listened to &14%s &15and have reincarnated them into a \r%s&00\n", GET_NAME(ch), CLASS_ABBR(ch));
char_from_room(ch);
char_to_room(ch, r_death_start_room);
send_to_all(buf);
look_at_room(ch, 0);
return;
}
}*/
ACMD(do_lp)
{
int add_num = 0;
one_argument(argument, arg);
add_num += number(GET_CHA(ch) * 100, GET_CHA(ch) * 300);
if (!*arg) {
sprintf(buf1, "&11Syntax&10: &15lp &16<&09power&16/&14spirit&16>&15. Upgrades Max pl or ki. &11100 &16= &15Between &11%d &15and&11 %d &09pl&16/&14ki&00\r\n", GET_CHA(ch) * 100, GET_CHA(ch) * 300);
send_to_char(buf1, ch);
return;
}
if (!str_cmp(arg, "power") && GET_PRACTICES(ch) <= 99) {
act("&15You do not have enough &00&07knowledge&15 to train that&11.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg, "spirit") && GET_PRACTICES(ch) <= 99) {
act("&15You do not have enough &00&07knowledge&15 to train that&11.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg, "power") && GET_PRACTICES(ch) >= 100) {
sprintf(buf, "&15You exchange &11100 &15of your &10gained &00&07knowledge&15 for &09strength&11!\r\n&16[&10%d&16]&00\r\n", add_num);
GET_PRACTICES(ch) = GET_PRACTICES(ch) - 100;
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + add_num;
send_to_char(buf, ch);
return;
}
if (!str_cmp(arg, "spirit") && GET_PRACTICES(ch) >= 100) {
sprintf(buf, "&15You exchange &11100 &15of your &10gained &00&07knowledge&15 for &14spirit&11!\r\n&16[&10%d&16]&00\r\n", add_num);
GET_PRACTICES(ch) = GET_PRACTICES(ch) - 100;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + add_num;
send_to_char(buf, ch);
return;
}
}
ACMD(do_shadow)
{
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
if ((!IS_KONATSU(ch)))
{
act("&15You're not a Konatsu&11!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act("&10o&12---------------&11[&16Shadow &09Forms&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &15Stage Powerlevel Req.", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Shade &123000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Shadow &1220000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&10o&12---------------&11[&16Shadow &09forms&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"shadow") && !PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*---------------------------------- Reverting --------------------------------------*/
if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans2)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(30000000, 30000000);
MAX_MANA = number(30000000, 30000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &16Shadow&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &16Shadow&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans1)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(10000000, 10000000);
MAX_MANA = number(10000000, 10000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &16Shadow&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &16Shadow&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"shade") && PLR_FLAGGED(ch, PLR_trans1)) {
act("&15Your already in that form of &16Shadow!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"shade") && GET_MAX_HIT(ch) <= 2999999) {
act("&15You do not have the power to attain that form of &16Shadow!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"shade") && GET_MAX_HIT(ch) >= 2999999) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(10000000, 10000000);
MAX_MANA = number(10000000, 10000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n's &15body begins to phase out of the material plane briefly&11, &15just before streaks of &00&07white &15and &16black&15 move up and down their entire body in &09E&00&01R&09R&00&01A&00&01T&09I&00&01C&15 patterns just before a &00&04d&12a&14r&00&06k &14aura &00&07bursts&15 up around their body as they reach &16Shadow &15S&16h&00&07a&15d&16e &10form&11!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11Your &15body begins to phase out of the material plane briefly&11, &15just before streaks of &00&07white &15and &16black&15 move up and down your entire body in &09E&00&01R&09R&00&01A&00&01T&09I&00&01C&15 patterns just before a &00&04d&12a&14r&00&06k &14aura &00&07bursts&15 up around your body as you reach &16Shadow &15S&16h&00&07a&15d&16e &10form&11!&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"shadow") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15Your already in that form of &16Shadow!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"shadow") && GET_MAX_HIT(ch) - 2999999 <= 20000000) {
act("&15You do not have the power to attain that form of &16Shadow!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"shadow") && GET_MAX_HIT(ch) - 2999999 >= 20000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(20000000, 20000000);
MAX_MANA = number(20000000, 20000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 disappears instantly leaving a &00&04d&12a&14r&00&06k &10f&00&02or&10m&15 in their wake&11.&15 Lightning of &00&04da&12rk&14ne&00&06ss&15 &14crackles&15 around where their shadowy form now resides&11.&15 Looking at their new form is a strain on the &14e&00&07ye&14s &15of the viewers&11, &15the edges of &11$n&00&07'&15s body blurred to an &16i&09n&00&01sa&09n&16e &15point, as they have attained the &16Shadow &10form &09T&00&01R&09U&00&01E &16S&15h&00&07ad&15o&16w&11!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11&11You&15 disappear instantly leaving a &00&04d&12a&14r&00&06k &10f&00&02or&10m&15 in your wake&11.&15 Lightning of &00&04da&12rk&14ne&00&06ss&15 &14crackles&15 around where your shadowy form now resides&11.&15 Looking at your new form is a strain on the &14e&00&07ye&14s &15of the viewers&11, &15the edges of &11your&15 body blurred to an &16i&09n&00&01sa&09n&16e &15point, as you have attained the &16Shadow &10form &09T&00&01R&09U&00&01E &16S&15h&00&07ad&15o&16w&11!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
}
ACMD(do_augment)
{
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
WAIT_STATE(ch, PULSE_VIOLENCE * .5);
if ((!IS_TRUFFLE(ch)))
{
act("&15You're not a truffle&11!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act("&10o&12---------------&11[&09Augmentation&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &15Stage Powerlevel Req.", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Alpha &141000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Beta &1415000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Infusion &1430000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &12Syntax: augment (type)&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&10o&12---------------&11[&09Augmentation&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*-------------------------------- Augmentation -----------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"alpha") && PLR_FLAGGED(ch, PLR_trans1)) {
act("&15Your already have that augmentation implanted!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"alpha") && GET_MAX_HIT(ch) <= 999999) {
act("&15You do not have the power to handle that augmentation without dieing!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"alpha") && GET_MAX_HIT(ch) >= 999999) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(2000000, 2000000);
MAX_MANA = number(2000000, 2000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n &15sits down as they pull out a &12m&00&04e&12d&00&04i&12c&00&04a&12l &00&01k&09i&00&01t&11, &15and begins to make inscisions along their arms and legs&11!&15 $n then installs their &00&07Alpha &10implants&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11You &15sit down while pulling out a &12m&00&04e&12d&00&04i&12c&00&04a&12l &00&01k&09i&00&01t&11, &15and begin to make inscisions along your arms and legs&11!&15 You then install your &00&07Alpha &10implants&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"beta") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15Your already have that augmentation installed!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"beta") && GET_MAX_HIT(ch) - 999999 <= 15000000) {
act("&15You do not have the power for that augmentation without dieing!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"beta") && GET_MAX_HIT(ch) - 999999 >= 15000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(15000000, 15000000);
MAX_MANA = number(15000000, 15000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n &15sits down as they pull out a &12m&00&04e&12d&00&04i&12c&00&04a&12l &00&01k&09i&00&01t&11, &15and begins to make inscisions along their arms and legs&11!&15 $n then installs their &00&06Beta &10implants&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11You &15sit down while pulling out a &12m&00&04e&12d&00&04i&12c&00&04a&12l &00&01k&09i&00&01t&11, &15and begin to make inscisions along your arms and legs&11!&15 You then install your &00&06Beta &10implants&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"infusion") && PLR_FLAGGED(ch, PLR_trans3)) {
act("&15Your already have that augmentation installed!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"infusion") && GET_MAX_HIT(ch) - 16999999 <= 30000000) {
act("&15You do not have the power for that augmentation without dieing!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"infusion") && GET_MAX_HIT(ch) - 16999999 >= 30000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans3);
MAX_HIT = number(22000000, 22000000);
MAX_MANA = number(22000000, 22000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n &15sits down as they pull out a &12m&00&04e&12d&00&04i&12c&00&04a&12l &00&01k&09i&00&01t&11, &15and begins to make inscisions along their arms and legs&11!&15 $n then installs their &00&02I&10n&00&02f&10u&00&02s&10i&00&02o&10n &12implants&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11You &15sit down while pulling out a &12m&00&04e&12d&00&04i&12c&00&04a&12l &00&01k&09i&00&01t&11, &15and begin to make inscisions along your arms and legs&11!&15 You then install your &00&02I&10n&00&02f&10u&00&02s&10i&00&02o&10n &12implants&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
}
ACMD(do_mutate)
{
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
WAIT_STATE(ch, PULSE_VIOLENCE * .5);
if ((!IS_MUTANT(ch)))
{
act("&15You're not a mutant&11!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act("&10o&12---------------&11[&09Mutate&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &15Stage Powerlevel Req.", TRUE, ch, 0, 0, TO_CHAR);
act(" &10First &121000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10Second &1215000000&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&10o&12---------------&11[&09Mutate&11]&12---------------&10o&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && !PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*---------------------------------- Reverting --------------------------------------*/
if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans2)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(33000000, 33000000);
MAX_MANA = number(33000000, 33000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &09Mutation&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Mutation&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg, "revert") && PLR_FLAGGED(ch, PLR_trans1)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(3000000, 3000000);
MAX_MANA = number(3000000, 3000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &09Mutation&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Mutation&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ Mutate -----------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"first") && PLR_FLAGGED(ch, PLR_trans1)) {
act("&15Your already in that form of mutation!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) <= 999999) {
act("&15You do not have the power to attain that form of mutation!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) >= 999999) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(3000000, 3000000);
MAX_MANA = number(3000000, 3000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n's &15skin begins to harden as their muscles expand, their face begins to take on a &00&01ugly&15 appearance as &10claws&15 grow out of their fingers. Finally their eyes glow &09r&00&01e&09d&15 as their mutation finishes it's work&11!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11Your &15skin begins to harden as your muscles expand, your face begins to take on a &00&01ugly&15 appearance as &10claws&15 grow out of your fingers. Finally your eyes glow &09r&00&01e&09d&15 as their mutation finishes it's work&11!&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"second") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15Your already in that form of Mutation!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 2999999 <= 15000000) {
act("&15You do not have the power to attain that form of Mutation!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 2999999 >= 15000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(30000000, 30000000);
MAX_MANA = number(30000000, 30000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n &16bends over as &13dark&16 energy flows about them&11!&16 Their muscles bulge uncontrollable, showing sickening detail of their muscle structure as their &10claws&16 grow longer and sharper&11!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&11You &16bend over as &13dark&16 energy flows about you&11!&16 Your muscles bulge uncontrollably, showing sickening detail of your muscle structure as your &10claws&16 grow longer and sharper&11!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
}
ACMD(do_janemba)
{
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
WAIT_STATE(ch, PULSE_VIOLENCE * .5);
if ((!IS_demon(ch)))
{
act("You're not a Demon!", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act(" &10o&12_&09-------------------------&12_&10o&00\r\n &09| &11 Jamemba Forms&00 &09|&00\r\n &10o&12_&09-------------------------&12_&10o&00\r\n &09|&10You can do the following:&09|&00\r\n &09|&09-------------------------&09|&00\r\n &09|&15Stage: Power Level Req.:&09|&00 ", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10First &14800000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Second &145000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Third &1410000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Fourth &1425000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10o&12_&09-------------------------&12_&10o&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10All PL Req. go off base pl.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*------------------ Checks to see if already in that stage if evil -----------------*/
if (!str_cmp(arg,"second") && !PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"third") && !PLR_FLAGGED(ch, PLR_trans2)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && !PLR_FLAGGED(ch, PLR_trans3)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*---------------------------------- Reverting --------------------------------------*/
if (!str_cmp(arg,"revert") && PLR_FLAGGED(ch, PLR_trans4)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans3);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans4);
MAX_HIT = number(35250000, 35250000);
MAX_MANA = number(35250000, 35250000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!str_cmp(arg,"revert") && PLR_FLAGGED(ch, PLR_trans3)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans3);
MAX_HIT = number(15250000, 15250000);
MAX_MANA = number(15250000, 15250000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!str_cmp(arg,"revert") && PLR_FLAGGED(ch, PLR_trans2)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(5250000, 5250000);
MAX_MANA = number(5250000, 5250000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!str_cmp(arg,"revert") && PLR_FLAGGED(ch, PLR_trans1)) {
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(1250000, 1250000);
MAX_MANA = number(1250000, 1250000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) - MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) - MAX_MANA;
act("&15$n reverts from $s form of &09Janeba&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Janemba&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ Evil 1 -----------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"first") && PLR_FLAGGED(ch, PLR_trans1)) {
act("&15Your already in that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) <= 800000) {
act("&15You do not have the power to attain that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_MAX_HIT(ch) >= 800000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(1250000, 1250000);
MAX_MANA = number(1250000, 1250000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&16$n starts to growl a little, a faint &09red &00&01pulse&16 eminating from them. A flickering &09f&00&01lam&09e&16 glows from underneath their chest, growing from within. &00&03H&11ea&00&03t&16 &16w&15ave&16s start to gradually rise from their skin, the area around them growing hotter. The pulse eventually fades, leaving $n with new &09p&16o&09w&16e&09r&16.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&16You growl as you feel a slight burn in your chest. The burn increases and grows, &11S&00&03ea&01rin&09g&16 you from the inside. The incredible &00&01h&11e&00&03a&09t&16 drives your every fiber, increasing your speed and strength to a completely new level, your &09I&00&01nn&09er&00&01f&03i&01re&16 giving you all new &09p&16o&09w&16e&09r&16.", TRUE, ch, 0, 0, TO_CHAR); return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ Evil 2 -----------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"second") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15Your already in that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 1249999 <= 5000000) {
act("&15You do not have the power to attain that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_MAX_HIT(ch) - 1249999 >= 5000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(4000000, 4000000);
MAX_MANA = number(4000000, 4000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&16$n roars as they are suddenly encompassed in an &00&02a&16u&15r&00&02a&16 of radiating &00&03h&11ea&00&03t&16, a pulsing under their heart growing,pushing outward and expanding. The &00&03h&11ea&00&03t&16 &16w&15ave&16s flowing from them intensify as &00&07s&16m&15o&16k&00&07e&16 starts to wisp from the corners of their eyes. The heat waves flux and recede back inside, the &09p&16o&09w&16e&09r&16 suddenly filling them.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&16You start to feel a deep pulse beating undernearth your chest, the pressure causing you to roar out with pain. The pulse grows larger as the &09I&00&01nn&09er&00&01f&03i&01re&16 beats within you, &09b&00&03la&01z&03in&09g&16 with an all new power waiting to be unleashed. The &09f&00&01ire&09s&16 push against your skin, trying to &00&01e&16xp&15l&16od&00&01e&16 outward, driving you to all new heights of power.&00 ", TRUE, ch, 0, 0, TO_CHAR); return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ Evil 3 -----------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"third") && PLR_FLAGGED(ch, PLR_trans3)) {
act("&15Your already in that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"third") && GET_MAX_HIT(ch) - 5249999 <= 10000000) {
act("&15You do not have the power to attain that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"third") && GET_MAX_HIT(ch) - 5249999 >= 10000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans3);
MAX_HIT = number(10000000, 10000000);
MAX_MANA = number(10000000, 10000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&16$n grabs their head as the pulse spreads from their chest to their entire body, transforming itself into a flickering &09f&00&01lam&09e&16, the fire dancing beneath their skin causing &00&07s&16m&15o&16k&00&07e&16 to pour from their skin, shrouding them in waves of heat and haze. The &00&03h&11ea&00&03t&16 eventually recedes and two &09red&16 eyes, dancing with flames, piercethrough the shroud of smoke.&00 ", TRUE, ch, 0, 0, TO_ROOM);
act("&16 Your mind is filled with an enormous strain as the &09I&00&01nn&09er&00&01f&03i&01re&16 suddenly bursts through every nerve, filling your entire body with an enormous &09f&00&01lam&09e&16 of power, the fire within you feeding itself into your muscles, forcing them to suddenly &00&01e&16xp&15l&16od&00&01e&16 with new strength. The flames reach through your entire body, infusing it with energy and pain. The pain fades away, leaving behind only an all new source of &09p&16o&09w&16e&09r&16.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ Evil 4 -----------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"fourth") && PLR_FLAGGED(ch, PLR_trans4)) {
act("&15Your already in that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && GET_MAX_HIT(ch) - 15249999 <= 25000000) {
act("&15You do not have the power to attain that form of Janemba!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && GET_MAX_HIT(ch) - 15249999 >= 25000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans4);
MAX_HIT = number(20000000, 20000000);
MAX_MANA = number(20000000, 20000000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&00&01$n trembles as the &09I&00&01nn&09er&00&01f&03i&01re that had been contained within them for so long finally bursts from within, exploding outwards in a fury of &09I&00&01nf&16e&00&01rn&09o&00&01. Your body is suddenly enveloped in &11s&00&03ea&01rin&09g&00&01 heat as the true might of demons is unleashed from within them, the flames bursting from a new &16A&15v&00&01at&15a&16r&00&01 of &09H&00&01e&16ll.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&00&01A torrent of power suddenly erupts from your &09I&00&01nn&09er&00&01f&03i&01re, the raging &09I&00&01nf&16e&00&01rn&09o of &16P&09o&16w&09e&16r&00&01 bursting past all restrictions, &00&01ex&16pl&15o&16di&00&01ng out from your skin enshrouding your entire being in a raging dance of flames, the ultimate power of the demons infusing themselves into your very being as you become a true &16A&15v&00&01at&15a&16r&00&01 of &09H&00&01e&16ll. &00", TRUE, ch, 0, 0, TO_CHAR); return;
}
}
ACMD(do_quit)
{
sh_int save_room;
struct descriptor_data *d, *next_d;
if (IS_NPC(ch) || !ch->desc)
return;
if (AFF_FLAGGED(ch, AFF_MAJIN)) {
send_to_char("Your master won't let you.\r\n", ch);
return;
}
if (PLR_FLAGGED(ch, PLR_KILLER)) {
send_to_char("&15You can't quit till the challenge process is over&11!&00\r\n", ch);
return;
}
if (AFF_FLAGGED(ch, AFF_HALTED)) {
send_to_char("You can't!\r\n", ch);
return;
}
if (IS_SET(ROOM_FLAGS(ch->in_room), ROOM_ND))
{
send_to_char("You cannot quit in the next dimension.\r\n", ch);
return;
}
if (ROOM_FLAGGED(ch->in_room, ROOM_NOQUIT))
{
send_to_char("You cannot quit here!\r\n", ch);
return;
}
/*
* if (!IS_SET(ROOM_FLAGS(ch->in_room), ROOM_HOTEL))
* {
* send_to_char("You're not in a hotel!\r\n", ch);
* return;
* }
*/
if (GET_POS(ch) == POS_FIGHTING)
{
send_to_char("You cannot quit while fighting.\r\n", ch);
return;
}
if (PRF_FLAGGED(ch, PRF_OOZARU)) {
REMOVE_BIT(PRF_FLAGS(ch), PRF_OOZARU);
send_to_char("You revert to humanoid form before you leave..\r\n", ch);
GET_MAX_HIT(ch) -= 100000;
GET_MAX_MANA(ch) -= 100000;
}
if (subcmd != SCMD_QUIT && GET_LEVEL(ch) < LVL_IMMORT)
send_to_char("You have to type quit--no less, to quit!\r\n", ch);
else if (GET_POS(ch) == POS_FIGHTING)
send_to_char("No way! You're fighting for your life!\r\n", ch);
else if (GET_POS(ch) < POS_STUNNED) {
char_to_room(ch, 4500);
die(ch, NULL);
} else {
if (!GET_INVIS_LEV(ch))
act("$n has left the game.", TRUE, ch, 0, 0, TO_ROOM);
if (GET_LEVEL(ch) < LVL_IMMORT) {
sprintf(buf, "&16[&10Player Logout&16] &15%s has left &11Drag&12(&09*&12)&11n Ball - &16Shadow&00 &15Games&00\r\n",
GET_NAME(ch));
send_to_all(buf);
}
sprintf(buf, "%s has quit the game.", GET_NAME(ch));
mudlog(buf, NRM, MAX(LVL_IMMORT, GET_INVIS_LEV(ch)), TRUE);
send_to_char("Goodbye, friend.. Come back soon!\r\n", ch);
/*
* kill off all sockets connected to the same player as the one who is
* trying to quit. Helps to maintain sanity as well as prevent duping.
*/
for (d = descriptor_list; d; d = next_d) {
next_d = d->next;
if (d == ch->desc)
continue;
if (d->character && (GET_IDNUM(d->character) == GET_IDNUM(ch)))
STATE(d) = CON_DISCONNECT;
}
save_room = ch->in_room;
if (free_rent)
Crash_rentsave(ch, 0);
extract_char(ch); /* Char is saved in extract char */
/* If someone is quitting in their house, let them load back here */
if (ROOM_FLAGGED(save_room, ROOM_HOUSE))
save_char(ch, save_room);
}
}
ACMD(do_save)
{
if (IS_NPC(ch) || !ch->desc)
return;
/* Only tell the char we're saving if they actually typed "save" */
/*
* This prevents item duplication by two PC's using coordinated saves
* (or one PC with a house) and system crashes. Note that houses are
* still automatically saved without this enabled.
*/
if (auto_save) {
sprintf(buf, "&12Saving &14%s&12... &00&06Saved&12.\r\n", GET_NAME(ch));
if (GET_LEVEL(ch) <= 10) {
sprintf(buf + strlen(buf), "&10Make sure, &14%s&10, that you read help newbie, help mudrules, and help help!&00\r\n", GET_NAME(ch));
}
send_to_char(buf, ch);
save_char(ch, NOWHERE);
Crash_crashsave(ch);
if (ROOM_FLAGGED(ch->in_room, ROOM_HOUSE_CRASH))
House_crashsave(GET_ROOM_VNUM(IN_ROOM(ch)));
return;
}
}
/* generic function for commands which are normally overridden by
special procedures - i.e., shop commands, mail commands, etc. */
ACMD(do_not_here)
{
send_to_char("Sorry, but you cannot do that here!\r\n", ch);
}
ACMD(do_SWIFTNESS)
{
struct affected_type af;
byte percent;
if (!GET_SKILL(ch, SKILL_SWIFTNESS)) {
send_to_char("You don't know how to do that!\r\n", ch);
return;
}
send_to_char("You starts moving so fast you cannot be seen.\r\n", ch);
if (AFF_FLAGGED(ch, AFF_SWIFTNESS))
affect_from_char(ch, SKILL_SWIFTNESS);
percent = number(1, 101); /* 101% is a complete failure */
if (percent > GET_SKILL(ch, SKILL_SWIFTNESS) + dex_app_skill[GET_DEX(ch)].SWIFTNESS)
return;
af.type = SKILL_SWIFTNESS;
af.duration = 200;
af.modifier = 0;
af.location = APPLY_NONE;
af.bitvector = AFF_SWIFTNESS;
affect_to_char(ch, &af);
}
ACMD(do_hide)
{
byte percent;
send_to_char("You attempt to hide yourself.\r\n", ch);
if (AFF_FLAGGED(ch, AFF_HIDE))
REMOVE_BIT(AFF_FLAGS(ch), AFF_HIDE);
percent = number(1, 101); /* 101% is a complete failure */
if (percent > GET_SKILL(ch, SKILL_HIDE) + dex_app_skill[GET_DEX(ch)].hide)
return;
SET_BIT(AFF_FLAGS(ch), AFF_HIDE);
}
ACMD(do_mug)
{
struct char_data *vict;
struct obj_data *obj;
char vict_name[MAX_INPUT_LENGTH], obj_name[MAX_INPUT_LENGTH];
int percent, gold, eq_pos, pcsteal = 0, ohoh = 0;
if (!GET_SKILL(ch, SKILL_MUG)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
send_to_char("This room just has such a peaceful, easy feeling...\r\n", ch);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 20) {
send_to_char("Not enough ki to concentrate!", ch);
return;
}
argument = one_argument(argument, obj_name);
one_argument(argument, vict_name);
if (!(vict = get_char_room_vis(ch, vict_name))) {
send_to_char("Steal what from who?\r\n", ch);
return;
} else if (vict == ch) {
send_to_char("Come on now, that's rather stupid!\r\n", ch);
return;
}
/* 101% is a complete failure */
percent = number(1, 20);
if (GET_POS(vict) < POS_SLEEPING)
percent = -1; /* ALWAYS SUCCESS */
if (!pt_allowed && !IS_NPC(vict))
pcsteal = 1;
/* NO NO With Imp's and Shopkeepers, and if player thieving is not allowed */
if (GET_LEVEL(vict) >= LVL_IMMORT ||
GET_MOB_SPEC(vict) == shop_keeper || IS_NPC(vict))
percent = 101; /* Failure */
if (str_cmp(obj_name, "coins") && str_cmp(obj_name, "gold")) {
if (!(obj = get_obj_in_list_vis(vict, obj_name, vict->carrying))) {
for (eq_pos = 0; eq_pos < NUM_WEARS; eq_pos++)
if (GET_EQ(vict, eq_pos) &&
(isname(obj_name, GET_EQ(vict, eq_pos)->name)) &&
CAN_SEE_OBJ(ch, GET_EQ(vict, eq_pos))) {
obj = GET_EQ(vict, eq_pos);
break;
}
if (!obj) {
act("$E hasn't got that item.", FALSE, ch, 0, vict, TO_CHAR);
return;
} else { /* It is equipment */
if ((GET_POS(vict) > POS_STUNNED)) {
send_to_char("Steal the equipment now? Impossible!\r\n", ch);
return;
} else {
act("You unequip $p and steal it.", FALSE, ch, obj, 0, TO_CHAR);
act("$n steals $p from $N.", FALSE, ch, obj, vict, TO_NOTVICT);
obj_to_char(unequip_char(vict, eq_pos), ch);
}
}
} else { /* obj found in inventory */
if (AWAKE(vict) && (GET_DEX(vict) > GET_DEX(ch) - percent)) {
ohoh = TRUE;
act("Oops..", FALSE, ch, 0, 0, TO_CHAR);
act("$n tried to steal something from you!", FALSE, ch, 0, vict, TO_VICT);
act("$n tries to steal something from $N.", TRUE, ch, 0, vict, TO_NOTVICT);
} else { /* Steal the item */
if ((IS_CARRYING_N(ch) + 1 < CAN_CARRY_N(ch))) {
if ((IS_CARRYING_W(ch) + GET_OBJ_WEIGHT(obj)) < CAN_CARRY_W(ch)) {
sprintf(buf1, "(GC) %s has stolen %s&10 from %s at %s.", GET_NAME(ch), obj->short_description, GET_NAME(vict), world[vict->in_room].name);
mudlog(buf1, BRF, LVL_GOD, TRUE);
obj_from_char(obj);
obj_to_char(obj, ch);
send_to_char("Got it!\r\n", ch);
if (number(1, 50) == 23) {
act("You feel lighter for some odd reason.", FALSE, ch, 0, 0, TO_VICT);
}
}
} else
send_to_char("You cannot carry that much.\r\n", ch);
}
}
} else { /* Steal some coins */
if (AWAKE(vict) && (GET_DEX(vict) > GET_DEX(ch) - percent)) {
ohoh = TRUE;
act("Oops..", FALSE, ch, 0, 0, TO_CHAR);
act("You discover that $n has $s hands in your wallet.", FALSE, ch, 0, vict, TO_VICT);
act("$n tries to steal gold from $N.", TRUE, ch, 0, vict, TO_NOTVICT);
} else {
/* Steal some gold coins */
gold = (int) ((GET_GOLD(vict) * number(1, 10)) / 100);
gold = MIN(50000, gold);
if (gold > 0) {
GET_GOLD(ch) += gold;
GET_GOLD(vict) -= gold;
if (gold > 1) {
sprintf(buf, "Bingo! You got %d gold coins.\r\n", gold);
sprintf(buf1, "(GC) %s has stolen %d zenni from %s at %s.", GET_NAME(ch), gold, GET_NAME(vict), world[vict->in_room].name);
mudlog(buf1, BRF, LVL_GOD, TRUE);
send_to_char(buf, ch);
} else {
send_to_char("You manage to swipe a solitary gold coin.\r\n", ch);
}
} else {
send_to_char("You couldn't get any gold...\r\n", ch);
}
}
}
if (GET_MANA(ch) >= GET_MAX_MANA(ch) / 20) {
GET_MANA(ch) -= GET_MAX_MANA(ch) / 20;
}
if (ohoh && IS_NPC(vict) && AWAKE(vict))
hit(vict, ch, TYPE_UNDEFINED);
}
ACMD(do_practice)
{
one_argument(argument, arg);
if (*arg)
send_to_char("You can only practice skills in your guild.\r\n", ch);
else
list_skills(ch);
}
ACMD(do_visible)
{
if (GET_LEVEL(ch) >= LVL_IMMORT) {
perform_immort_vis(ch);
return;
}
if AFF_FLAGGED(ch, AFF_INVISIBLE) {
appear(ch);
send_to_char("You break the spell of invisibility.\r\n", ch);
} else
send_to_char("You are already visible.\r\n", ch);
}
ACMD(do_title)
{
skip_spaces(&argument);
delete_doubledollar(argument);
if (IS_NPC(ch))
send_to_char("Your title is fine... go away.\r\n", ch);
else if (PLR_FLAGGED(ch, PLR_NOTITLE))
send_to_char("You can't title yourself -- you shouldn't have abused it!\r\n", ch);
else if (strstr(argument, "(") || strstr(argument, ")"))
send_to_char("Titles can't contain the ( or ) characters.\r\n", ch);
else if (strlen(argument) > MAX_TITLE_LENGTH * 2) {
sprintf(buf, "Sorry, titles can't be longer than %d characters.\r\n",
MAX_TITLE_LENGTH * 2);
send_to_char(buf, ch);
} else {
set_title(ch, argument);
sprintf(buf, "Okay, you're now %s %s.\r\n", GET_NAME(ch), GET_TITLE(ch));
send_to_char(buf, ch);
}
}
int perform_group(struct char_data *ch, struct char_data *vict)
{
if (AFF_FLAGGED(vict, AFF_GROUP) || !CAN_SEE(ch, vict))
return 0;
if (GET_MAX_HIT(ch)/100 * 50 > GET_MAX_HIT(vict) && !IS_NPC(vict)) {
act("They are too weak to be in your group!", FALSE, ch, 0, 0, TO_CHAR);
return;
}
if (GET_MAX_HIT(vict)/100 * 50 > GET_MAX_HIT(ch) && !IS_NPC(vict)) {
act("They are too strong to be in your group!", FALSE, ch, 0, 0, TO_CHAR);
return;
}
SET_BIT(AFF_FLAGS(vict), AFF_GROUP);
if (ch != vict)
act("$N is now a member of your group.", FALSE, ch, 0, vict, TO_CHAR);
act("You are now a member of $n's group.", FALSE, ch, 0, vict, TO_VICT);
act("$N is now a member of $n's group.", FALSE, ch, 0, vict, TO_NOTVICT);
return 1;
}
void print_group(struct char_data *ch)
{
struct char_data *k;
struct follow_type *f;
if (!AFF_FLAGGED(ch, AFF_GROUP))
send_to_char("But you are not the member of a group!\r\n", ch);
else {
send_to_char("Your group consists of:\r\n", ch);
k = (ch->master ? ch->master : ch);
if (AFF_FLAGGED(k, AFF_GROUP)) {
sprintf(buf, " [Pl:%3d Ki:%3d] [%s] $N (Head of group)",
GET_HIT(k), GET_MANA(k), CLASS_ABBR(k));
act(buf, FALSE, ch, 0, k, TO_CHAR);
}
for (f = k->followers; f; f = f->next) {
if (!AFF_FLAGGED(f->follower, AFF_GROUP))
continue;
sprintf(buf, " [Pl:%3d Ki:%3d] [%s] $N", GET_HIT(f->follower),
GET_MANA(f->follower), CLASS_ABBR(f->follower));
act(buf, FALSE, ch, 0, f->follower, TO_CHAR);
}
}
}
ACMD(do_group)
{
struct char_data *vict;
struct follow_type *f;
int found;
one_argument(argument, buf);
if (!*buf) {
print_group(ch);
return;
}
if (ch->master) {
act("You can not enroll group members without being head of a group.",
FALSE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(buf, "all")) {
perform_group(ch, ch);
for (found = 0, f = ch->followers; f; f = f->next)
found += perform_group(ch, f->follower);
if (!found)
send_to_char("Everyone following you is already in your group.\r\n", ch);
return;
}
if (!(vict = get_char_room_vis(ch, buf)))
send_to_char(NOPERSON, ch);
else if ((vict->master != ch) && (vict != ch))
act("$N must follow you to enter your group.", FALSE, ch, 0, vict, TO_CHAR);
else {
if (!AFF_FLAGGED(vict, AFF_GROUP))
perform_group(ch, vict);
else {
if (ch != vict)
act("$N is no longer a member of your group.", FALSE, ch, 0, vict, TO_CHAR);
act("You have been kicked out of $n's group!", FALSE, ch, 0, vict, TO_VICT);
act("$N has been kicked out of $n's group!", FALSE, ch, 0, vict, TO_NOTVICT);
REMOVE_BIT(AFF_FLAGS(vict), AFF_GROUP);
}
}
}
ACMD(do_ungroup)
{
struct follow_type *f, *next_fol;
struct char_data *tch;
one_argument(argument, buf);
if (!*buf) {
if (ch->master || !(AFF_FLAGGED(ch, AFF_GROUP))) {
send_to_char("But you lead no group!\r\n", ch);
return;
}
sprintf(buf2, "%s has disbanded the group.\r\n", GET_NAME(ch));
for (f = ch->followers; f; f = next_fol) {
next_fol = f->next;
if (AFF_FLAGGED(f->follower, AFF_GROUP)) {
REMOVE_BIT(AFF_FLAGS(f->follower), AFF_GROUP);
send_to_char(buf2, f->follower);
if (!AFF_FLAGGED(f->follower, AFF_MAJIN))
stop_follower(f->follower);
}
}
REMOVE_BIT(AFF_FLAGS(ch), AFF_GROUP);
send_to_char("You disband the group.\r\n", ch);
return;
}
if (!(tch = get_char_room_vis(ch, buf))) {
send_to_char("There is no such person!\r\n", ch);
return;
}
if (tch->master != ch) {
send_to_char("That person is not following you!\r\n", ch);
return;
}
if (!AFF_FLAGGED(tch, AFF_GROUP)) {
send_to_char("That person isn't in your group.\r\n", ch);
return;
}
REMOVE_BIT(AFF_FLAGS(tch), AFF_GROUP);
act("$N is no longer a member of your group.", FALSE, ch, 0, tch, TO_CHAR);
act("You have been kicked out of $n's group!", FALSE, ch, 0, tch, TO_VICT);
act("$N has been kicked out of $n's group!", FALSE, ch, 0, tch, TO_NOTVICT);
if (!AFF_FLAGGED(tch, AFF_MAJIN))
stop_follower(tch);
}
ACMD(do_report)
{
struct char_data *k;
struct follow_type *f;
if (!AFF_FLAGGED(ch, AFF_GROUP)) {
send_to_char("But you are not a member of any group!\r\n", ch);
return;
}
sprintf(buf, "%s reports: %d/%dH, %d/%dK, %d/%dV\r\n",
GET_NAME(ch), GET_HIT(ch), GET_MAX_HIT(ch),
GET_MANA(ch), GET_MAX_MANA(ch),
GET_MOVE(ch), GET_MAX_MOVE(ch));
CAP(buf);
k = (ch->master ? ch->master : ch);
for (f = k->followers; f; f = f->next)
if (AFF_FLAGGED(f->follower, AFF_GROUP) && f->follower != ch)
send_to_char(buf, f->follower);
if (k != ch)
send_to_char(buf, k);
send_to_char("You report to the group.\r\n", ch);
}
ACMD(do_split)
{
int amount, num, share;
struct char_data *k;
struct follow_type *f;
if (IS_NPC(ch))
return;
one_argument(argument, buf);
if (is_number(buf)) {
amount = atoi(buf);
if (amount <= 0) {
send_to_char("Sorry, you can't do that.\r\n", ch);
return;
}
if (amount > GET_GOLD(ch)) {
send_to_char("You don't seem to have that much gold to split.\r\n", ch);
return;
}
k = (ch->master ? ch->master : ch);
if (AFF_FLAGGED(k, AFF_GROUP) && (k->in_room == ch->in_room))
num = 1;
else
num = 0;
for (f = k->followers; f; f = f->next)
if (AFF_FLAGGED(f->follower, AFF_GROUP) &&
(!IS_NPC(f->follower)) &&
(f->follower->in_room == ch->in_room))
num++;
if (num && AFF_FLAGGED(ch, AFF_GROUP))
share = amount / num;
else {
send_to_char("With whom do you wish to share your gold?\r\n", ch);
return;
}
GET_GOLD(ch) -= share * (num - 1);
if (AFF_FLAGGED(k, AFF_GROUP) && (k->in_room == ch->in_room)
&& !(IS_NPC(k)) && k != ch) {
GET_GOLD(k) += share;
sprintf(buf, "%s splits %d coins; you receive %d.\r\n", GET_NAME(ch),
amount, share);
send_to_char(buf, k);
}
for (f = k->followers; f; f = f->next) {
if (AFF_FLAGGED(f->follower, AFF_GROUP) &&
(!IS_NPC(f->follower)) &&
(f->follower->in_room == ch->in_room) &&
f->follower != ch) {
GET_GOLD(f->follower) += share;
sprintf(buf, "%s splits %d coins; you receive %d.\r\n", GET_NAME(ch),
amount, share);
send_to_char(buf, f->follower);
}
}
sprintf(buf, "You split %d coins among %d members -- %d coins each.\r\n",
amount, num, share);
send_to_char(buf, ch);
} else {
send_to_char("How many coins do you wish to split with your group?\r\n", ch);
return;
}
}
ACMD(do_use)
{
struct obj_data *mag_item;
int equipped = 1;
half_chop(argument, arg, buf);
if (!*arg) {
sprintf(buf2, "What do you want to %s?\r\n", CMD_NAME);
send_to_char(buf2, ch);
return;
}
mag_item = GET_EQ(ch, WEAR_SHIELD);
if (!mag_item || !isname(arg, mag_item->name)) {
switch (subcmd) {
case SCMD_SWALLOW:
case SCMD_PLANT:
equipped = 0;
if (!(mag_item = get_obj_in_list_vis(ch, arg, ch->carrying))) {
sprintf(buf2, "You don't seem to have %s %s.\r\n", AN(arg), arg);
send_to_char(buf2, ch);
return;
}
break;
case SCMD_USE:
sprintf(buf2, "You don't seem to be wearing %s %s.\r\n", AN(arg), arg);
send_to_char(buf2, ch);
return;
default:
log("SYSERR: Unknown subcmd %d passed to do_use.", subcmd);
return;
}
}
switch (subcmd) {
case SCMD_PLANT:
if (GET_OBJ_TYPE(mag_item) != ITEM_SAIBAKIT) {
send_to_char("You can only plant seeds.", ch);
return;
}
break;
case SCMD_SWALLOW:
if (GET_POS(ch) == POS_FIGHTING)
{
send_to_char("You cannot do that while fighting!\r\n", ch);
return;
}
if (GET_OBJ_TYPE(mag_item) == ITEM_HOLYWATER && IS_ANDROID(ch)) {
send_to_char("Androids can gain nothing from holywater!.", ch);
return;
}
if (GET_OBJ_TYPE(mag_item) == ITEM_NANO && !IS_ANDROID(ch)) {
send_to_char("You can't swallow nano beans!", ch);
return;
}
if (GET_OBJ_TYPE(mag_item) != ITEM_NANO && IS_ANDROID(ch)) {
send_to_char("You can only swallow nano beans.", ch);
return;
}
break;
case SCMD_USE:
if ((GET_OBJ_TYPE(mag_item) != ITEM_SCOUTER) &&
(GET_OBJ_TYPE(mag_item) != ITEM_STAFF)) {
send_to_char("You can't seem to figure out how to use it.\r\n", ch);
return;
}
break;
}
mag_objectmagic(ch, mag_item, buf);
}
ACMD(do_wimpy)
{
int wimp_lev;
/* 'wimp_level' is a player_special. -gg 2/25/98 */
if (IS_NPC(ch))
return;
one_argument(argument, arg);
if (!*arg) {
if (GET_WIMP_LEV(ch)) {
sprintf(buf, "Your current wimp level is %d hit points.\r\n",
GET_WIMP_LEV(ch));
send_to_char(buf, ch);
return;
} else {
send_to_char("At the moment, you're not a wimp. (sure, sure...)\r\n", ch);
return;
}
}
if (isdigit(*arg)) {
if ((wimp_lev = atoi(arg))) {
if (wimp_lev < 0)
send_to_char("Heh, heh, heh.. we are jolly funny today, eh?\r\n", ch);
else if (wimp_lev > GET_MAX_HIT(ch))
send_to_char("That doesn't make much sense, now does it?\r\n", ch);
else if (wimp_lev > (GET_MAX_HIT(ch) / 2))
send_to_char("You can't set your wimp level above half your hit points.\r\n", ch);
else {
sprintf(buf, "Okay, you'll wimp out if you drop below %d hit points.\r\n",
wimp_lev);
send_to_char(buf, ch);
GET_WIMP_LEV(ch) = wimp_lev;
}
} else {
send_to_char("Okay, you'll now tough out fights to the bitter end.\r\n", ch);
GET_WIMP_LEV(ch) = 0;
}
} else
send_to_char("Specify at how many hit points you want to wimp out at. (0 to disable)\r\n", ch);
return;
}
ACMD(do_display)
{
size_t i;
if (IS_NPC(ch)) {
send_to_char("Mosters don't need displays. Go away.\r\n", ch);
return;
}
skip_spaces(&argument);
if (!*argument) {
send_to_char("Usage: prompt { { H | M | V } | all | none }\r\n", ch);
return;
}
if ((!str_cmp(argument, "on")) || (!str_cmp(argument, "all")))
SET_BIT(PRF_FLAGS(ch), PRF_DISPHP | PRF_DISPMANA);
else {
REMOVE_BIT(PRF_FLAGS(ch), PRF_DISPHP | PRF_DISPMANA);
for (i = 0; i < strlen(argument); i++) {
switch (LOWER(argument[i])) {
case 'h':
SET_BIT(PRF_FLAGS(ch), PRF_DISPHP);
break;
case 'm':
SET_BIT(PRF_FLAGS(ch), PRF_DISPMANA);
break;
default:
send_to_char("Usage: prompt { { H | M | V } | all | none }\r\n", ch);
return;
break;
}
}
}
send_to_char(OK, ch);
}
ACMD(do_gen_write)
{
FILE *fl;
char *tmp, buf[MAX_STRING_LENGTH];
const char *filename;
struct stat fbuf;
time_t ct;
switch (subcmd) {
case SCMD_BUG:
filename = BUG_FILE;
break;
case SCMD_TYPO:
filename = TYPO_FILE;
break;
case SCMD_IDEA:
filename = IDEA_FILE;
break;
default:
return;
}
ct = time(0);
tmp = asctime(localtime(&ct));
if (IS_NPC(ch)) {
send_to_char("Monsters can't have ideas - Go away.\r\n", ch);
return;
}
skip_spaces(&argument);
delete_doubledollar(argument);
if (!*argument) {
send_to_char("That must be a mistake...\r\n", ch);
return;
}
sprintf(buf, "%s %s: %s", GET_NAME(ch), CMD_NAME, argument);
mudlog(buf, CMP, LVL_IMMORT, FALSE);
if (stat(filename, &fbuf) < 0) {
perror("Error statting file");
return;
}
if (fbuf.st_size >= max_filesize) {
send_to_char("Sorry, the file is full right now.. try again later.\r\n", ch);
return;
}
if (!(fl = fopen(filename, "a"))) {
perror("do_gen_write");
send_to_char("Could not open the file. Sorry.\r\n", ch);
return;
}
fprintf(fl, "%-8s (%6.6s) [%5d] %s\n", GET_NAME(ch), (tmp + 4),
GET_ROOM_VNUM(IN_ROOM(ch)), argument);
fclose(fl);
send_to_char("Okay. Thanks!\r\n", ch);
}
#define TOG_OFF 0
#define TOG_ON 1
#define PRF_TOG_CHK(ch,flag) ((TOGGLE_BIT(PRF_FLAGS(ch), (flag))) & (flag))
ACMD(do_gen_tog)
{
long result;
const char *tog_messages[][2] = {
{"Nohassle disabled.\r\n",
"Nohassle enabled.\r\n"},
{"Brief mode off.\r\n",
"Brief mode on.\r\n"},
{"Compact mode off.\r\n",
"Compact mode on.\r\n"},
{"You can now hear tells.\r\n",
"You are now deaf to tells.\r\n"},
{"You can now hear oocs.\r\n",
"You are now deaf to oocs.\r\n"},
{"You can now hear shouts.\r\n",
"You are now deaf to shouts.\r\n"},
{"You can now hear roleplay messages.\r\n",
"You are now deaf to roleplay messages.\r\n"},
{"You can now hear the congratulation messages.\r\n",
"You are now deaf to the congratulation messages.\r\n"},
{"You can now hear the Wiz-channel.\r\n",
"You are now deaf to the Wiz-channel.\r\n"},
{"You are no longer part of the RP.\r\n",
"Okay, you are part of the RP!\r\n"},
{"You will no longer see the room flags.\r\n",
"You will now see the room flags.\r\n"},
{"You will now have your communication repeated.\r\n",
"You will no longer have your communication repeated.\r\n"},
{"HolyLight mode off.\r\n",
"HolyLight mode on.\r\n"},
{"Nameserver_is_slow changed to NO; IP addresses will now be resolved.\r\n",
"Nameserver_is_slow changed to YES; sitenames will no longer be resolved.\r\n"},
{"Autoexits disabled.\r\n",
"Autoexits enabled.\r\n"},
{"AFK flag is now off.\r\n",
"AFK flag is now on.\r\n"},
{"You pack up and clean out your camp.\r\n",
"&15You start a small fire and open camp to rest.\r\n"},
};
if (IS_NPC(ch))
return;
switch (subcmd) {
case SCMD_NOHASSLE:
result = PRF_TOG_CHK(ch, PRF_NOHASSLE);
break;
case SCMD_BRIEF:
result = PRF_TOG_CHK(ch, PRF_BRIEF);
break;
case SCMD_COMPACT:
result = PRF_TOG_CHK(ch, PRF_COMPACT);
break;
case SCMD_NOTELL:
result = PRF_TOG_CHK(ch, PRF_NOTELL);
break;
case SCMD_NOooc:
result = PRF_TOG_CHK(ch, PRF_NOooc);
break;
case SCMD_DEAF:
result = PRF_TOG_CHK(ch, PRF_DEAF);
break;
case SCMD_NOGOSSIP:
result = PRF_TOG_CHK(ch, PRF_NOGOSS);
break;
case SCMD_NOGRATZ:
result = PRF_TOG_CHK(ch, PRF_NOGRATZ);
break;
case SCMD_NOWIZ:
result = PRF_TOG_CHK(ch, PRF_NOWIZ);
break;
case SCMD_QUEST:
result = PRF_TOG_CHK(ch, PRF_QUEST);
break;
case SCMD_ROOMFLAGS:
result = PRF_TOG_CHK(ch, PRF_ROOMFLAGS);
break;
case SCMD_NOREPEAT:
result = PRF_TOG_CHK(ch, PRF_NOREPEAT);
break;
case SCMD_HOLYLIGHT:
result = PRF_TOG_CHK(ch, PRF_HOLYLIGHT);
break;
case SCMD_SLOWNS:
result = (nameserver_is_slow = !nameserver_is_slow);
break;
case SCMD_AUTOEXIT:
result = PRF_TOG_CHK(ch, PRF_AUTOEXIT);
break;
case SCMD_AFK:
result = PRF_TOG_CHK(ch, PRF_AFK);
if (PRF_FLAGGED(ch, PRF_AFK))
act("$n has gone AFK.", TRUE, ch, 0, 0, TO_ROOM);
else
act("$n has come back from AFK.", TRUE, ch, 0, 0, TO_ROOM);
break;
case SCMD_CAMP:
result = PRF_TOG_CHK(ch, PRF_CAMP);
if (PRF_FLAGGED(ch, PRF_CAMP))
act("$n sprawls out on the ground and sets up camp.", TRUE, ch, 0, 0, TO_ROOM);
else
act("$n packs up some stuff and leaves their camp.", TRUE, ch, 0, 0, TO_ROOM);
break;
default:
log("SYSERR: Unknown subcmd %d in do_gen_toggle.", subcmd);
return;
}
if (result)
send_to_char(tog_messages[subcmd][TOG_ON], ch);
else
send_to_char(tog_messages[subcmd][TOG_OFF], ch);
return;
}
ACMD(do_repair)
{
int MANA = 0, HIT = 0;
if (!GET_SKILL(ch, SKILL_REPAIR)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (GET_POS(ch) == POS_FIGHTING) {
send_to_char("Not while fighting, you can't control your mechanisms enough!\r\n", ch);
return;
}
else if (IS_ANDROID(ch) &&GET_MANA(ch) < GET_MAX_MANA(ch)/50)
{
act("You don't have enough energy to repair your circuits.", TRUE, ch, 0, 0, TO_CHAR);
}
else if (IS_ANDROID(ch) &&GET_HIT(ch) < GET_MAX_HIT(ch) && GET_MANA(ch) >= GET_MAX_MANA(ch)/50)
{
send_to_char("You stand still for a moment and repair your internal circuits.\r\n", ch);
act("&10$n repairs $s internal circuits.&00", TRUE, ch, 0, 0, TO_ROOM);
SET_BIT(PLR_FLAGS(ch), PLR_LARM);
SET_BIT(PLR_FLAGS(ch), PLR_RARM);
SET_BIT(PLR_FLAGS(ch), PLR_LLEG);
SET_BIT(PLR_FLAGS(ch), PLR_RLEG);
MANA = number(GET_MAX_MANA(ch)/50, GET_MAX_MANA(ch)/50);
HIT = number(GET_MAX_HIT(ch)/20, GET_MAX_HIT(ch)/15);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
else if (IS_ANDROID(ch) && GET_HIT(ch) >= GET_MAX_HIT(ch))
{
act("You are already fully repaired.", TRUE, ch, 0, 0, TO_CHAR);
}
}
ACMD(do_kyodaika)
{
if (!GET_SKILL(ch, SKILL_KYODAIKA)) {
send_to_char("You don't know that technique!\r\n", ch);
return;
}
if (GET_MANA(ch) < GET_MAX_MANA(ch) / 5) {
send_to_char("You don't have enough ki!\r\n", ch);
return;
}
if (GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You need to be at full pl!\r\n", ch);
return;
}
else
act("&15You &10g&00&02ro&10w&15 to &09f&00&01iv&09e &12t&00&04ime&12s &15your size&11!&00", TRUE, ch, 0, 0, TO_CHAR);
act("&14$n &10g&00&02row&10s&15 to &09f&00&01iv&09e &12t&00&04ime&12s &15their size&11!&00", TRUE, ch, 0, 0, TO_ROOM);
GET_MANA(ch) = GET_MANA(ch) - GET_MAX_MANA(ch)/5;
GET_HIT(ch) = GET_HIT(ch) * 2;
}
ACMD(do_kaioken)
{
int MANA = 0, HIT = 0;
one_argument(argument, arg);
if (!GET_SKILL(ch, SKILL_KAIOKEN)) {
send_to_char("You don't know that technique!\r\n", ch);
return;
}
else if (!*argument) {
send_to_char("Usage: Kaioken (1-20)\r\n", ch);
return;
}
if (!str_cmp(arg,"1") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"1") && GET_HIT(ch) >= GET_MAX_HIT(ch)+9999){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"1")){
send_to_char("&15You begin over working your body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &141&15.&00\r\n", ch);
act("&14$n&15 overworks $s body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &141&15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(1000, 1000);
HIT = number(10000, 10000);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
if (!str_cmp(arg,"2") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"2") && GET_HIT(ch) >= GET_MAX_HIT(ch)+39999){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"2")){
send_to_char("&15You begin over working your body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &142&15.&00\r\n", ch);
act("&14$n&15 overworks $s body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &142&15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(10000, 10000);
HIT = number(40000, 40000);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
if (!str_cmp(arg,"3") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"3") && GET_HIT(ch) >= GET_MAX_HIT(ch)+99999){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"3")){
send_to_char("&15You begin over working your body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &143&15.&00\r\n", ch);
act("&14$n&15 overworks $s body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &143&15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(40000, 40000);
HIT = number(100000, 100000);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
if (!str_cmp(arg,"4") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"4") && GET_HIT(ch) >= GET_MAX_HIT(ch)+199999){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"4")){
send_to_char("&15You begin over working your body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &144&15.&00\r\n", ch);
act("&14$n&15 overworks $s body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &144&15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(50000, 50000);
HIT = number(200000, 200000);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
if (!str_cmp(arg,"5") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"5") && GET_HIT(ch) >= GET_MAX_HIT(ch)+399999){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"5")){
send_to_char("&15You begin over working your body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &145&15.&00\r\n", ch);
act("&14$n&15 overworks $s body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &145&15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(75000, 75000);
HIT = number(400000, 400000);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
if (!str_cmp(arg,"6") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"6") && GET_HIT(ch) >= GET_MAX_HIT(ch)+799999){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"6")){
send_to_char("&15You begin over working your body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &146&15.&00\r\n", ch);
act("&14$n&15 overworks $s body by reaching &11k&00&03a&00&01i&09o&00&01k&00&03e&11n&15 level &146&15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(400000, 400000);
HIT = number(800000, 800000);
GET_MANA(ch) = GET_MANA(ch) - MANA;
GET_HIT(ch) = GET_HIT(ch) + HIT;
}
if (!str_cmp(arg,"7") && GET_HIT(ch) < GET_MAX_HIT(ch)) {
send_to_char("You don't have enough strength to do that.\r\nShowing the first 100 KB of 314.3 KB. Download the archive for the full file.