cor_rumble.c
demise/src/cor_rumble.c · 3.1 KB
From the archive dodbackup-final.tar.gz
Download the archive « Back to the archive contents
/*****************************************************************************************************
* *
* *
* Royal Rumble for Dreams of Demise *
* *
* *
* *
* Coded by Corim aka Infinity *
* aka Gunnar Trulsrud *
* *
* *
* *
* *
*****************************************************************************************************/
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h> /* unlink() */
#include "merc.h"
#include "arena.h"
void
do_rrinfo (CHAR_DATA * ch, char *argument)
{
DESCRIPTOR_DATA *d;
if (argument[0] == '\0')
{
return;
}
if (IS_NPC (ch))
return;
if (!IS_NPC (ch) && IS_IMMORTAL (ch) && IS_SET (ch->act, PLR_WIZINVIS))
return;
for (d = descriptor_list; d != NULL; d = d->next)
{
if (d->connected == CON_PLAYING &&
!IS_SET (d->character->deaf, CHANNEL_INFO))
{
send_to_char ("#G[#R<#oR#yoya#ol R#yumbl#oe#R>#G]#7 ",
d->character);
send_to_char (argument, d->character);
send_to_char (" #G[#R<#oR#yoya#ol R#yumbl#oe#R>#G]#n\n\r",
d->character);
}
}
return;
}
void
do_royalrumble (CHAR_DATA * ch, char *argument)
{
CHAR_DATA *victim;
char arg1[MIL];
char arg2[MIL];
char buf[MSL];
int value;
argument = one_argument (argument, arg1);
argument = one_argument (argument, arg2);
if (IS_NPC (ch))
return;
if (arena != FIGHT_CLEAR)
{
stc ("The arena is not ready for a fight at the moment.\n\r", ch);
return;
}
if (arg1[0] == '\0')
{
stc
("Do you want it to be a FREE for all or do you want there to be an entrance FEE?\n\r",
ch);
stc ("Syntax: Rumble <free/fee> <value>\n\r", ch);
return;
}
if (arg2[0] == '\0' || !is_number (arg2))
{
stc ("Please give a credit price for the winner.\n\r", ch);
stc ("Syntax: Rumble <free/fee> <value>\n\r", ch);
return;
}
value = atoi (arg2);
return;
}