act.other.c
dpr/src/act.other.c · 239.5 KB
From the archive dpr.tgz
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 struct char_data *character_list;
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 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_nuke);
ACMD(do_snuke);
ACMD(do_rnuke);
ACMD(do_quit);
ACMD(do_save);
ACMD(do_fly);
ACMD(do_land);
ACMD(do_not_here);
ACMD(do_SWIFTNESS);
ACMD(do_hide);
ACMD(do_steal);
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_fuse);
ACMD(do_ssj);
ACMD(do_snamek);
ACMD(do_kaioken);
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_superk);
ACMD(do_repair);
ACMD(do_wimpy);
ACMD(do_display);
ACMD(do_stealth);
ACMD(do_gen_write);
ACMD(do_powerup);
ACMD(do_powerdown);
ACMD(do_gen_tog);
ACMD(do_ingest);
ACMD(do_upgrade);
ACMD(do_mystic);
ACMD(do_perfection);
ACMD(do_shape);
ACMD(do_heal);
ACMD(do_pk);
ACMD(do_majinmorph);
ACMD(do_boost);
ACMD(do_unleash);
ACMD(do_evil);
ACMD(do_copyover);
ACMD(do_rlist);
ACMD(do_mlist);
ACMD(do_olist);
void check_blink(void);
ACMD(do_nuke) /* Semo - partial snippet*/
{
struct char_data *vict = vict;
one_argument(argument, buf);
if(!*buf) {
send_to_char("&11Which unfortunate soul is going to be nuked?\r\n", ch);
return;
}
if (ch == vict)
{
send_to_char("Don't do that you silly rabbit!",ch);
return;
}
if (!(vict = get_char_vis(ch, buf))) {
send_to_char("&11They are not here.\r\n",ch);
}
if ((vict = get_char_vis(ch, buf))) {
if (!IS_NPC(vict) && (GET_LEVEL(ch) <= GET_LEVEL(vict))) {
send_to_char("I don't think so.\r\n", ch);
return;
}
SET_BIT(PLR_FLAGS(vict), PLR_DELETED);
if(PLR_FLAGGED(vict, PLR_DELETED)) {
sprintf(buf2, "&09%s&16 passes a hand out towards&10 %s &16releasing a small concentrated ball of energy less than the size of a baseball, as it sails down to strike it's target, a massive explosion errupts, leaving nothing of the poor little wanker but a deep crater and a cloud of dust. &09[&16Problem Removed&09]&16.&00\r\n",GET_NAME(ch), GET_NAME(vict));
send_to_all(buf2);
} else {
return;
}
if (!(vict->desc)) {
extract_char(vict);
}
if (vict->desc) {
close_socket(vict->desc);
extract_char(vict); /* Bye Bye */
send_to_char("Deleted.\r\n", ch);
}
} else {
send_to_char("That player isn't online.\r\n", ch);
}
}
ACMD(do_snuke) /* Raiden - partial snippet*/
{
struct char_data *vict = vict;
one_argument(argument, buf);
if(!*buf) {
send_to_char("&11Which unfortunate soul is going to be nuked?\r\n", ch);
return;
}
if (ch == vict)
{
send_to_char("Don't do that you silly rabbit!",ch);
return;
}
if (!(vict = get_char_vis(ch, buf))) {
send_to_char("&11They are not here.\r\n",ch);
}
if ((vict = get_char_vis(ch, buf))) {
if (!IS_NPC(vict) && (GET_LEVEL(ch) <= GET_LEVEL(vict))) {
send_to_char("I don't think so.\r\n", ch);
return;
}
SET_BIT(PLR_FLAGS(vict), PLR_DELETED);
if(PLR_FLAGGED(vict, PLR_DELETED)) {
sprintf(buf2, "&09%s&16 bitch slaps&10 %s &16out of existance. &09[&16Problem Destroyed&09]&16.&00\r\n",GET_NAME(ch), GET_NAME(vict));
send_to_all(buf2);
} else {
return;
}
if (!(vict->desc)) {
extract_char(vict);
}
if (vict->desc) {
close_socket(vict->desc);
extract_char(vict); /* Bye Bye */
send_to_char("Bye Bye!\r\n", ch);
}
} else {
send_to_char("That player isn't online.\r\n", ch);
}
}
ACMD(do_rnuke) /* Raiden - partial snippet*/
{
struct char_data *vict = vict;
one_argument(argument, buf);
if(!*buf) {
send_to_char("&11Which unfortunate soul is going to be nuked?\r\n", ch);
return;
}
if (ch == vict)
{
send_to_char("Don't do that you silly rabbit!",ch);
return;
}
if (!(vict = get_char_vis(ch, buf))) {
send_to_char("&11They are not here.\r\n",ch);
}
if ((vict = get_char_vis(ch, buf))) {
if (!IS_NPC(vict) && (GET_LEVEL(ch) <= GET_LEVEL(vict))) {
send_to_char("I don't think so.\r\n", ch);
return;
}
SET_BIT(PLR_FLAGS(vict), PLR_DELETED);
if(PLR_FLAGGED(vict, PLR_DELETED)) {
sprintf(buf2, "&09%s&16 lets out a massive shout to&10 %s &16creating such a high pitched frequency. As the sound waves get closer to&10 %s &16the sound waves destroy everything in their path. All that is left is a few particles of dust. &09[&16Problem Destroyed&09]&16.&00\r\n",GET_NAME(ch), GET_NAME(vict), GET_NAME(vict));
send_to_all(buf2);
} else {
return;
}
if (!(vict->desc)) {
extract_char(vict);
}
if (vict->desc) {
close_socket(vict->desc);
extract_char(vict); /* Bye Bye */
send_to_char("Bye Bye!\r\n", ch);
}
} else {
send_to_char("That player isn't online.\r\n", ch);
}
}
ACMD(do_evil) {
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
if ((!IS_demon(ch)))
{
act("Your not a Demon!", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act(" &10o&12_&09-------------------------&12_&10o&00\r\n &09| &11 Evil 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);
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(80000, 80000);
MAX_MANA = number(80000, 80000);
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 &09Darkness&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Darkness&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(35000, 35000);
MAX_MANA = number(35000, 35000);
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 &09Darkness&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Darkness&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(15000, 15000);
MAX_MANA = number(15000, 15000);
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 &09Darkness&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Darkness&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(5000, 5000);
MAX_MANA = number(5000, 5000);
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 &09Darkness&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You revert from your form of &09Darkness&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 Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 800000) {
act("&15You do not have the power to attain that form of Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"first") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 800000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(5000, 5000);
MAX_MANA = number(5000, 5000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&15$n transforms into the first form of &09Darkness&15!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You transform into the first form of &09Darkness&15!&00", 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 Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 5000000) {
act("&15You do not have the power to attain that form of Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 5000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(10000, 10000);
MAX_MANA = number(10000, 10000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&15$n transforms into the second form of &09Darkness&15!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You transform into the second form of &09Darkness&15!&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 Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"third") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 10000000) {
act("&15You do not have the power to attain that form of Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"third") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 10000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans3);
MAX_HIT = number(20000, 20000);
MAX_MANA = number(20000, 20000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&15$n transforms into the third form of &09Darkness&15!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You transform into the third form of &09Darkness&15!&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 Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 25000000) {
act("&15You do not have the power to attain that form of Darkness!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 25000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans4);
MAX_HIT = number(45000, 45000);
MAX_MANA = number(45000, 45000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&15$n transforms into the final form of &09Darkness&15!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You transform into the final form of &09Darkness&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
}
ACMD(do_superk)
{
int MAX_MANA = 0, MAX_HIT = 0;
one_argument(argument, arg);
if ((!IS_KONATSU(ch)))
{
act("Your not a Konatsu!", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act(" &10o&12_&09-------------------------&12_&10o&00\r\n &09| &11 Konatsu 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| &10Powerup &14350000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Transform &145000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10o&12_&09-------------------------&12_&10o&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*------------------ Checks to see if you have already Konatsu -----------------*/
if (!str_cmp(arg,"transform") && !PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You can't go straight to that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*---------------------------------- Reverting --------------------------------------*/
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(9, 9);
MAX_MANA = number(9, 9);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch)/ MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch)/MAX_MANA;
act("&15$n powerdowns and returns to normal.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You powerdown and return to normal&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(3, 3);
MAX_MANA = number(3, 3);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch)/MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch)/MAX_MANA;
act("&15$n powerdowns and returns to normal&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You powerdown and return to normal.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ SK POWERUP--------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"powerup") && PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You are already in that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"powerup") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 50000) {
act("&15You are to weak!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"powerup") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 50000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(3, 3);
MAX_MANA = number(3, 3);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) * MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) * MAX_MANA;
act("&15$n clenches $s fists and $s hair stands on end as he powerups to &14Super Konatsu15!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You clench your fists, and your hair stands on end as you go &14Super KonAtsu!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ Transform---------------------------------------*/
/*-------------------------------------------------------------------------------------*/
if (!str_cmp(arg,"transform") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15Your already in that form!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"transform") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 5000000) {
act("&15You are to weak right now!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"transform") && GET_STR(ch)*2+GET_MAX_MANA(ch)*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 5000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(3, 3);
MAX_MANA = number(3, 3);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) * MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) * MAX_MANA;
act("&15$n screams louding, the veins on $s muscles bulging out from $s flesh, and his hair standing on end as he achieves &14Konatsu Transform!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You scream at the top of your lungs, muscles bulging from your veins, as youachieve &14Konatsu Transform&15!&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 (AFF_FLAGGED(ch, AFF_HALTED)) {
send_to_char("You can't!\r\n", ch);
return;
}
if (IS_SET(ROOM_FLAGS(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) -= 10000;
GET_MAX_MANA(ch) -= 10000;
}
if (PRF2_FLAGGED(ch, PRF2_GOOZARU)) {
REMOVE_BIT(PRF2_FLAGS(ch), PRF2_GOOZARU);
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[&09Player Logout&16]&15%s has left &11Drag&09(&11*&09)&11nball - &10World of &09C&16h&09a&16o&09s&16!&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" */
if (cmd) {
/*
* 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) {
send_to_char("Manual saving is disabled.\r\n", ch);
return;
}
sprintf(buf, "Saving %s.\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)));
}
/* 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;
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 = GET_LEVEL(ch);
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_steal)
{
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 (ROOM_FLAGGED(IN_ROOM(ch), ROOM_PEACEFUL)) {
send_to_char("This room just has such a peaceful, easy feeling...\r\n", 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, 101) - dex_app_skill[GET_DEX(ch)].p_pocket;
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 || pcsteal ||
GET_MOB_SPEC(vict) == shop_keeper)
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 */
percent += GET_OBJ_WEIGHT(obj); /* Make heavy harder */
if (AWAKE(vict) && (percent > GET_SKILL(ch, SKILL_STEAL))) {
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)) {
obj_from_char(obj);
obj_to_char(obj, ch);
send_to_char("Got it!\r\n", ch);
}
} else
send_to_char("You cannot carry that much.\r\n", ch);
}
}
} else { /* Steal some coins */
if (AWAKE(vict) && (percent > GET_SKILL(ch, SKILL_STEAL))) {
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(1782, 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);
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 (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) {
sprintf(buf, "Sorry, titles can't be longer than %d characters.\r\n",
MAX_TITLE_LENGTH);
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;
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, " [%3dH %3dM %3dV] [%s] $N (Head of group)",
GET_HIT(k), GET_MANA(k), GET_MOVE(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, " [%3dH %3dM %3dV] [%s] $N", GET_HIT(f->follower),
GET_MANA(f->follower), GET_MOVE(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_OBJ_TYPE(mag_item) != ITEM_SENZU) {
send_to_char("You can only swallow senzu's.", 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 | PRF_DISPMOVE);
else {
REMOVE_BIT(PRF_FLAGS(ch), PRF_DISPHP | PRF_DISPMANA | PRF_DISPMOVE);
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;
case 'v':
SET_BIT(PRF_FLAGS(ch), PRF_DISPMOVE);
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"},
{"You can now hear the Auction channel.\r\n",
"You are now deaf to the Auction channel.\r\n"},
{"Welcome to the light side.\r\n",
"Welcome to the dark side.\r\n"},
{"You can now hear the music channel.\r\n",
"You are now deaf to the music channel.\r\n"},
{"You can now hear game master messages.\r\n",
"You are now deaf to game master messages.\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_NOgmaster:
result = PRF_TOG_CHK(ch, PRF_NOgmaster);
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;
case SCMD_NOAUCT:
result = PRF_TOG_CHK(ch, PRF_NOAUCT);
break;
case SCMD_PK:
result = PLR_TOG_CHK(ch, PLR_KILLER);
break;
case SCMD_NOMUSIC:
result = PRF_TOG_CHK(ch, PRF_NOMUSIC);
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 MOVE = 0, HIT = 0;
if (!GET_SKILL(ch, SKILL_REPAIR)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
else if (IS_ANDROID(ch) &&GET_MOVE(ch) <= GET_LEVEL(ch)*2-1)
{
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_MOVE(ch) >= GET_LEVEL(ch)*2+1)
{
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);
MOVE = number(GET_LEVEL(ch)*2+10, GET_LEVEL(ch)*2+10);
HIT = number(GET_LEVEL(ch)+10, GET_LEVEL(ch)+10);
GET_MOVE(ch) = GET_MOVE(ch) - MOVE;
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_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_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"1") && GET_MANA(ch) >= GET_MAX_MANA(ch)+100){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"1")){
send_to_char("&10You begin over working your body by reaching kaioken level 1.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 1!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(100, 100);
HIT = number(100, 100);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"2") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"2") && GET_MANA(ch) >= GET_MAX_MANA(ch)+300){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"2")){
send_to_char("&10You begin over working your body by reaching kaioken level 2.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 2!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(300, 300);
HIT = number(300, 300);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"3") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"3") && GET_MANA(ch) >= GET_MAX_MANA(ch)+600){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"3")){
send_to_char("&10You begin over working your body by reaching kaioken level 3.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 3!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(600, 600);
HIT = number(600, 600);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"4") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"4") && GET_MANA(ch) >= GET_MAX_MANA(ch)+1000){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"4")){
send_to_char("&10You begin over working your body by reaching kaioken level 4.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 4!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(1000, 1000);
HIT = number(1000, 1000);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"5") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"5") && GET_MANA(ch) >= GET_MAX_MANA(ch)+1500){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"5")){
send_to_char("&10You begin over working your body by reaching kaioken level 5.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 5!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(1500, 1500);
HIT = number(1500, 1500);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"6") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"6") && GET_MANA(ch) >= GET_MAX_MANA(ch)+2100){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"6")){
send_to_char("&10You begin over working your body by reaching kaioken level 6.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 6!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(2100, 2100);
HIT = number(2100, 2100);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"7") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"7") && GET_MANA(ch) >= GET_MAX_MANA(ch)+2800){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"7")){
send_to_char("&10You begin over working your body by reaching kaioken level 7.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 7!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(2800, 2800);
HIT = number(2800, 2800);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"8") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"8") && GET_MANA(ch) >= GET_MAX_MANA(ch)+3600){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"8")){
send_to_char("&10You begin over working your body by reaching kaioken level 8.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 8!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(3600, 3600);
HIT = number(3600, 3600);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"9") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"9") && GET_MANA(ch) >= GET_MAX_MANA(ch)+4500){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"9")){
send_to_char("&10You begin over working your body by reaching kaioken level 9.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 9!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(4500, 4500);
HIT = number(4500, 4500);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"10") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"10") && GET_MANA(ch) >= GET_MAX_MANA(ch)+5500){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"10")){
send_to_char("&10You begin over working your body by reaching kaioken level 10.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 10!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(5500, 5500);
HIT = number(5500, 5500);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"11") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"11") && GET_MANA(ch) >= GET_MAX_MANA(ch)+6600){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"11")){
send_to_char("&10You begin over working your body by reaching kaioken level 11.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 11!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(6600, 6600);
HIT = number(6600, 6600);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"12") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"12") && GET_MANA(ch) >= GET_MAX_MANA(ch)+7800){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"12")){
send_to_char("&10You begin over working your body by reaching kaioken level 12.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 12!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(7800, 7800);
HIT = number(7800, 7800);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"13") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"13") && GET_MANA(ch) >= GET_MAX_MANA(ch)+9100){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"13")){
send_to_char("&10You begin over working your body by reaching kaioken level 13.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 13!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(9100, 9100);
HIT = number(9100, 9100);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"14") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"14") && GET_MANA(ch) >= GET_MAX_MANA(ch)+10500){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"14")){
send_to_char("&10You begin over working your body by reaching kaioken level 14.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 14!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(10500, 10500);
HIT = number(10500, 10500);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"15") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"15") && GET_MANA(ch) >= GET_MAX_MANA(ch)+12000){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"15")){
send_to_char("&10You begin over working your body by reaching kaioken level 15.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 15!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(12000, 12000);
HIT = number(12000, 12000);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"16") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"16") && GET_MANA(ch) >= GET_MAX_MANA(ch)+13600){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"16")){
send_to_char("&10You begin over working your body by reaching kaioken level 16.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 16!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(13600, 13600);
HIT = number(13600, 13600);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"17") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"17") && GET_MANA(ch) >= GET_MAX_MANA(ch)+15300){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"17")){
send_to_char("&10You begin over working your body by reaching kaioken level 17.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 17!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(15300, 15300);
HIT = number(15300, 15300);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"18") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"18") && GET_MANA(ch) >= GET_MAX_MANA(ch)+17100){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"18")){
send_to_char("&10You begin over working your body by reaching kaioken level 18.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 18!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(17100, 17100);
HIT = number(17100, 17100);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"19") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"19") && GET_MANA(ch) >= GET_MAX_MANA(ch)+19000){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"19")){
send_to_char("&10You begin over working your body by reaching kaioken level 19.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 19!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(19000, 19000);
HIT = number(19000, 19000);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"20") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"20") && GET_MANA(ch) >= GET_MAX_MANA(ch)+25000){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"20")){
send_to_char("&10You begin over working your body by reaching kaioken level 20.&00\r\n", ch);
act("&09$n overworks $s body by reaching kaioken level 20!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(25000, 25000);
HIT = number(25000, 25000);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (!str_cmp(arg,"super") && GET_MANA(ch) < GET_MAX_MANA(ch)) {
send_to_char("You don't have enough strength to do that.\r\n", ch);
}
else if (!str_cmp(arg,"super") && GET_MANA(ch) >= GET_MAX_MANA(ch)+50000){
send_to_char("You're already passed that stage of kaioken.\r\n", ch);
}
else if (!str_cmp(arg,"super")){
send_to_char("&10You begin over working your body by reaching super kaioken !&00\r\n", ch);
act("&09$n overworks $s body by reaching super kaioken!&00", TRUE, ch, 0, 0, TO_ROOM);
MANA = number(50000, 50000);
HIT = number(50000, 50000);
GET_MANA(ch) = GET_MANA(ch) + MANA;
GET_HIT(ch) = GET_HIT(ch) - HIT;
}
if (GET_HIT(ch) <= 0) {
send_to_char("&09You overwork your body too much and explode.&00\r\n", ch);
act("&10$n&09 tries to reach a kaioken level beyond thier limit and explodes!&00", TRUE, ch, 0, 0, TO_ROOM);
char_from_room(ch);
char_to_room(ch, r_death_start_room);
GET_HIT(ch) = GET_MAX_HIT(ch)*0.1;
GET_MANA(ch) = GET_MAX_MANA(ch)*0.1;
GET_MOVE(ch) = GET_MAX_MOVE(ch)*0.1;
GET_POS(ch) = POS_STANDING;
look_at_room(ch, 0);
}
}
ACMD(do_learn)
{
char buf[1024];
int r = 1 << GET_CLASS(ch);
int i = 0;
argument = one_argument(argument, buf);
if (buf[0] != '\0') {
int skill = 0;
while (spells[skill].name[0] != '\n') {
if (!strncasecmp(buf, spells[skill].name, strlen(buf))) {
if (!(spells[skill].races & r)) {
send_to_char("You can't learn that.\r\n", ch);
return;
}
else if (GET_PRACTICES(ch) < spells[skill].cost) {
send_to_char("You don't have enough learning points to learn that.\r\n", ch);
return;
} else if (GET_SKILL(ch, skill) != 0) {
send_to_char("You already know that technique.\r\n", ch);
return;
} else {
sprintf(buf, "&15You expend &09%d&15 learning points to learn &10%s&00.\r\n", spells[skill].cost,
spells[skill].name);
send_to_char(buf, ch);
GET_PRACTICES(ch) = GET_PRACTICES(ch) - spells[skill].cost;
GET_SKILL(ch, skill) = 100;
return;
}
} else {
++skill;
}
}
sprintf(buf, "%s is not a technique.\r\n", argument);
send_to_char(buf, ch);
return;
}
send_to_char("&15o&12---------------------------------------------------------&15o&00\r\n", ch);
send_to_char("&15&12|&11Technique: &14Cost: &12|&00\r\n", ch);
send_to_char("&15o&12---------------------------------------------------------&15o&00\r\n", ch);
while (spells[i].name[0] != '\n') {
if ((spells[i].races & r) && (GET_SKILL(ch, i) == 0) && spells[i].type == SPELL_OFFENSIVE) {
sprintf(buf, "&12|%s%-20s&02%3d&12%35s&09\r\n", spells[i].type ? "&09" : "&09",
spells[i].name, spells[i].cost, "|");
send_to_char(buf, ch);
}
else if ((spells[i].races & r) && (GET_SKILL(ch, i) == 0) && spells[i].type == SPELL_DEFENSIVE) {
sprintf(buf, "&12|%s%-20s&02%3d&12%35s&09\r\n", spells[i].type ? "&12" : "&12",
spells[i].name, spells[i].cost, "|");
send_to_char(buf, ch);
}
else if ((spells[i].races & r) && (GET_SKILL(ch, i) == 0) && spells[i].type == SPELL_ENHANCE) {
sprintf(buf, "&12|%s%-20s&02%3d&12%35s&09\r\n", spells[i].type ? "&10" : "&10",
spells[i].name, spells[i].cost, "|");
send_to_char(buf, ch);
}
else if ((spells[i].races & r) && (GET_SKILL(ch, i) == 0) && spells[i].type == SPELL_OTHER) {
sprintf(buf, "&12|%s%-20s&02%3d&12%35s&09\r\n", spells[i].type ? "&15" : "&15",
spells[i].name, spells[i].cost, "|");
send_to_char(buf, ch);
}
else if ((spells[i].races & r) && (GET_SKILL(ch, i) == 0) && spells[i].type == SPELL_HEALSPELL) {
sprintf(buf, "&12|%s%-20s&02%3d&12%35s&09\r\n", spells[i].type ? "&13" : "&13",
spells[i].name, spells[i].cost, "|");
send_to_char(buf, ch);
}
++i;
}
send_to_char("&15o&12---------------------------------------------------------&15o&00\r\n", ch);
sprintf(buf, "&15You have &09%d &15learning points.&00\r\n", GET_PRACTICES(ch));
send_to_char(buf, ch);
}
ACMD(do_learned) {
char buf[1024];
int col = 0, pos = 0;
buf[0] = '\0';
send_to_char("&10You know the following techniques:&00.\r\n", ch);
for (pos = 1; pos < MAX_SKILLS; ++pos) {
int i = spell_sort_info[pos];
if (GET_SKILL(ch, i) != 0 && spells[i].name[0] != '!' && spells[i].type == SPELL_OFFENSIVE) {
char buf2[32];
sprintf(buf2, "%s%-20s%s", spells[i].type ? "&09" : "&09",
spells[i].name, "&00");
strcat(buf, buf2);
++col;
}
if (GET_SKILL(ch, i) != 0 && spells[i].name[0] != '!' && spells[i].type == SPELL_DEFENSIVE) {
char buf2[32];
sprintf(buf2, "%s%-20s%s", spells[i].type ? "&12" : "&12",
spells[i].name, "&00");
strcat(buf, buf2);
++col;
}
if (GET_SKILL(ch, i) != 0 && spells[i].name[0] != '!' && spells[i].type == SPELL_ENHANCE) {
char buf2[32];
sprintf(buf2, "%s%-20s%s", spells[i].type ? "&10" : "&10",
spells[i].name, "&00");
strcat(buf, buf2);
++col;
}
if (GET_SKILL(ch, i) != 0 && spells[i].name[0] != '!' && spells[i].type == SPELL_OTHER) {
char buf2[32];
sprintf(buf2, "%s%-20s%s", spells[i].type ? "&15" : "&15",
spells[i].name, "&00");
strcat(buf, buf2);
++col;
}
if (GET_SKILL(ch, i) != 0 && spells[i].name[0] != '!' && spells[i].type == SPELL_HEALSPELL) {
char buf2[32];
sprintf(buf2, "%s%-20s%s", spells[i].type ? "&13" : "&13",
spells[i].name, "&00");
strcat(buf, buf2);
++col;
}
if (col % 3 == 2) {
send_to_char(buf, ch);
/* send_to_char("\r\n", ch); */ /* Uncomment to do a newline after ever 3 */
buf[0] = '\0';
}
}
}
ACMD(do_float)
{
if (IS_NPC(ch) || !GET_SKILL(ch, SKILL_FLY)) {
send_to_char("You have no idea how.\r\n", ch);
return; }
if (GET_POS(ch) == POS_FLOATING) {
send_to_char("&10Your already floating!&00\r\n", ch);
return;
}
else
GET_POS(ch) = POS_FLOATING;
act("&10You slowly start to hover over the ground.&00",FALSE, ch, 0, 0, TO_CHAR);
act("&09$n&10 slowly starts to hover over the ground.&00",TRUE, ch, 0, 0, TO_NOTVICT);
}
ACMD(do_land)
{
if (GET_POS(ch) == POS_FLOATING) {
act("&09$n&10 floats down to the ground.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&10You slowly float down to the ground.&00",TRUE, ch, 0, 0, TO_CHAR);
GET_POS(ch) = POS_STANDING;
return; }
if (!GET_POS(ch) == POS_FLOATING) {
act("Your not floating!", TRUE, ch, 0, 0, TO_CHAR);
return; }
}
ACMD(do_powerup)
{
GET_POS(ch) = POS_POWERUP;
act("$n begins powering up.", FALSE, ch, 0, 0, TO_ROOM);
/*
if (!GET_SKILL(ch, SKILL_POWERUP)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (GET_MANA(ch) >= GET_MAX_MANA(ch))
{
act("You are already fully powered up!", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (GET_MANA(ch) < GET_MAX_MANA(ch))
{
send_to_char("&15You begin screaming, as you &09flame&15 with ki, powering up to your maximum!&00\r\n", ch);
act("&12$n&15 begins screaming, as $e &09flames&15 with ki, powering up to $s maximum!&00", TRUE, ch, 0, 0, TO_ROOM);
GET_MANA(ch) = GET_MAX_MANA(ch);
return;
} */
}
ACMD(do_ingest)
{
int MAX_HIT = 0, EXP = 0, MAX_MANA;
struct char_data * vict;
one_argument(argument, arg);
if (!GET_SKILL(ch, SKILL_INGEST)) {
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 (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Absorb who?\r\n", ch);
return;
}
if (GET_MAX_MANA(ch) >= 5000) {
act("&15Eating people will no longer benefit you!", FALSE, ch, 0, vict, TO_CHAR);
return;
}
if (IS_NPC(vict) && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch)*2 >= GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict))
{
act("&15You eat &09$N&15!", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n&15 eat &09$N&15!.", TRUE, ch, 0, vict, TO_NOTVICT);
act("&09$n&15 eats you!&00", FALSE, ch, 0, vict, TO_VICT);
MAX_HIT = number(GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10, GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10);
MAX_MANA = number(GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10, GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10);
EXP = number(GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict), GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict));
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
GET_EXP(ch) = GET_EXP(ch) + EXP;
}
if (IS_NPC(vict)) {
extract_char(vict);
return;
}
if (IS_NPC(vict) && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch)*2 <= GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)) {
act("&15You cannot over power them enough to eat them!", FALSE, ch, 0, vict, TO_CHAR);
return;
}
}
ACMD(do_unleash)
{
one_argument(argument, arg);
if (!IS_CHANGELING(ch)) {
send_to_char("&09You try as hard as you can, but you remember your not a changeling",ch);
return;
}
if (GET_LEVEL(ch) <= 2500) {
send_to_char("&14 You are to weak to merge your powers right now.",ch);
return;
}
if (!GET_SKILL(ch, SKILL_SHAPE)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (PLR_FLAGGED(ch, PLR_trans2)) {
send_to_char("&14You have already unleashed your own powers.\r\n",ch);
return;
}
else
if (!PLR_FLAGGED(ch, PLR_trans1)) {
send_to_char("&14It would be pointless to do unless you were in someone's form.\r\n",ch);
return;
}
else
GET_SEX(ch) = GET_CSEX(ch);
GET_HAIRL(ch) = GET_CHAIRL(ch);
GET_BUILD(ch) = GET_CBUILD(ch);
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + GET_SMANA(ch);
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
act("&15$n becomes a new being as $s merges $s powers with the duplicates&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You scream with rage as you merge your abilities with the duplicates.&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
ACMD(do_shape)
{
int MAX_MANA;
struct char_data *vict;
one_argument(argument, arg);
if (!IS_CHANGELING(ch)) {
send_to_char("&04You try as hard as you can, but not being a changeling has its disadvantage.\r\n", ch);
return;
}
if (!GET_SKILL(ch, SKILL_SHAPE)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Take Who's form?",ch);
return;
}
/*========================================================================================*/
/*=====================================Reverting forms====================================*/
/*========================================================================================*/
if (ch == vict && !PLR_FLAGGED(ch, PLR_trans1)) {
send_to_char("&14You are already in your natural form\r\n",ch);
return;
}
else
if (ch == vict && PLR_FLAGGED(ch, PLR_trans2)) {
GET_SEX(ch) = GET_CSEX(ch);
GET_EYE(ch) = GET_CEYE(ch);
GET_HAIRL(ch) = GET_CHAIRL(ch);
GET_HAIRC(ch) = GET_CHAIRC(ch);
GET_AURA(ch) = GET_CAURA(ch);
GET_BUILD(ch) = GET_CBUILD(ch);
GET_MAX_MANA(ch) = GET_SMANA(ch);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans2);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
act("&15$n shape shifts to their natural form&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You shapeshift back tou your natural form&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else
if (ch == vict && !PLR_FLAGGED(ch, PLR_trans1)) {
send_to_char("&14You are already in your natural form\r\n",ch);
return;
}
else
if (ch == vict && PLR_FLAGGED(ch, PLR_trans1)) {
GET_SEX(ch) = GET_CSEX(ch);
GET_EYE(ch) = GET_CEYE(ch);
GET_HAIRL(ch) = GET_CHAIRL(ch);
GET_HAIRC(ch) = GET_CHAIRC(ch);
GET_AURA(ch) = GET_CAURA(ch);
GET_BUILD(ch) = GET_CBUILD(ch);
GET_MAX_MANA(ch) = GET_SMANA(ch);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans1);
act("&15$n shape shifts to their natural form&15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You shapeshift back tou your natural form&15.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*----------------------------------------------------------------------------------------*/
if (PLR_FLAGGED(ch, PLR_trans1)) {
send_to_char("&14You are to busy concentrating on this form\r\n",ch );
return;
}
else
act("&15You take &09$N's&15 form!", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n&15 shifts to &09$N's&15 form!.", TRUE, ch, 0, vict, TO_NOTVICT);
act("&09$n&15 shifts to your form!&00", FALSE, ch, 0, vict, TO_VICT);
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
GET_SMANA(ch) = GET_MAX_MANA(ch);
MAX_MANA = GET_MAX_MANA(vict);
GET_CSEX(ch) = GET_SEX(ch);
GET_CEYE(ch) = GET_EYE(ch);
GET_CHAIRL(ch) = GET_HAIRL(ch);
GET_CHAIRC(ch) = GET_HAIRC(ch);
GET_CAURA(ch) = GET_AURA(ch);
GET_CBUILD(ch) = GET_BUILD(ch);
GET_SEX(ch) = GET_SEX(vict);
GET_EYE(ch) = GET_EYE(vict);
GET_HAIRL(ch) = GET_HAIRL(vict);
GET_HAIRC(ch) = GET_HAIRC(vict);
GET_AURA(ch) = GET_AURA(vict);
GET_BUILD(ch) = GET_BUILD(vict);
GET_MAX_MANA(ch) = GET_MAX_MANA(vict);
return;
}
ACMD(do_powerdown)
{
if (!GET_SKILL(ch, SKILL_POWERDOWN)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (GET_MANA(ch) <= GET_MAX_MANA(ch)-GET_MAX_MANA(ch))
{
act("You dropped your power level as low as you can already.", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (GET_MANA(ch) <= GET_MAX_MANA(ch)-1)
{
act("You already used some energy theres no point.", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (GET_MANA(ch) >= GET_MAX_MANA(ch))
{
send_to_char("You concentrate and compress all your energy.\r\n", ch);
GET_MANA(ch) = 0;
return;
}
}
ACMD(do_upgrade)
{
int MAX_MANA = 0;
int MAX_HIT = 0;
one_argument(argument, arg);
if (!IS_ANDROID(ch) && (GET_LEVEL(ch) >= 1)) {
act("&15Only androids may aquire upgrades and upgrade information.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!*argument && IS_ANDROID(ch)) {
send_to_char("&01Upgrade Chart&00\r\n", ch);
send_to_char("&01--------------00\r\n", ch);
send_to_char("&15|Upgrade 1.0 |&00\r\n", ch);
send_to_char("&15|Upgrade 2.0 |&00\r\n", ch);
send_to_char("&15|Upgrade 3.0 |&00\r\n", ch);
send_to_char("&15|Upgrade 4.0 |&00\r\n", ch);
send_to_char("&15|Upgrade 5.0 |&00\r\n", ch);
send_to_char("&15|Upgrade 6.0 |&00\r\n", ch);
send_to_char("&01--------------&00\r\n", ch);
send_to_char("&04(*) = Complete and working &00\r\n", ch);
return;
}
if (!str_cmp(arg,"1.0") && PLR_FLAGGED(ch, PLR_trans1)) {
act("&15You have already upgraded to version 1.0!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"1.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch)<= 800000) {
act("&15You are not ready to upgrade yet!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"1.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch)>= 800000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans1);
MAX_HIT = number(25000, 25000);
MAX_MANA = number(25000, 25000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 sits down and begins to reprogram theirself!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You sit down and reprogram yourself&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"2.0") && PLR_FLAGGED(ch, PLR_trans2)) {
act("&15You have already upgraded to version 2.0!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"2.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) <= 16000000) {
act("&15You are not ready to upgrade yet!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"2.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) >= 16000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans2);
MAX_HIT = number(66500, 66500);
MAX_MANA = number(66500,66500);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 sits down and begins to reprogram $mself!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You sit down and reprogram yourself&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"3.0") && PLR_FLAGGED(ch, PLR_trans3)) {
act("&15You have already upgraded to version 3.0!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"3.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) <= 32000000) {
act("&15You are not ready to upgrade yet!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"3.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) >= 32000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans3);
MAX_HIT = number(100500, 100500);
MAX_MANA = number(100500,100500);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 sits down and begins to reprogram theirself!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You sit down and reprogram yourself&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"4.0") && PLR_FLAGGED(ch, PLR_trans4)) {
act("&15You have already upgraded to version 4.0!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"4.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) <= 64000000) {
act("&15You are not ready to upgrade yet!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"4.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) >= 64000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans4);
MAX_HIT = number(250000, 250000);
MAX_MANA = number(250000, 250000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 sits down and begins to reprogram theirself!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You sit down and reprogram yourself&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"5.0") && PLR_FLAGGED(ch, PLR_trans5)) {
act("&15You have already upgraded to version 5.0!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"5.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) <= 128000000) {
act("&15You are not ready to upgrade yet!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"5.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) >= 128000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans5);
MAX_HIT = number(300000, 300000);
MAX_MANA = number(300000, 300000);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 sits down and begins to reprogram theirself!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You sit down and reprogram yourself&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"6.0") && PLR_FLAGGED(ch, PLR_trans6)) {
act("&15You have already upgraded to version 6.0!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"6.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) <= 300000000) {
act("&15You are not ready to upgrade yet!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"6.0") && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) >= 300000000) {
SET_BIT(PLR_FLAGS(ch), PLR_trans6);
MAX_HIT = GET_MAX_HIT(ch) * 5;
MAX_MANA = GET_MAX_MANA(ch) * 5;
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
act("&11$n&15 sits down and begins to reprogram theirself!&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You sit down and reprogram yourself&15!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"latest") && IS_ANDROID(ch)) {
act("&15The most current robotic version is version &096.0&12a&15.&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && PLR_FLAGGED(ch, PLR_trans6) && IS_ANDROID(ch)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.93 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &096.0&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &10300GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &0912&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &0912&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Nanotech X9&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && PLR_FLAGGED(ch, PLR_trans5) && IS_ANDROID(ch) && !PLR_FLAGGED(ch, PLR_trans6)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.93 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &095.0&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &10144GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &09&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &099&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Ultra-Advanced&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && PLR_FLAGGED(ch, PLR_trans4) && IS_ANDROID(ch) && !PLR_FLAGGED(ch, PLR_trans5)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.84 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &094.0&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &1072GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &095&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &095&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Advanced&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && PLR_FLAGGED(ch, PLR_trans3) && IS_ANDROID(ch) && !PLR_FLAGGED(ch, PLR_trans4)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.73 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &093.0&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &1036GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &093&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &093&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Intermediate&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && PLR_FLAGGED(ch, PLR_trans2) && IS_ANDROID(ch) && !PLR_FLAGGED(ch, PLR_trans3)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.61 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &092.0&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &1018GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &091&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &091&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Basic&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && PLR_FLAGGED(ch, PLR_trans1) && IS_ANDROID(ch) && !PLR_FLAGGED(ch, PLR_trans2)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.49 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &091.0&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &109GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &090&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &090&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Semi-Basic&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"info") && IS_ANDROID(ch) && !PLR_FLAGGED(ch, PLR_trans1)) {
act("&11$n&15 is &12on-line&09: Calling up operating parameters... &15l&11o&15a&11d&15i&11n&15g", TRUE, ch, 0, 0, TO_CHAR);
act("&09RedRib v.32 (c) Dr. Gero-", TRUE, ch, 0, 0, TO_CHAR);
act("&15Current Circuitry Version: &090.1a&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Mental Processing Speed: &104.5GHz&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Damage Capacity Units: &090&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Extra Ki Units: &090&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15Internal Sensors: &10Rudimentary&00", TRUE, ch, 0, 0, TO_CHAR);
}
if (!str_cmp(arg,"minor") && IS_ANDROID(ch)) {
act("&15Upgrade to 1.0, 2.0, 3.0, 4.0, 5.0, and 6.0 are done.&00", TRUE, ch, 0, 0, TO_CHAR);
}
}
ACMD(do_absorb)
{
int MAX_HIT = 0, EXP = 0, MAX_MANA;
struct char_data * vict;
one_argument(argument, arg);
if (!GET_SKILL(ch, SKILL_ABSORB)) {
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 (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Absorb who?\r\n", ch);
return;
}
if (GET_MAX_MANA(ch) >= 5000) {
act("&15Absorbing people will no longer benefit you!", FALSE, ch, 0, vict, TO_CHAR);
return;
}
if (IS_NPC(vict) && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch)*2 >= GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict))
{
act("&15You absorb &09$N&15 into your body!", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n&15 absorbs &09$N&15 into $s body!.", TRUE, ch, 0, vict, TO_NOTVICT);
act("&09$n&15 absorbs you into $s body!&00", FALSE, ch, 0, vict, TO_VICT);
MAX_HIT = number(GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10, GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10);
MAX_MANA = number(GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10, GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)/10);
EXP = number(GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict), GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict));
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + MAX_MANA;
GET_EXP(ch) = GET_EXP(ch) + EXP;
}
if (IS_NPC(vict)) {
extract_char(vict);
return;
}
if (IS_NPC(vict) && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch)*2 <= GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)) {
act("&15You cannot over power them enough to absorb them!", FALSE, ch, 0, vict, TO_CHAR);
return;
}
}
ACMD(do_selfdestruct)
{
struct char_data * vict;
one_argument(argument, arg);
if (!GET_SKILL(ch, SKILL_DESTRUCT)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Self destruct on who?\r\n", ch);
return;
}
if (!IS_NPC(vict) && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) >= GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict))
{
act("&15You self detruct taking &09$N&15 with you!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n &15self-destructs taking &09$N with $m&00.", TRUE, ch, 0, vict, TO_NOTVICT);
act("&09$n&15 self-destructs killing you with the explosion!&00", FALSE, ch, 0, vict, TO_VICT);
char_from_room(vict);
char_to_room(vict, r_death_start_room);
GET_HIT(vict) = GET_MAX_HIT(vict);
GET_MANA(vict) = GET_MAX_MANA(vict);
GET_MOVE(vict) = GET_MAX_MOVE(vict);
GET_POS(vict) = POS_STANDING;
look_at_room(vict, 0);
char_from_room(ch);
char_to_room(ch, r_death_start_room);
GET_HIT(ch) = GET_MAX_HIT(ch);
GET_MANA(ch) = GET_MAX_MANA(ch);
GET_MOVE(ch) = GET_MAX_MOVE(ch);
GET_POS(ch) = POS_STANDING;
look_at_room(ch, 0);
if (IS_NPC(vict))
extract_char(vict);
char_from_room(ch);
char_to_room(ch, r_death_start_room);
GET_HIT(ch) = GET_MAX_HIT(ch);
GET_MANA(ch) = GET_MAX_MANA(ch);
GET_MOVE(ch) = GET_MAX_MOVE(ch);
GET_POS(ch) = POS_STANDING;
look_at_room(ch, 0);
}
else if (!IS_NPC(vict) && GET_STR(ch)*2+GET_MANA(ch)/4*GET_LEVEL(ch)+GET_DAMROLL(ch) <= GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict)){
act("&15You self detruct but &09$N&15 does not die!&00", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n &15self-destructs but fails to take &09$N with $m&00.", TRUE, ch, 0, vict, TO_NOTVICT);
act("&09$n&15 self-destructs but fails to kill you!&00", FALSE, ch, 0, vict, TO_VICT);
char_from_room(ch);
char_to_room(ch, r_death_start_room);
GET_HIT(ch) = GET_MAX_HIT(ch);
GET_MANA(ch) = GET_MAX_MANA(ch);
GET_MOVE(ch) = GET_MAX_MOVE(ch);
GET_POS(ch) = POS_STANDING;
look_at_room(ch, 0);
}
}
ACMD(do_powersense)
{
struct char_data * vict;
one_argument(argument, arg);
if (!GET_SKILL(ch, SKILL_POWERSENSE)) {
send_to_char("You can't do that!\r\n", ch);
return;
}
if (!(vict = get_char_room_vis(ch, arg))) {
send_to_char("Detect who's power?\r\n", ch);
return;
}
if (vict) { /* victim */
act("You pause for a moment as you stare at $N.", FALSE, ch, 0, vict, TO_CHAR);
act("$n stares at $N momentarily..", TRUE, ch, 0, vict, TO_NOTVICT);
act("$n stares at you momentarily.&00", FALSE, ch, 0, vict, TO_VICT);
sprintf(buf, "%s has a power level of &10%Ld&15.&00\r\n",GET_NAME(vict), GET_STR(vict)*2+GET_MANA(vict)/4*GET_LEVEL(vict)+GET_DAMROLL(vict));
send_to_char(buf, ch);
}
}
/*
ACMD(do_fuse)
{
int MAX_MANA = 0;
struct char_data *vict;
one_argument(argument, arg);
if (!*argument) {
send_to_char("&09Fuse &15with &09W&15h&09o&15.\r\n",ch);
return;
}
if (IS_NPC(vict))
if (!(vict = get_char_room_vis(ch, arg))) {
act("&15$n &09begin to do the &15F&09u&15s&09i&15o&09n&09 dance, but then relizes nobody is next to $s.", TRUE, ch, 0, 0, TO_ROOM);
act("&15You &09begin to do the &15F&09u&15s&09i&15o&09n&09 dance, but then relize nobody is beside you.", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else {
//----------------------------------------------------------------------------------------
//==================================== FUSION DANCE ======================================
//----------------------------------------------------------------------------------------
act("&15You stand next to &09$N&15 in the middle of the room, you both raise your arms
in unison and down, touching eachother's &09fingertips&15, screaming &14FUSION!!!", FALSE, ch, 0, vict, TO_CHAR);
act("&09$n stands next to &15$N&09 in the middle of the room, They both raise their arms
in unison and down, touching eachother's &15fingertips.&09, scream ^14FUSION!!!!.", TRUE, ch, 0, vict, TO_NOTVICT);
act("&15You stand next to &09$N&15 in the middle of the room, you both raise your arms
in unison and down, touching eachother's &09fingertips&15, screaming &14FUSION!!!", FALSE, ch, 0, vict, TO_VICT);
SET_BIT(PRF2_FLAGS(ch), PRF2_FUSED);
REMOVE_BIT(PRF2_FLAGS(ch), PRF2_NOTFUSED);
SET_BIT(PRF2_FLAGS(vict), PRF2_FUSED);
REMOVE_BIT(PRF2_FLAGS(vict), PRF2_NOTFUSED);
GET_SMANA(ch) = GET_MAX_MANA(ch);
MAX_MANA = GET_MAX_MANA(ch);
GET_CSEX(ch) = GET_SEX(ch);
GET_CEYE(ch) = GET_EYE(ch);
GET_CHAIRL(ch) = GET_HAIRL(ch);
GET_CHAIRC(ch) = GET_HAIRC(ch);
GET_CAURA(ch) = GET_MAX_HIT(ch); // Leaders normal HP
GET_CBUILD(ch) = GET_BUILD(ch);
GET_SMANA(vict) = GET_MAX_MANA(vict);
MAX_MANA = GET_MAX_MANA(vict);
GET_CSEX(vict) = GET_SEX(vict);
GET_CEYE(vict) = GET_MAX_HIT(vict); //. Followers normal HP
GET_CHAIRL(vict) = GET_HAIRL(vict);
GET_CHAIRC(vict) = GET_HAIRC(vict);
GET_CAURA(vict) = GET_AURA(vict);
GET_CBUILD(vict) = GET_BUILD(vict);
GET_SEX(ch) = GET_SEX(vict);
GET_EYE(ch) = GET_EYE(vict);
GET_HAIRC(ch) = GET_HAIRC(vict);
GET_BUILD(ch) = GET_BUILD(vict);
if(GET_CLASS(ch) == GET_CLASS(vict)) {
act("&15You stand next to &09$N&15 in the middle of the room, you both raise your arms
in unison and down, touching eachother's &09fingertips&15, screaming &14FUSION!!!", FALSE, ch, 0, vict, TO_CHAR);
act("&15BEING THAT OF THE SAME RACE, YOU'VE CREATED A PURE FUSE!!!", FALSE, ch, 0, vict, TO_VICT);
send_to_all("&09$n and $N have fused together to form ----", ch);
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + GET_MAX_MANA(vict) * 5;
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + GET_MAX_HIT(vict) * 5;
vict->desc->snooping = ch->desc;
ch->desc->snoop_by = vict->desc;
return;
}
if(GET_CLASS(ch) == GET_CLASS(vict)) {
act("&15You stand next to &09$N&15 in the middle of the room, you both raise your arms
in unison and down, touching eachother's &09fingertips&15, screaming &14FUSION!!!", FALSE, ch, 0, vict, TO_CHAR);
act("&15Not being the same race, you've created a hybrid race!!!", FALSE, ch, 0, vict, TO_VICT);
send_to_all("&09$n and $N have fused together to form ----", ch);
GET_CLASS(ch) = 15;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) + GET_MAX_MANA(vict) * 2;
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) + GET_MAX_HIT(vict) * 2;
vict->desc->snooping = ch->desc;
ch->desc->snoop_by = vict->desc;
return;
}
}
//========================================================================================
//=================================Revert before times up=================================
//========================================================================================
if (ch == vict && PRF2_FLAGGED(ch, PRF2_NOTFUSED )) {
send_to_char("&14What you trying to do, your not fused!\r\n",ch);
return;
}
else {
if (ch == vict && PRF2_FLAGGED(ch, PRF2_FUSED)) {
REMOVE_BIT(PRF2_FLAGS(ch), PRF2_FUSED);
SET_BIT(PRF2_FLAGS(ch), PRF2_NOTFUSED);
REMOVE_BIT(PRF2_FLAGS(vict), PRF2_FUSED);
SET_BIT(PRF2_FLAGS(vict), PRF2_NOTFUSED);
// Gives normal stats back to leader
GET_SEX(ch) = GET_CSEX(ch);
GET_CLASS(ch) = GET_CHAIRL(ch); // RACE stat for Leader
GET_EYE(ch) = GET_CEYE(ch);
GET_HAIRC(ch) = GET_CHAIRC(ch);
GET_MAX_HIT(ch) = GET_CAURA(ch);
GET_BUILD(ch) = GET_CBUILD(ch);
GET_SMANA(ch) = GET_SMANA(ch);
// Gives normal stats back to follower
GET_SEX(vict) = GET_CSEX(vict);
GET_HAIRL(vict) = GET_CHAIRL(vict);
GET_AURA(vict) = GET_CAURA(vict);
GET_SMANA(vict) = GET_SMANA(vict);
// Returns main stats to normal
if (IS_HYBRID(ch)) {
GET_CLASS(ch) = GET_CHAIRL(ch);
GET_MAX_HIT(ch) = GET_CAURA(ch); // Leaders normal hp
GET_MAX_HIT(vict) = GET_CEYE(vict); // Followers normal hp
act("&15$n and $N break the fuse and become two people again15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You break the fuse and become your own person again&15.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15You break the fuse and become your own person again&15.&00", TRUE, vict, 0, 0, TO_VICT);
return;
} else; {
GET_MAX_MANA(vict) = GET_SMANA(vict);
GET_MAX_MANA(ch) = GET_SMANA(ch);
act("&15$n and $N break the fuse and become two people again15.&00", TRUE, ch, 0, 0, TO_ROOM);
act("&15You break the fuse and become your own person again&15.&00", TRUE, ch, 0, 0, TO_CHAR);
act("&15You break the fuse and become your own person again&15.&00", TRUE, vict, 0, 0, TO_VICT);
return;
}
}
}
}
*/
ACMD(do_ssj)
{
int MAX_MANA = 0, MAX_HIT = 0, HITROLL = 0, DAMROLL = 0;
one_argument(argument, arg);
if ((!IS_saiyan(ch)) && (!IS_HALF_BREED(ch)))
{
act("Your not part saiyan!", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!*argument)
{
act(" &10o&12_&09-------------------------&12_&10o&00\r\n &09| &11Super Saiyan 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 &1490000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Third &13300000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Fourth &14600000000&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &09| &10Chaotic &14Immortal&00 &09|&00", TRUE, ch, 0, 0, TO_CHAR);
act(" &10o&12_&09-------------------------&12_&10o&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*------------------ Oozaru checks, no SSj in oozaru -----------------*/
if (!str_cmp(arg,"first") && PRF_FLAGGED(ch, PRF_OOZARU)) {
act("&15You can't go super saiya-jin while in oozaru form!!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"second") && PRF_FLAGGED(ch, PRF_OOZARU)) {
act("&15You can't go super saiya-jin while in oozaru form!!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"third") && PRF_FLAGGED(ch, PRF_OOZARU)) {
act("&15You can't go super saiya-jin while in oozaru form!!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && PRF_FLAGGED(ch, PRF_OOZARU)) {
act("&15You can't go super saiya-jin while in oozaru form!!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"fourth") && PRF2_FLAGGED(ch, PRF2_GOOZARU)) {
act("&15You can't go super saiya-jin while in oozaru form!!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
if (!str_cmp(arg,"chaotic") && PRF2_FLAGGED(ch, PRF2_GOOZARU)) {
act("&15You can't go &09C&16h&09a&16o&09t&16i&09c&15 super saiya-jin while in oozaru form!!&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*------------------ Checks to see if already in that stage if ssj -----------------*/
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;
}
if (!str_cmp(arg,"chaotic") && !PLR_FLAGGED(ch, PLR_trans4)) {
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_trans5) && GET_LEVEL(ch) != 1000012) {
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);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans5);
MAX_HIT = number(16, 16);
MAX_MANA = number(16, 16);
HITROLL = number(50, 50);
DAMROLL = number(50, 50);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / MAX_MANA;
GET_HITROLL(ch) = GET_HITROLL(ch) - 50;
GET_DAMROLL(ch) = GET_DAMROLL(ch) - 50;
act("&11$n&15's &12hair&15 and &12eyes&15 turn back to normal as $e stops &09flaming&00 &11yellow&00.", TRUE, ch, 0, 0, TO_ROOM);
act("&15Your &13rage&15 ebbs as your &12hair&15 and &12eyes&15 turn back to normal and you stop &09flaming&00 &11yellow.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
else if (!str_cmp(arg,"revert") && GET_LEVEL(ch) == 1000012 && 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);
REMOVE_BIT(PLR_FLAGS(ch), PLR_trans5);
MAX_HIT = number(16, 16);
MAX_MANA = number(24, 24);
HITROLL = number(50, 50);
DAMROLL = number(50, 50);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / MAX_MANA;
GET_HITROLL(ch) = GET_HITROLL(ch) - 50;
GET_DAMROLL(ch) = GET_DAMROLL(ch) - 50;
act("&11$n&15's &12hair&15 and &12eyes&15 turn back to normal as $e stops &09flaming&00 &11yellow&00.", TRUE, ch, 0, 0, TO_ROOM);
act("&15Your &13rage&15 ebbs as your &12hair&15 and &12eyes&15 turn back to normal and you stop &09flaming&00 &11yellow.&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(8, 8);
MAX_MANA = number(8, 8);
HITROLL = number(30, 30);
DAMROLL = number(30, 30);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / MAX_MANA;
GET_HITROLL(ch) = GET_HITROLL(ch) - HITROLL;
GET_DAMROLL(ch) = GET_DAMROLL(ch) - DAMROLL;
GET_MOVE(ch) = GET_MOVE(ch) * 2;
act("&11$n&15's &12hair&15 and &12eyes&15 turn back to normal as $e stops &09flaming&00 &11yellow&00.", TRUE, ch, 0, 0, TO_ROOM);
act("&15Your &13rage&15 ebbs as your &12hair&15 and &12eyes&15 turn back to normal and you stop &09flaming&00 &11yellow.&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(4, 4);
MAX_MANA = number(4, 4);
HITROLL = number(15, 15);
DAMROLL = number(15, 15);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / MAX_MANA;
GET_HITROLL(ch) = GET_HITROLL(ch) - HITROLL;
GET_DAMROLL(ch) = GET_DAMROLL(ch) - DAMROLL;
act("&11$n&15's &12hair&15 and &12eyes&15 turn back to normal as $s stops &09flaming&00 &11yellow&00.", TRUE, ch, 0, 0, TO_ROOM);
act("&15Your &13rage&15 ebbs as your &12hair&15 and &12eyes&15 turn back to normal and you stop &09flaming&00 &11yellow.&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(2, 2);
MAX_MANA = number(2, 2);
HITROLL = number(5, 5);
DAMROLL = number(5, 5);
GET_MAX_HIT(ch) = GET_MAX_HIT(ch) / MAX_HIT;
GET_MAX_MANA(ch) = GET_MAX_MANA(ch) / MAX_MANA;
GET_HITROLL(ch) = GET_HITROLL(ch) - HITROLL;
GET_DAMROLL(ch) = GET_DAMROLL(ch) - DAMROLL;
act("&11$n&15's &12hair&15 and &12eyes&15 turn back to normal as $s stops &09flaming&00 &11yellow&00.", TRUE, ch, 0, 0, TO_ROOM);
act("&15Your &13rage&15 ebbs as your &12hair&15 and &12eyes&15 turn back to normal and you stop &09flaming&00 &11yellow.&00", TRUE, ch, 0, 0, TO_CHAR);
return;
}
/*-------------------------------------------------------------------------------------*/
/*------------------------------------ SSj 1 ----------------------------------------- */
/*---------------------------------------------------------------------------------Showing the first 100 KB of 239.5 KB. Download the archive for the full file.