socket

drm/src/socket · 226.4 KB

From the archive DRM1.3b.tar.gz

Download the archive   « Back to the archive contents

act_comm.c:2:/***************************************************************************
act_comm.c:17: **************************************************************************/
act_comm.c:19:/***************************************************************************
act_comm.c:26:*	ROM license, in the file Rom24/doc/rom.license			   *
act_comm.c:27:***************************************************************************/
act_comm.c:29:/***************************************************************************
act_comm.c:32:*       ROT license, in the file doc/rot.license                           *
act_comm.c:33:***************************************************************************/
act_comm.c:35:/***************************************************************************
act_comm.c:40:*       DRM license, in the file doc/DRM.license                           *
act_comm.c:43:***************************************************************************/
act_comm.c:48:#include <sys/types.h>
act_comm.c:49:#include <sys/time.h>
act_comm.c:61:/* command procedures needed */
act_comm.c:68:/* RT code to delete yourself */
act_comm.c:130: char arg1[MAX_INPUT_LENGTH]; /* weapon class */
act_comm.c:131: char arg2[MAX_INPUT_LENGTH]; /* damage type  */
act_comm.c:132: char flag[3][MAX_INPUT_LENGTH]; /* first/second/third flag */
act_comm.c:156: if(arg1[0]=='\0'/*||arg2[0]=='\0'||flag[0][0]=='\0'||flag[1][0]=='\0'||
act_comm.c:157:     flag[2][0]=='\0'*/)
act_comm.c:243: obj->value[1]=ch->level/7;
act_comm.c:244: obj->value[2]=ch->level/10;
act_comm.c:247: obj->weight=ch->level/5;
act_comm.c:255:    af.modifier    = ch->level/5;
act_comm.c:259:    af.modifier    =ch->level/5;   
act_comm.c:271:    af.modifier    =ch->level/8;
act_comm.c:279: //printf_log("%s forges a %s (%s/%s) at %d.",
act_comm.c:280:   //ch->name,weapon_class[wc].name,attack_table[dt].name,
act_comm.c:281:    //flag_string(weapon_type2,flags),ch->in_room->vnum);   
act_comm.c:331:                        ch->qps += amount/20;
act_comm.c:438:			/* Make sure ctier is not greater or less than number tiers in tier_table */
act_comm.c:456:			/*
act_comm.c:458:			 */
act_comm.c:486:			/*
act_comm.c:488:			*/
act_comm.c:492:			/*
act_comm.c:498:			*/
act_comm.c:532:	/* NOTE: these next two statements needed as a catch-all *
act_comm.c:534:	********************************************************/
act_comm.c:633:/* show suppression settings - Gregor Stipicic aka Fade, 2001 */
act_comm.c:647:   printf_to_char(ch,"{CW{ceapon flags{D  :   %s\n\r{CD{codge/etc.  {D  :   %s{x\n\r",
act_comm.c:714:  send_to_char("{cSyntax{D: {CVerbose {cweapon{D/{cflags{D/{cdodge{D/{cobject{D/{cshields{x\n\r",ch);
act_comm.c:719:/* RT code to display channel status */
act_comm.c:725:    /* lists all channels and their status */
act_comm.c:770:/*
act_comm.c:776:*/
act_comm.c:783:    send_to_char("{WQ/A           {x",ch);
act_comm.c:870:/* RT deaf blocks out all shouts */
act_comm.c:887:/* RT quiet blocks out all communication */
act_comm.c:902:/*
act_comm.c:926:}*/
act_comm.c:928:/* afk command */
act_comm.c:1065:    else  /* flame message sent, turn gossip on if it isn't already */
act_comm.c:1122:/* RT ooc rewritten in ROM style */
act_comm.c:1142:    else  /* ooc message sent, turn ooc on if it is off */
act_comm.c:1199:/* RT chat replaced with ROM gossip */
act_comm.c:1219:    else  /* gossip message sent, turn gossip on if it isn't already */
act_comm.c:1264://GOSSIP DRUNKNESS YAYAAA 
act_comm.c:1267://END
act_comm.c:1292://MORE DRUNK
act_comm.c:1295://END
act_comm.c:1331:    else  /* qgossip message sent, turn qgossip on if it isn't already */
act_comm.c:1437:    else  /* grats message sent, turn grats on if it isn't already */
act_comm.c:1536:    else  /* quote message sent, turn quote on if it isn't already */
act_comm.c:1908:/*    if ( ch->pcdata->condition[COND_DRUNK] > 0 )
act_comm.c:1909:       { argument = makedrunk (ch, argument); } */
act_comm.c:1916:/* RT ask channel */
act_comm.c:1927:        send_to_char("Q/A channel is now ON.\n\r",ch);
act_comm.c:1932:        send_to_char("Q/A channel is now OFF.\n\r",ch);
act_comm.c:1936:    else  /* ask sent, turn Q/A on if it isn't already */
act_comm.c:2016:/* RT answer channel - uses same line as asks */
act_comm.c:2027:        send_to_char("Q/A channel is now ON.\n\r",ch);
act_comm.c:2032:        send_to_char("Q/A channel is now OFF.\n\r",ch);
act_comm.c:2036:    else  /* answer sent, turn Q/A on if it isn't already */
act_comm.c:2116:/* RT music channel */
act_comm.c:2136:    else  /* music sent, turn music on if it isn't already */
act_comm.c:2290:/*
act_comm.c:2293: */
act_comm.c:2304:	/* Make the words drunk if needed */
act_comm.c:2305:/*	if (IS_DRUNK(ch))
act_comm.c:2306:*/	argument = makedrunk(argument,ch);
act_comm.c:2310:   /*
act_comm.c:2314:    */
act_comm.c:2318:        /* 'something!' = exclaim */
act_comm.c:2324:		/* 'something!!!' = screams */
act_comm.c:2333:        /* 'something?!' = boggles */
act_comm.c:2339:        /* 'something?' = asks */
act_comm.c:2345:		/* 'something??' = confusedly asks */
act_comm.c:2352:    /* 'something...' = mutter */
act_comm.c:2360:    /* '=), :) = chuckles */
act_comm.c:2367:    /* '=(, :( = sulks */
act_comm.c:2374:    /* '=P, :P = smirks */
act_comm.c:2381:    /* ';) = leers */
act_comm.c:2388:    /* '=O, :O = sings */
act_comm.c:2395:    /* Add more punctuations with another else if statement here */
act_comm.c:2396:    else /* Any other punctuation */
act_comm.c:2416:/*void do_say( CHAR_DATA *ch, char *argument )
act_comm.c:2439:}*/
act_comm.c:2553:    /*
act_comm.c:2556:     */
act_comm.c:2591:/* Removed..Vengeance */
act_comm.c:2592:/*
act_comm.c:2598:*/
act_comm.c:2711:/* Removed...Vengeance */
act_comm.c:2712:/*
act_comm.c:2718:*/
act_comm.c:2727:/* Removed....Vengeance */
act_comm.c:2728:/*
act_comm.c:2734:*/
act_comm.c:2930:/*
act_comm.c:2932: */
act_comm.c:3274:    level = UMIN( ch->level, sizeof(pose_table) / sizeof(pose_table[0]) - 1 );
act_comm.c:3277:    if (ch->class < MAX_CLASS/2)
act_comm.c:3282:	act( pose_table[pose].message[2*(ch->class-(MAX_CLASS/2))+0], ch, NULL, NULL, TO_CHAR );
act_comm.c:3283:	act( pose_table[pose].message[2*(ch->class-(MAX_CLASS/2))+1], ch, NULL, NULL, TO_ROOM );
act_comm.c:3318:/* 
act_comm.c:3321: */
act_comm.c:3381:     /*do_qquote (ch);*/
act_comm.c:3383:    /*printf_to_char(ch,"\n\r\n\r{WWe hate to see your leaving.{x\n\r");
act_comm.c:3386:    */WAIT_STATE(ch,25 * PULSE_VIOLENCE);
act_comm.c:3394:    /*
act_comm.c:3396:     */
act_comm.c:3404:    /* toast evil cheating bastards */
act_comm.c:3456:    /*
act_comm.c:3458:     */
act_comm.c:3466:    /* toast evil cheating bastards */
act_comm.c:3491: //   WAIT_STATE(ch,4 * PULSE_VIOLENCE);
act_comm.c:3499:/* RT changed to allow unlimited following and follow the NOFOLLOW rules */
act_comm.c:3613:/* nukes charmed monsters and pets */
act_comm.c:3771:		"[%2d %s] %-16s %ld/%ld hp %ld/%ld mana %ld/%ld mv %5ld xp\n\r",
act_comm.c:3855:/*
act_comm.c:3857: */
act_comm.c:3920:    share_platinum   = amount_platinum / members;
act_comm.c:3924:    share_gold   = amount_gold / members;
act_comm.c:3928:    share_silver = amount_silver / members;
act_comm.c:4050:    /*
act_comm.c:4052:     */
act_comm.c:4065:/*
act_comm.c:4070: */
act_comm.c:4081:/*
act_comm.c:4083: */
act_comm.c:4281:	    send_to_char( "question/answer channel set.\n\r",ch); 
act_comm.c:4296:	    send_to_char( "shout/yell channel set.\n\r",ch); 
act_comm.c:4301:	    send_to_char( "tell/reply channel set.\n\r",ch); 
act_comm.c:4358:/********************************************************************
act_comm.c:4364:* so that it can get the victim's name/etc in and then send it to   *
act_comm.c:4368:********************************************************************/
act_comm.c:4370:/********************************************************************
act_comm.c:4376:********************************************************************/
act_comm.c:4665:   /*WAIT_STATE(ch,4 * PULSE_VIOLENCE);*/
act_enter.c:1:/***************************************************************************
act_enter.c:16: ***************************************************************************/
act_enter.c:18:/***************************************************************************
act_enter.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
act_enter.c:26:***************************************************************************/
act_enter.c:28:/*************************************************************************** 
act_enter.c:31:*       ROT license, in the file doc/rot.license                           * 
act_enter.c:32:***************************************************************************/
act_enter.c:34:/***************************************************************************
act_enter.c:39:*       DRM license, in the file doc/DRM.license                           *
act_enter.c:42:***************************************************************************/
act_enter.c:48:#include <sys/types.h>
act_enter.c:49:#include <sys/time.h>
act_enter.c:56:/* command procedures needed */
act_enter.c:60:/* random room generation procedure */
act_enter.c:84:/* RT Enter portals */
act_enter.c:92:    /* nifty portal stuff */
act_enter.c:127:	    portal->value[3] = location->vnum; /* for record keeping :) */
act_enter.c:161:	if (IS_SET(portal->value[2],GATE_GOWITH)) /* take the gate along */
act_enter.c:174:	/* charges */
act_enter.c:182:	/* protect against circular follows */
act_enter.c:191:	    /* no following through dead portals */
act_enter.c:231:	/* 
act_enter.c:234:	 */
act_info.c:1:/***************************************************************************
act_info.c:16: ***************************************************************************/
act_info.c:18:/***************************************************************************
act_info.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
act_info.c:26:***************************************************************************/
act_info.c:28:/*************************************************************************** 
act_info.c:31:*       ROT license, in the file doc/rot.license                           * 
act_info.c:32:***************************************************************************/
act_info.c:37:#include <sys/types.h>
act_info.c:38:#include <sys/time.h>
act_info.c:52:/* command procedures needed */
act_info.c:98:/*	 1,  2,  3,  4,  5, 25, 26,
act_info.c:102:	0*/
act_info.c:108:/* for do_count */
act_info.c:113:/*
act_info.c:115: */
act_info.c:193:/*
act_info.c:196: */
act_info.c:210:    /*
act_info.c:212:     */
act_info.c:221:    /*
act_info.c:223:     */
act_info.c:234:		/*
act_info.c:237:		 */
act_info.c:249:	    /*
act_info.c:251:	     */
act_info.c:261:    /*
act_info.c:263:     */
act_info.c:295:    /*
act_info.c:297:     */
act_info.c:314:    vict_condition = victim->hit * 100 / victim->max_hit;
act_info.c:375:    // make sure victim is an NPC - M.
act_info.c:376:/*	if (!IS_NPC(ch) && is_gqmob(ch, victim->pIndexData->vnum) != -1)
act_info.c:380:*/
act_info.c:563:	percent = ( 100 * victim->hit ) / victim->max_hit;
act_info.c:768:/* changes your scroll */
act_info.c:816:/* RT does socials */
act_info.c:840:/* RT Commands to replace news, motd, imotd, etc from ROM */
act_info.c:862:/* RT this following section holds all the auto commands from ROM, as well as
act_info.c:863:   replacements for config */
act_info.c:867:    /* lists most player flags */
act_info.c:1157:      strcpy( buf, "{W<{r%h{W/{R%H{whp {m%m{W/{M%M{wm {y%v{W/{Y%V{wmv {g({B%X{wtnl{g){W>{x");
act_info.c:1159:      strcpy(buf,"{c({r%h{c/{R%H{chp {b%m{c/{B%M{cm {y%v{c/{Y%V{cmv{C ({g%X{ctnl{C){c>{x");
act_info.c:1168:     strcpy(buf,"{Y({x%z{Y)({x%r{Y)({x%e{Y){x%c{Y({r%h{Y/{R%H{Dhp{Y){x");
act_info.c:1179:     strcpy(buf,"{g({x%z{g)({x%r{g){x%c{g({r%h{g/{R%H {Dhp{b %m{g/{B%M {Dmn{g){x");
act_info.c:1348:	/* 'look' or 'look auto' */
act_info.c:1388:	/* 'look in' */
act_info.c:1415:		obj->value[1] <     obj->value[0] / 4
act_info.c:1417:		obj->value[1] < 3 * obj->value[0] / 4
act_info.c:1453:	{  /* player can see object */
act_info.c:1546:    /* 'look direction' */
act_info.c:1578:/* RT added back for the hell of it */
act_info.c:1696://    sprintf( buf, "Wear bits: %s\n\rExtra bits: %s\n\r",
act_info.c:1698://        wear_bit_name(obj->wear_flags), 
act_info.c:1702:    sprintf( buf, "Weight: %d\n\r", obj->weight / 10);
act_info.c:1709:    /* now give out vital statistics as per identify */
act_info.c:1788:                    send_to_char("spear/staff\n\r",ch);
act_info.c:1791:                    send_to_char("mace/club\n\r",ch);
act_info.c:1812:                    (1 + obj->value[2]) * obj->value[1] / 2);
act_info.c:1816:                    ( obj->value[1] + obj->value[2] ) / 2 );
act_info.c:1819:      /*      sprintf(buf,"Weapon type is %s.\n\r",
act_info.c:1824:*/
act_info.c:1825:            if (obj->value[4])  /* weapon flags */
act_info.c:1970:/*
act_info.c:1972: */
act_info.c:2138:/* New score function copyright of Loki of Death Rising.
act_info.c:2139:If you use this score you must leave this header intact.*/
act_info.c:2149:printf_to_char(ch,"{Y| {cRace {x:{g %-9s{Y| {cAQP{x :{g %-8ld{Y| {cHP{x     :{g %-6ld{x/{G%ld
act_info.c:2150:{Y| {cAge  {x:{g %-9d{Y| {cIQP{x :{g %-8d{Y| {cMN{x     :{g %-6ld{x/{G%ld           
act_info.c:2151:{Y| {cSex  {x:{g %-9s{Y| {cDamr{x:{g %-8d{Y| {cMV{x     :{g %-6ld{x/{G%ld
act_info.c:2152:{Y| {cLevel{x:{g %-9d{Y| {cHitr{x:{g %-8d{Y| {cItems{x  :{g %-6d{x/{G%d
act_info.c:2153:{Y| {cClass{x:{g %-9s{Y| {cPlat{x:{g %-8ld{Y| {cWeight{x :{g %-6ld{x/{G%d
act_info.c:2160:class_table[ch->class].name,ch->platinum,get_carry_weight(ch) / 10, can_carry_w(ch) /10,
act_info.c:2164:/*stats*/
act_info.c:2178:    /*AC*/
act_info.c:2199:    /* RT wizinvis and holy light */
act_info.c:2255:    double rooms = top_room, percent = (double) rcnt / (rooms / 100);
act_info.c:2256:    double arooms = (double) (arearooms (ch)), apercent = (double) arcnt / (arooms / 100);
act_info.c:2258:	     "{Y| {cExplored: {g%4d{c/{G%4d{c rooms. ({W%5.2f%%{c of the world) ({W%5.2f%%{c of current area)\n\r{x",
act_info.c:2267:/* This is NEW score listing for The Mage's Lair */
act_info.c:2285:		 ( ch->played + (int) (current_time - ch->logon) ) / 3600);
act_info.c:2323:		 "{cHP: {W%5ld/%-5ld                             {cPracs: {W%d \n\r",
act_info.c:2328:		 "{cMANA: {W%5ld/%-5ld                           {cTrains: {W%d \n\r",
act_info.c:2332:		 "{cMOVE: {W%5ld/%-5ld                           {cItems: {W%d/%d \n\r",
act_info.c:2336:		 "{cAQP: {W%-9ld                            {cWeight: {W%ld/%d \n\r",
act_info.c:2338:		 get_carry_weight(ch) / 10, can_carry_w(ch) /10 );
act_info.c:2340:  /*
act_info.c:2343:   */
act_info.c:2344:  if (IS_NPC(ch))             /* NPC's have no bank balance and shares */
act_info.c:2345:    {                           /* and don't level !!       -- Maniac -- */
act_info.c:2351:  if (!IS_NPC(ch))            /* PC's do level and can have bank accounts */
act_info.c:2352:    {                           /* HERO's don't level anymore               */
act_info.c:2410:  /* print AC values */
act_info.c:2463:  /* RT wizinvis and holy light */
act_info.c:2515:   /* int i;*/
act_info.c:2548:	"        HP: %ld/%ld  Mana: %ld/%ld    MV: %ld/%ld\n\r",
act_info.c:2602:	"{WYou have {r%ld{W/{R%ld{W hitpoints, {b%ld{W/{B%ld{W mana, {y%ld{W/{Y%ld{W movement.{x\n\r",
act_info.c:2612:   /* if (is_clan(ch))
act_info.c:2619:    }*/
act_info.c:2621:	"{WYou are carrying {g%d{x/{G%d{W items with weight {g%ld{x/{G%d{W pounds.{x\n\r",
act_info.c:2623:	get_carry_weight(ch) / 10, can_carry_w(ch) /10 );
act_info.c:2715:    /* print AC values */
act_info.c:2771:    /* RT wizinvis and holy light */
act_info.c:3017:    }/*
act_info.c:3034:    }*/
act_info.c:3125:/*
act_info.c:3170:*/
act_info.c:3185:    /* this parts handles help a b so that it returns help 'a b' */
act_info.c:3237:            else if(pHelp->level!=-2/*strcmp(argall,"motd") && strcmp(argall,"imotd")*/)
act_info.c:3247:	    /*
act_info.c:3249:	     */
act_info.c:3250:	    /*if ( pHelp->text[0] == '.' )
act_info.c:3253:		page_to_char( pHelp->text  , ch );*/
act_info.c:3273:/* whois command */
act_info.c:3311:	    /* work out the printing */
act_info.c:3380:	    /* a little formatting */
act_info.c:3413://                ON_GQUEST(wch) ? "(GQuest)" : "",
act_info.c:3437:/*
act_info.c:3439: */
act_info.c:3468:    /*
act_info.c:3470:     */
act_info.c:3480:    /*
act_info.c:3482:     */
act_info.c:3508:            /*
act_info.c:3510:             */
act_info.c:3558:    /*
act_info.c:3560:     */
act_info.c:3572:        /*
act_info.c:3575:         */
act_info.c:3604:        /*
act_info.c:3606:	 */
act_info.c:3666:	/*
act_info.c:3668:	 */
act_info.c:3708://                ON_GQUEST(wch) ? "(GQuest)" : "",
act_info.c:3728://                ON_GQUEST(wch) ? "(GQuest)" : "",
act_info.c:3749:        /*
act_info.c:3752:         */
act_info.c:3785:        /*
act_info.c:3787:	 */
act_info.c:3831:/*	if (wch->class < MAX_CLASS/2)
act_info.c:3842:	}*/
act_info.c:3844:	/*
act_info.c:3846:	 */
act_info.c:3886://                ON_GQUEST(wch) ? "(GQuest)" : "",
act_info.c:3905:                //ON_GQUEST(wch) ? "(GQuest)" : "",
act_info.c:3940:    }/*
act_info.c:3944: */
act_info.c:4157:		value1 = 4 * (ch->level/3);
act_info.c:4167:		value2 = 4 * (ch->level/3);
act_info.c:4302:	ch->move -= move/2;
act_info.c:4347:	    ch->move -= move/2;
act_info.c:4396:    ch->move -= move/2;
act_info.c:4404://    BUFFER *output;
act_info.c:4430:    diff = ((victim->hit / 50) - (ch->hit / 50));
act_info.c:4448:sprintf( buf, "Hp: %ld/%ld  Mana: %ld/%ld  Lv: %d  Align: %d\n\r", 
act_info.c:4570:                    if (!found)  /* back it up */
act_info.c:4576:                    else /* found the second one */
act_info.c:4629:	"You say '{SI have %ld/%ld hp %ld/%ld mana %ld/%ld mv %ld xp.{x'\n\r",
act_info.c:4637:    sprintf( buf, "$n says '{SI have %ld/%ld hp %ld/%ld mana %ld/%ld mv %ld xp.{x'",
act_info.c:4668:	      || ch->pcdata->learned[sn] < 1 /* skill is not known */)
act_info.c:4673:	/*skill_table[sn].name, ch->pcdata->learned[sn] );*/
act_info.c:4718: 	||    ch->pcdata->learned[sn] < 1 /* skill is not known */
act_info.c:4737:		int_app[get_curr_stat(ch,STAT_INT)].learn / 
act_info.c:4761:/*
act_info.c:4763: */
act_info.c:4773:	wimpy = ch->max_hit / 5;
act_info.c:4783:    if ( wimpy > ch->max_hit/2 )
act_info.c:4809:    /*
act_info.c:4812:     */
act_info.c:4871:    /*
act_info.c:4873:     */
act_info.c:4915: /*
act_info.c:4917: */
act_info.c:4924: /*
act_info.c:4926: */
act_info.c:4957: /*
act_info.c:4959: */
act_info.c:4962:	sprintf( buf, "{GName           {DRace{w/{YClass   {gPosition      {mLevel  {R%%hps {w[{yVnum{w]{x\n\r");
act_info.c:4981: 		hptemp = (wch->hit*100)/wch->max_hit;
act_info.c:4989:	sprintf( buf, "{G%-14s {D%6s{w/{Y%3s    {g%-15s {m%-3d   {R%3d%%   {w[{y%ld{w]{x\n\r",
act_info.c:5000:/*
act_info.c:5002: */
act_info.c:5023:    //sprintf( result,"{c************************************************************{x\n\r");
act_info.c:5033://    sprintf( result,"{c************************************************************{x\n\r");
act_move.c:1:/***************************************************************************
act_move.c:16: ***************************************************************************/
act_move.c:18:/***************************************************************************
act_move.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
act_move.c:26:***************************************************************************/
act_move.c:28:/*************************************************************************** 
act_move.c:31:*       ROT license, in the file doc/rot.license                           * 
act_move.c:32:***************************************************************************/
act_move.c:38:#include <sys/types.h>
act_move.c:39:#include <sys/time.h>
act_move.c:46:/* command procedures needed */
act_move.c:52:/*
act_move.c:54: */
act_move.c:76:     /*
act_move.c:78:     */
act_move.c:192:	    /*
act_move.c:194:	     */
act_move.c:220:        move /= 2;  /* i.e. the average */
act_move.c:223:	/* conditional effects */
act_move.c:225:	    move /= 2;
act_move.c:283:    if (in_room == to_room) /* no circular follows */
act_move.c:314:    /* 
act_move.c:317:     */
act_move.c:326:/* RW Enter movable exits */
act_move.c:335:    /* nifty portal stuff */
act_move.c:405:		/*
act_move.c:407:		*/
act_move.c:432:            move /= 2;  /* i.e. the average */
act_move.c:435:	    /* conditional effects */
act_move.c:437:		move /= 2;
act_move.c:495:	/* protect against circular follows */
act_move.c:658: 	/* open portal */
act_move.c:685:	/* 'open object' */
act_move.c:704:	/* 'open door' */
act_move.c:719:	/* open the other side */
act_move.c:753:	/* portal stuff */
act_move.c:776:	/* 'close object' */
act_move.c:793:	/* 'close door' */
act_move.c:806:	/* close the other side */
act_move.c:855:	/* portal stuff */
act_move.c:894:	/* 'lock object' */
act_move.c:915:	/* 'lock door' */
act_move.c:934:	/* lock the other side */
act_move.c:964: 	/* portal stuff */
act_move.c:1003:	/* 'unlock object' */
act_move.c:1024:	/* 'unlock door' */
act_move.c:1043:	/* unlock the other side */
act_move.c:1074:    /* look for guards */
act_move.c:1094:	/* portal stuff */
act_move.c:1132:	/* 'pick object' */
act_move.c:1154:	/* 'pick door' */
act_move.c:1174:	/* pick the other side */
act_move.c:1303:    /* okay, now that we know we can rest, find an object to rest on */
act_move.c:1339:/* MUSKA */ 
act_move.c:1437:    /* okay, now that we know we can sit, find an object to sit on */
act_move.c:1471:/* MUSKA */
act_move.c:1565:	else  /* find an object and sleep on it */
act_move.c:1641: /*   if ( IS_AFFECTED(victim, AFF_SLEEP) )
act_move.c:1643:*/
act_move.c:1698:        af.duration  = ch->level/20;
act_move.c:1730:        af.duration  = ch->level/5;
act_move.c:1745:/*
act_move.c:1747: */
act_move.c:1819:	if ( number_percent() < 80 * skill / 100 )
act_move.c:1839:		ch->hit -= (ch->hit/4);
act_move.c:1888:    /*
act_move.c:1892:    do_goto(ch->pet,ch->master->name);*/
act_move.c:1910:    /*
act_move.c:1912:     */
act_move.c:2005:	    /*
act_move.c:2007:	     */
act_obj.c:1:/***************************************************************************
act_obj.c:16: ***************************************************************************/
act_obj.c:18:/***************************************************************************
act_obj.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
act_obj.c:26:***************************************************************************/
act_obj.c:27:/*************************************************************************** 
act_obj.c:30:*       ROT license, in the file doc/rot.license                           * 
act_obj.c:31:***************************************************************************/
act_obj.c:37:#include <sys/types.h>
act_obj.c:38:#include <sys/time.h>
act_obj.c:48:/* command procedures needed */
act_obj.c:57:/*
act_obj.c:59: */
act_obj.c:73:/* RT part of the corpse looting code */
act_obj.c:118:    /* variables for AUTOSPLIT */
act_obj.c:186:	/*	sprintf(buf, "$N has found %s, their questobject.", obj->short_descr);
act_obj.c:187:		wiznet(buf, ch, NULL, WIZ_QUESTS, 0, 0);*/
act_obj.c:195:	&&  ( ch->class < MAX_CLASS/2 )
act_obj.c:198:	&&  ( ch->class >= MAX_CLASS/2 )
act_obj.c:233:        { /* AUTOSPLIT code */
act_obj.c:289:    /* Get type. */
act_obj.c:301:	    /* 'get obj' */
act_obj.c:315:	    /* 'get all' or 'get all.obj' */
act_obj.c:344:	/* 'get ... container' */
act_obj.c:392:	    /* 'get obj container' */
act_obj.c:407:	    /* 'get all container' or 'get all.obj container' */
act_obj.c:521:/*
act_obj.c:528:    }*/
act_obj.c:705:	/* 'put obj container' */
act_obj.c:797:	/* 'put all container' or 'put all.obj container' */
act_obj.c:798:	/* check for gem or cubic pouches first */
act_obj.c:970:	/* 'drop NNNN coins' */
act_obj.c:1094:	/* 'drop obj' */
act_obj.c:1121:	/* 'drop all' or 'drop all.obj' */
act_obj.c:1189:	/* 'give NNNN coins victim' */
act_obj.c:1296:    	/*
act_obj.c:1298:	 */
act_obj.c:1332:		change = (95 * silver / 100 / 100);
act_obj.c:1336:		change = (95 * gold / 100 / 100);
act_obj.c:1361:		    (95 * amount / 100 - change * 100),
act_obj.c:1453:    /*
act_obj.c:1455:     */
act_obj.c:1467:/* for poisoning weapons and food/drink */
act_obj.c:1474:    /* find out what */
act_obj.c:1503:	if (number_percent() < skill)  /* success! */
act_obj.c:1556:            af.level     = ch->level * percent / 100;
act_obj.c:1557:            af.duration  = ch->level/2 * percent / 100;
act_obj.c:1874:	amount * liq_table[liquid].liq_affect[COND_DRUNK] / 36 );
act_obj.c:1876:	amount * liq_table[liquid].liq_affect[COND_FULL] / 4 );
act_obj.c:1878:	amount * liq_table[liquid].liq_affect[COND_THIRST] / 10 );
act_obj.c:1880:	amount * liq_table[liquid].liq_affect[COND_HUNGER] / 2 );
act_obj.c:1895:	ch->hit += ch->max_hit/20;
act_obj.c:1897:	ch->mana += ch->max_mana/15;
act_obj.c:1899:	ch->move += ch->max_move/15;
act_obj.c:1905:	/* The drink was poisoned ! */
act_obj.c:2059:	    /* The food was poisoned! */
act_obj.c:2090:/*
act_obj.c:2092: */
act_obj.c:2126:/*
act_obj.c:2130: */
act_obj.c:2137:	&&  ( ch->class < MAX_CLASS/2 )
act_obj.c:2140:	&&  ( ch->class >= MAX_CLASS/2 )
act_obj.c:2694:    /* variables for AUTOSPLIT */
act_obj.c:2811:    { /* AUTOSPLIT code */
act_obj.c:2942:    if (number_percent() >= 20 + get_skill(ch,gsn_scrolls) * 4/5)
act_obj.c:3003:	||   number_percent() >= 20 + get_skill(ch,gsn_staves) * 4/5)
act_obj.c:3129:	||  number_percent() >= 20 + get_skill(ch,gsn_wands) * 4/5) 
act_obj.c:3239:	/*
act_obj.c:3241:	 */
act_obj.c:3286:	gold = victim->gold * number_range(1, ch->level) / 60;
act_obj.c:3287:	silver = victim->silver * number_range(1,ch->level) / 60;
act_obj.c:3346:/*
act_obj.c:3348: */
act_obj.c:3368:    /*
act_obj.c:3370:     */
act_obj.c:3378:    /*
act_obj.c:3380:     */
act_obj.c:3393:    /*
act_obj.c:3395:     */
act_obj.c:3405:/* insert an object at the right spot for the keeper */
act_obj.c:3410:    /* see if any duplicates are found */
act_obj.c:3418:	    /* if this is an unlimited item, destroy the new one */
act_obj.c:3424:	    obj->cost = t_obj->cost; /* keep it standard */
act_obj.c:3447:/* get an object from a shopkeeper's list */
act_obj.c:3467:	    /* skip other objects of the same name */
act_obj.c:3488:	cost = obj->cost * pShop->profit_buy  / 100;
act_obj.c:3500:		cost = obj->cost * pShop->profit_sell / 100;
act_obj.c:3512:			cost /= 2;
act_obj.c:3514:                    	cost = cost * 3 / 4;
act_obj.c:3522:	    cost /= 4;
act_obj.c:3524:	    cost = cost * obj->value[2] / obj->value[1];
act_obj.c:3559:	/* hack to make new thalos pets work */
act_obj.c:3603:	/* haggle */
act_obj.c:3607:	    cost -= cost / 2 * roll / 100;
act_obj.c:3710:	    &&  ( ch->class < MAX_CLASS/2 )
act_obj.c:3713:	    &&  ( ch->class >= MAX_CLASS/2 )
act_obj.c:3734:	/* haggle */
act_obj.c:3739:	    cost -= obj->cost / 2 * roll / 100;
act_obj.c:3822:        /* hack to make new thalos pets work */
act_obj.c:3971:    /* haggle */
act_obj.c:3976:        cost += obj->cost / 2 * roll / 100;
act_obj.c:3977:        cost = UMIN(cost,95 * get_cost(keeper,obj,TRUE) / 100);
act_obj.c:4084:/* wear object as a secondary weapon */
act_obj.c:4089:    char buf[MAX_STRING_LENGTH]; /* overkill, but what the heck */
act_obj.c:4096:    if (argument[0] == '\0') /* empty */
act_obj.c:4102:    obj = get_obj_carry (ch, argument); /* find the obj withing ch's inventory */
act_obj.c:4115:    /* check if the char is using a shield or a held weapon */
act_obj.c:4129:	&&  ( ch->class < MAX_CLASS/2 )
act_obj.c:4132:	&&  ( ch->class >= MAX_CLASS/2 )
act_obj.c:4143:/* check that the character is using a first weapon at all */
act_obj.c:4144:    if (get_eq_char (ch, WEAR_WIELD) == NULL) /* oops - != here was a bit wrong :) */
act_obj.c:4162:/* check for str - secondary weapons have to be lighter */
act_obj.c:4169:/* check if the secondary weapon is heavier than the primary weapon */
act_obj.c:4176:/* at last - the char uses the weapon */
act_obj.c:4178:    if (!remove_obj(ch, WEAR_SECONDARY, TRUE)) /* remove the current weapon if any */
act_obj.c:4179:        return;                                /* remove obj tells about any no_remove */
act_obj.c:4181:/* char CAN use the item! that didn't take long at aaall */
act_obj.c:4197:    skill = ((get_weapon_skill(ch,sn)*get_skill(ch,gsn_dual_wield))/100);
act_obj.c:4229:    /*
act_obj.c:4231:     */
act_wiz.c:1:/***************************************************************************
act_wiz.c:16: ***************************************************************************/
act_wiz.c:18:/***************************************************************************
act_wiz.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
act_wiz.c:26:***************************************************************************/
act_wiz.c:28:/*************************************************************************** 
act_wiz.c:31:*       ROT license, in the file doc/rot.license                           * 
act_wiz.c:32:***************************************************************************/
act_wiz.c:38:#include <sys/types.h>
act_wiz.c:39:#include <sys/time.h>
act_wiz.c:54:/* command procedures needed */
act_wiz.c:80:/*
act_wiz.c:82: */
act_wiz.c:119:    /* show wiznet status */
act_wiz.c:142:    /* list of all wiznet options */
act_wiz.c:201:	||  (d->character->class >= MAX_CLASS/2))
act_wiz.c:273:/* equips a character */
act_wiz.c:313:    /* do the weapon thing */
act_wiz.c:317:    	vnum = OBJ_VNUM_SCHOOL_SWORD; /* just in case! */
act_wiz.c:359:/* RT nochannels command, for those spammers */
act_wiz.c:996:    /*
act_wiz.c:998:     */
act_wiz.c:1245:    /*
act_wiz.c:1248:     */
act_wiz.c:1408:/* RT to replace the 3 stat commands */
act_wiz.c:1447:   /* do it the old way */
act_wiz.c:1615:    sprintf( buf, "Number: %d/%d  Weight: %d/%d/%d (10th pounds)\n\r",
act_wiz.c:1639:    /* now give out vital statistics as per identify */
act_wiz.c:1718:		    send_to_char("spear/staff\n\r",ch);
act_wiz.c:1721:		    send_to_char("mace/club\n\r",ch);	
act_wiz.c:1747:		    (1 + obj->value[2]) * obj->value[1] / 2);
act_wiz.c:1751:	    	    ( obj->value[1] + obj->value[2] ) / 2 );
act_wiz.c:1759:	    if (obj->value[4])  /* weapon flags */
act_wiz.c:2002:    sprintf( buf, "Hp: %ld/%ld  Mana: %ld/%ld  Move: %ld/%ld  Practices: %d\n\r",
act_wiz.c:2058:	victim->carry_number, get_carry_weight(victim) / 10 );
act_wiz.c:2066:	    (int) (victim->played + current_time - victim->logon) / 3600, 
act_wiz.c:2139:    sprintf( buf, "Security: %d.\n\r", victim->pcdata->security ); /* OLC */
act_wiz.c:2140:    send_to_char( buf, ch );					   /* OLC */
act_wiz.c:2198:/* ofind and mfind replaced with vnum, vnum skill also added */
act_wiz.c:2244:	iAreaHalf = (top_area + 1) / 2;
act_wiz.c:2267:    /* do both */
act_wiz.c:2292:    fAll	= FALSE; /* !str_cmp( arg, "all" ); */
act_wiz.c:2297:    /*
act_wiz.c:2302:     */
act_wiz.c:2351:    fAll	= FALSE; /* !str_cmp( arg, "all" ); */
act_wiz.c:2356:    /*
act_wiz.c:2361:     */
act_wiz.c:2464:	/* show characters logged */
act_wiz.c:2538:/*void do_reboot( CHAR_DATA *ch, char *argument )
act_wiz.c:2559:}*/
act_wiz.c:2617:   // save_gquest_data();
act_wiz.c:2657:    //save_gquest_data();
act_wiz.c:2853:    /* change communications to match */
act_wiz.c:2895:/* trust levels for load and clone */
act_wiz.c:2908:/* for clone, to insure that cloning goes many levels deep */
act_wiz.c:2926:/* command that is similar to load */
act_wiz.c:2962:    else /* find both */
act_wiz.c:2973:    /* clone an object */
act_wiz.c:3048:/* RT to replace the two load commands */
act_wiz.c:3083:    /* echo syntax */
act_wiz.c:3134:    level = get_trust(ch); /* default */
act_wiz.c:3136:    if ( arg2[0] != '\0')  /* load with a level */
act_wiz.c:3262:	/* 'purge' */
act_wiz.c:3270:	    &&   victim != ch /* safety precaution */ )
act_wiz.c:3376:    /*
act_wiz.c:3382:     */
act_wiz.c:3442:   /* if (!IS_SET(ch->act, PLR_KEY))
act_wiz.c:3446:    }*/
act_wiz.c:3502:   /* if (!IS_SET(ch->act, PLR_KEY))
act_wiz.c:3506:    }*/
act_wiz.c:3606:    /* cure room */
act_wiz.c:3638:    /* cure all */
act_wiz.c:3934:    /*
act_wiz.c:3936:     */
act_wiz.c:4141:/* RT anti-newbie code */
act_wiz.c:4185:	    sprintf( buf, "{cSn{x: {Y%3d  {cSlot{x:{Y %3d{c  Skill{x/{cSpell{x: '{Y%s{x'{x\n\r",
act_wiz.c:4198:	sprintf( buf, "Sn: %3d  Slot: %3d  Skill/spell: '%s'\n\r",
act_wiz.c:4206:/* RT set replaces sset, mset, oset, and rset */
act_wiz.c:4248:    /* echo syntax */
act_wiz.c:4296:    /*
act_wiz.c:4298:     */
act_wiz.c:4364:    /* clear zones for mobs */
act_wiz.c:4367:    /*
act_wiz.c:4369:     */
act_wiz.c:4372:    /*
act_wiz.c:4374:     */
act_wiz.c:4389:   if ( !str_cmp( arg2, "security" ) )	/* OLC */
act_wiz.c:4770:    /*
act_wiz.c:4772:     */
act_wiz.c:4813:	/* clear zone for mobs */
act_wiz.c:4816:	/* string something */
act_wiz.c:4833:	    && (victim->class < MAX_CLASS/2))
act_wiz.c:4972:    	/* string an obj */
act_wiz.c:5030:    /* echo bad use message */
act_wiz.c:5113:    /*
act_wiz.c:5115:     */
act_wiz.c:5118:    /*
act_wiz.c:5120:     */
act_wiz.c:5229:    /*
act_wiz.c:5231:     */
act_wiz.c:5273:    /*
act_wiz.c:5275:     */
act_wiz.c:5283:    /*
act_wiz.c:5285:     */
act_wiz.c:5298:    /*
act_wiz.c:5300:     */
act_wiz.c:5328:           /* NB: You may need to edit the CON_ values */
act_wiz.c:5353:           /* Format "login" value... */
act_wiz.c:5387:/*
act_wiz.c:5389: */
act_wiz.c:5535:/*
act_wiz.c:5537: */
act_wiz.c:5543:    /* RT code for taking a level argument */
act_wiz.c:5547:    /* take the default path */
act_wiz.c:5576:    /* do the level thing */
act_wiz.c:5609:    /* RT code for taking a level argument */
act_wiz.c:5613:    /* take the default path */
act_wiz.c:5629:    /* do the level thing */
act_wiz.c:5655:    /* RT code for taking a level argument */
act_wiz.c:5659:    /* take the default path */
act_wiz.c:5675:    /* do the level thing */
act_wiz.c:5717:/* prefix command: it will put the string typed on each line typed */
act_wiz.c:5878:    af.modifier  = 0 * (105 / 5);
act_wiz.c:6033:    /*
act_wiz.c:6035:     */
act_wiz.c:6157:     /* make a new dupe */
act_wiz.c:6189:printf_to_char(ch,"{Y| {cRace {x:{g %-9s{Y| {cAQP{x :{g %-8ld{Y| {cHP{x     :{g %-6ld{x/{G%ld
act_wiz.c:6190:{Y| {cAge  {x:{g %-9d{Y| {cIQP{x :{g %-8d{Y| {cMN{x     :{g %-6ld{x/{G%ld
act_wiz.c:6191:{Y| {cSex  {x:{g %-9s{Y| {cDamr{x:{g %-8d{Y| {cMV{x     :{g %-6ld{x/{G%ld
act_wiz.c:6192:{Y| {cLevel{x:{g %-9d{Y| {cHitr{x:{g %-8d{Y| {cItems{x  :{g %-6d{x/{G%d
act_wiz.c:6193:{Y| {cClass{x:{g %-9s{Y| {cPlat{x:{g %-8ld{Y| {cWeight{x :{g %-6ld{x/{G%d
act_wiz.c:6201:class_table[victim->class].name,victim->platinum,get_carry_weight(victim) / 10, can_carry_w(victim) /10,
act_wiz.c:6203:victim->wimpy,victim->silver,victim->pcdata->balance, (int) (victim->played + current_time - victim->logon) / 3600);
act_wiz.c:6205:/*stats*/
act_wiz.c:6219:    /*AC*/
act_wiz.c:6240:    /* RT wizinvis and holy light */
act_wiz.c:6296:    double rooms = top_room, percent = (double) rcnt / (rooms / 100);
act_wiz.c:6297:    double arooms = (double) (arearooms (victim)), apercent = (double) arcnt / (arooms / 100);
act_wiz.c:6298:    printf_to_char (ch,"{Y| {cExplored: {g%4d{c/{G%4d{c rooms. ({W%5.2f%%{c of the world) ({W%5.2f%%{c of current area)\n\r{x",
act_wiz.c:6334:    /*
act_wiz.c:6336:     */
act_wiz.c:6446:    /*
act_wiz.c:6448:     */
act_wiz.c:6528:/* Vape command by Lucas Clav of Ash Planet (206.28.93.8:4000), you may use these commands
act_wiz.c:6529:as long as this header remains in tact. */
act_wiz.c:6701:/** Function: do_pload
act_wiz.c:6707:  * Written : v1.0 12/97
act_wiz.c:6709:  */
act_wiz.c:6725:  /* Dont want to load a second copy of a player who's allready online! */
act_wiz.c:6732:  isChar = load_char_obj(&d, name); /* char pfile exists? */
act_wiz.c:6746:  /* bring player to imm */
act_wiz.c:6749:    char_to_room( d.character, ch->in_room); /* put in room imm is in */
act_wiz.c:6763:/** Function: do_punload
act_wiz.c:6769:  * Written : v1.0 12/97
act_wiz.c:6771:  */
act_wiz.c:6785:  /** Person is legitametly logged on... was not ploaded.
act_wiz.c:6786:   */
act_wiz.c:6793:  if (victim->was_in_room != NULL) /* return player and pet to orig room */
act_wiz.c:6894:	/* create the affect */
act_wiz.c:6905:		/* make table work with skill_lookup */		
act_wiz.c:6954:/*
act_wiz.c:6961: */
act_wiz.c:7170:/*  if (IS_SET(victim->act,PLR_QUESTOR))
act_wiz.c:7177:*/
act_wiz.c:7266:void do_update( CHAR_DATA *ch, char *argument )         /* by Maniac */
act_wiz.c:7268:        if ( argument[0] == '\0' )      /* No options ??? */
act_wiz.c:7277:	 /*   if ( time_info.hour < 9 || time_info.hour > 17 )
act_wiz.c:7281:	    }*/
act_wiz.c:7290:/* Written by takeda (takeda@mathlab.sunysb.edu) *//*
act_wiz.c:7382:*/
alias.c:1:/***************************************************************************
alias.c:16: ***************************************************************************/
alias.c:18:/***************************************************************************
alias.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
alias.c:26:***************************************************************************/
alias.c:28:/*************************************************************************** 
alias.c:31:*       ROT license, in the file doc/rot.license                           * 
alias.c:32:***************************************************************************/
alias.c:37:#include <sys/types.h>
alias.c:44:/* does aliasing and other fun stuff */
alias.c:56:    /* check for prefix */
alias.c:78:    for (alias = 0; alias < MAX_ALIAS; alias++)	 /* go through the aliases */
alias.c:193:	if (!str_cmp(arg,rch->pcdata->alias[pos])) /* redefine an alias */
alias.c:209:     /* make a new alias */
arena.c:8:#include <sys/types.h>
arena.c:10:#include <sys/time.h>
arena.c:34:/*=======================================================================*
arena.c:42: *=======================================================================*/
arena.c:58:/* == First make all invalid checks == */
arena.c:155:/*
arena.c:165:*/
arena.c:222:/* == Now for the challenge == */
arena.c:271:/*=======================================================================*
arena.c:279: *=======================================================================*/
arena.c:307: /*== the room VNUM's for our arena.are ==*/
arena.c:309: /* we use 1051 thru 1066 for a 4x4 arena */
arena.c:317:/* == first make all invalid checks == */
arena.c:409:/* == now get to business == */
arena.c:415:/* == announce the upcoming event == */
arena.c:421:odd1 = ( lvl1 / lvl2 );
arena.c:423:odd2 = ( lvl2 / lvl1 );
arena.c:461:/* == now move them both to an arena for the fun == */
arena.c:471:// SET_BIT(ch->act,PLR_SILENCE);
arena.c:473:// SET_BIT(ch->act,PLR_NO_TELL);
arena.c:483:// SET_BIT(victim->act,PLR_SILENCE);
arena.c:485:// SET_BIT(victim->act,PLR_NO_TELL);
arena.c:495:/*=======================================================================*
arena.c:503: *=======================================================================*/
arena.c:519:/*== make all invalid checks == */
arena.c:581:/*== now actually decline == */
arena.c:625:/*======================================================================*
arena.c:633: *======================================================================*/
arena.c:677:/*== disable the actual fighters from betting ==*/
arena.c:695:/*== make sure the choice is valid ==*/
arena.c:735:/*== do away with the negative number trickery ==*/
arena.c:765:/*== make sure they have the cash ==*/
arena.c:779:/*== now set the info ==*/
auction.c:2:/* Auction.c */
auction.c:6:#include <sys/types.h>
auction.c:33:	/* Requesting info on the item */
auction.c:59:	} /* Aborting the auction */
auction.c:84:                {/*
auction.c:86:                   */     return;
auction.c:89:/* Listing the items for sale */
auction.c:119:	}/* Bidding on an item */
auction.c:159:		/*if ( ch->gold < bid )*/
auction.c:201:	/* Putting up an item for sale */
auction.c:329:	auction_list->owner->gold += (auction_list->gold_held * 9) / 10;
auction.c:331:	sprintf(temp, "You recieve %ld goldcoin%s.\n\r", ((auction_list->gold_held * 9) / 10) > 0 ? (auction_list->gold_held * 9) / 10:0,((auction_list->gold_held * 9) / 10) != 1 ? "s":"");
auction.c:374:    sprintf(buf1, "\n\r%s %s", iauc ? "{8({!I{1mmauctio{!n{8){x": "{8({7Au{&cti{7on{8){x", msg ); /* Add
auction.c:375:color if you wish */
auction.c:451:	obj->weight / 10,
auction.c:538:	    case(WEAPON_SPEAR)	: send_to_char("{^spear{/{^staff{6.{x\n\r",ch);	break;
auction.c:539:	    case(WEAPON_MACE) 	: send_to_char("{^mace{/{^club6.{x\n\r",ch);	break;
auction.c:549:		(1 + obj->value[2]) * obj->value[1] / 2);
auction.c:553:	    	( obj->value[1] + obj->value[2] ) / 2 );
auction.c:555:        if (obj->value[4])  /* weapon flags */
ban.c:1:/***************************************************************************   
ban.c:16: ***************************************************************************/
ban.c:18:/***************************************************************************
ban.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
ban.c:26:***************************************************************************/
ban.c:28:/*************************************************************************** 
ban.c:31:*       ROT license, in the file doc/rot.license                           * 
ban.c:32:***************************************************************************/
ban.c:38:#include <sys/types.h>
ban.c:39:#include <sys/time.h>
ban.c:218:    /* find out what type of ban */
ban.c:277:    /* set ban type */
bit.c:1:/***************************************************************************
bit.c:12: ***************************************************************************/
bit.c:13:/*
bit.c:18: */
bit.c:25:#include <sys/types.h>
bit.c:43:/*****************************************************************************
bit.c:49: ****************************************************************************/
bit.c:52:/*  {	structure		stat	}, */
bit.c:70:/* ROM specific flags: */
bit.c:89:/*****************************************************************************
bit.c:94: ****************************************************************************/
bit.c:110:/*
bit.c:112: * All code copyright (C) Russ Taylor, permission to use and/or distribute
bit.c:114: */
bit.c:115:/*****************************************************************************
bit.c:120: ****************************************************************************/
bit.c:135:/*****************************************************************************
bit.c:139: ****************************************************************************/
bit.c:157:    /*
bit.c:159:     */
bit.c:182:/*****************************************************************************
bit.c:183: Name:		flag_string( table, flags/stat )
bit.c:186: ****************************************************************************/
clans.c:1:/***************************************************************************
clans.c:16: ***************************************************************************/
clans.c:18:/***************************************************************************
clans.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
clans.c:26:***************************************************************************/
clans.c:28:/*************************************************************************** 
clans.c:31:*       ROT license, in the file doc/rot.license                           * 
clans.c:32:***************************************************************************/
clans.c:38:#include <sys/types.h>
clans.c:39:#include <sys/time.h>
clans.c:56:/*	name,		who entry,
clans.c:67:*/
clans.c:429:    else  /* cgossip message sent, turn cgossip on if it isn't already */
clans.c:604:/*	    if (IS_IMMORTAL(ch))
clans.c:605:	    {*/
clans.c:608:/*		for ( ; ; )
clans.c:615:*/		add_buf(output,buf);
clans.c:873:/* do_clanwho: hack of do_who to return everyone in your clan */
clans.c:907:    /*
clans.c:910:     */
clans.c:926:        /*
clans.c:931:         */
clans.c:949:	/*
clans.c:952:	 */
clans.c:955:	/*
clans.c:957:	 */
clans.c:1026:    /*if ( !is_clead(ch))
clans.c:1030:    }*/
clans.c:1099:                        ch->pcdata->clan_data->cbalance =+ value/20;
class.c:1:/* Online setting of skill/spell levels, 
class.c:4: */
class.c:6:#include "include.h" /* This includes all the usual include files */
class.c:8:/* 
class.c:10:  Class table levels loading/saving
class.c:12:*/
class.c:14:/* Save this class */
class.c:21:	sprintf (buf, "%sclasses/%s", DATA_DIR, class_table[num].name);
class.c:41:	fprintf (fp, "-1"); /* EOF -1 */
class.c:56:/* Load a class */
class.c:63:	sprintf (buf, "%sclasses/%s", DATA_DIR, class_table[num].name);
class.c:76:		fscanf (fp, " %[^\n]\n", buf); /* read name of skill into buf */
class.c:78:		n = skill_lookup (buf); /* find index */
class.c:139:		strcpy ( buf, "There is no such spell/skill as " );
comm.c:1:/***************************************************************************
comm.c:19: ***************************************************************************/
comm.c:21:/***************************************************************************
comm.c:28:*	ROM license, in the file Rom24/doc/rom.license			   *
comm.c:29:***************************************************************************/
comm.c:31:/*************************************************************************** 
comm.c:34:*       ROT license, in the file doc/rot.license                           * 
comm.c:35:***************************************************************************/
comm.c:37:/*
comm.c:39: *   startup, signals, BSD sockets for tcp/ip, i/o, timing.
comm.c:50: */
comm.c:55:#include <sys/types.h>
comm.c:56:#include <sys/time.h>
comm.c:72:/* command procedures needed */
comm.c:86:/*
comm.c:88: */
comm.c:101:/*
comm.c:105: */
comm.c:120:/*
comm.c:121: * Socket and TCP/IP stuff.
comm.c:122: */
comm.c:132:#include <netinet/in.h>
comm.c:133:#include <sys/socket.h>
comm.c:143:/*
comm.c:145: */
comm.c:147:#include <sys/select.h>
comm.c:148:/*int	accept		args( ( int s, struct sockaddr *addr, int *addrlen
comm.c:149:) );*/
comm.c:150:/*int	bind		args( ( int s, struct sockaddr *name, int namelen
comm.c:151:) );*/
comm.c:168:/*int	accept		args( ( int s, void *addr, int *addrlen ) );*/
comm.c:169:/*int	bind		args( ( int s, const void *addr, int addrlen )
comm.c:170:);*/
comm.c:182:#include <net/errno.h>
comm.c:183:#include <sys/fnctl.h>
comm.c:185:/*
comm.c:187://int	accept		args( ( int s, struct sockaddr *addr, int *addrlen ) );
comm.c:188://int	bind		args( ( int s, struct sockaddr *name, int namelen ) );
comm.c:200:*/
comm.c:243:/*int	accept		args( ( int s, struct sockaddr *addr, int *addrlen
comm.c:244:) );*/
comm.c:245:/*int	bind		args( ( int s, struct sockaddr *name, int namelen
comm.c:246:) );*/
comm.c:268:/* This includes Solaris Sys V as well */
comm.c:312:/*
comm.c:314: */
comm.c:315:DESCRIPTOR_DATA *   descriptor_list;	/* All open descriptors		*/
comm.c:316:DESCRIPTOR_DATA *   d_next;		/* Next descriptor in loop	*/
comm.c:317:FILE *		    fpReserve;		/* Reserved file handle		*/
comm.c:318:bool		    god;		/* All new chars are gods!	*/
comm.c:319:bool		    merc_down;		/* Shutdown			*/
comm.c:320:bool		    wizlock;		/* Game is wizlocked		*/
comm.c:321:bool		    newlock;		/* Game is newlocked		*/
comm.c:323:time_t		    current_time;	/* time of this pulse */	
comm.c:325:bool		    MOBtrigger = TRUE;  /* act() switch                 */
comm.c:330:/*
comm.c:332: */
comm.c:351:/*
comm.c:353: */
comm.c:365:/* Needs to be global because of do_copyover */
comm.c:373:    /*
comm.c:375:     */
comm.c:380:    /*
comm.c:382:     */
comm.c:387:    /*
comm.c:389:     */
comm.c:397:    /*
comm.c:399:     */
comm.c:407:        /*
comm.c:409:     */
comm.c:453:    /*
comm.c:455:     */
comm.c:481:    /*
comm.c:483:     */
comm.c:565:    /*
comm.c:567:     */
comm.c:576:    dcon.pEdit		= NULL;			/* OLC */
comm.c:577:    dcon.pString	= NULL;			/* OLC */
comm.c:578:    dcon.editor		= 0;			/* OLC */
comm.c:582:    /*
comm.c:584:     */
comm.c:642:    /* Main loop */
comm.c:647:	/*
comm.c:649:	 */
comm.c:686:	/* OLC */
comm.c:711:	/*
comm.c:713:	 */
comm.c:718:	/*
comm.c:720:	 */
comm.c:739:	/*
comm.c:742:	 */
comm.c:769:	    if ( delta >= 1000000 / PULSE_PER_SECOND )
comm.c:792:    /* Main loop */
comm.c:806:	/*
comm.c:808:	 */
comm.c:828:	/*
comm.c:830:	 */
comm.c:856:	/*
comm.c:858:	 */
comm.c:873:	/*
comm.c:875:	 */
comm.c:911:		/* OLC */
comm.c:936:	/*
comm.c:938:	 */
comm.c:943:	/*
comm.c:945:	 */
comm.c:965:	/*
comm.c:967:	 * Sleep( last_time + 1/PULSE_PER_SECOND - now ).
comm.c:969:	 */
comm.c:977:			+ 1000000 / PULSE_PER_SECOND;
comm.c:1013:/*void game_loop_unix( int control )
comm.c:1022:   */ /* Main loop *//*
comm.c:1036:      */	/*
comm.c:1038:	 *//*
comm.c:1057:*/
comm.c:1058:	/*
comm.c:1060:	 *//*
comm.c:1085:*/
comm.c:1086:	/*
comm.c:1088:	 *//*
comm.c:1102:*/
comm.c:1103:	/*
comm.c:1105:	 *//*
comm.c:1141:	*/	/* OLC *//*
comm.c:1165:*/
comm.c:1166:	/*
comm.c:1168:	 *//*
comm.c:1172:*/
comm.c:1173:	/*
comm.c:1175:	 *//*
comm.c:1195:*/	/*
comm.c:1197:	 * Sleep( last_time + 1/PULSE_PER_SECOND - now ).
comm.c:1199:	 *//*
comm.c:1207:			+ 1000000 / PULSE_PER_SECOND;
comm.c:1241:#endif*/
comm.c:1273:    /*
comm.c:1275:     */
comm.c:1276:/*   
comm.c:1284:*/
comm.c:1285:    dnew = new_descriptor(); /* new_descriptor now also allocates things */
comm.c:1287:    dnew->pEdit		= NULL;			/* OLC */
comm.c:1288:    dnew->pString	= NULL;			/* OLC */
comm.c:1289:    dnew->editor	= 0;			/* OLC */
comm.c:1299:	/*
comm.c:1302:	 */
comm.c:1317:    /*
comm.c:1324:     */
comm.c:1333:    /*
comm.c:1335:     */
comm.c:1339:    /*
comm.c:1341:     */
comm.c:1449:    /*
comm.c:1451:     */
comm.c:1469:	/*
comm.c:1472:	 */
comm.c:1510:        /*
comm.c:1513:         */
comm.c:1541:        /*
comm.c:1543:	 */
comm.c:1546:	/*
comm.c:1548:	 */
comm.c:1641:    /*        if ( IS_SET(ch->act2,PLR2_CHALLENGER) && arena == 0 )
comm.c:1652:         }*/
comm.c:1679:    /* Hold horses if pending command already. */
comm.c:1683:    /* Check for overflow. */
comm.c:1694:    /* Snarf input. */
comm.c:1745:/*
comm.c:1747: */
comm.c:1752:    /*
comm.c:1754:     */
comm.c:1758:    /*
comm.c:1760:     */
comm.c:1767:    /*
comm.c:1769:     */
comm.c:1776:	    /* skip the rest of the line */
comm.c:1793:    /*
comm.c:1795:     */
comm.c:1800:    /*
comm.c:1802:     */
comm.c:1850:    /*
comm.c:1852:     */
comm.c:1858:    /*
comm.c:1860:     */
comm.c:1870:/** Function: process_ansi_output
comm.c:1873:* Returns : TRUE/FALSE based on success of output to descriptor
comm.c:1874:* Syntax  : (N/A)
comm.c:1875:* Written : v1.0 5/98
comm.c:1877:*/
comm.c:1888:  /*
comm.c:1890:   */
comm.c:1894:  /*
comm.c:1896:   */
comm.c:1904:	{			/*
comm.c:1906:				 */
comm.c:1910:	    break;		/* problems...  */
comm.c:1913:	  counter = output;	/* increment counter  */
comm.c:1922:      /*
comm.c:1924:       */
comm.c:1925:      /*
comm.c:1927:       */
comm.c:1930:      clcode[0] = '\0';		/* Initialize buffer  */
comm.c:2059:	case 'A':	/* Auction Channel */
comm.c:2065:	case 'E':	/* Clan Gossip Channel */
comm.c:2071:	case 'F':	/* Clan Talk Channel */
comm.c:2077:	case 'H':	/* Gossip Channel */
comm.c:2083:	case 'J':	/* Grats Channel */
comm.c:2089:	case 'K':	/* Group Tell Channel */
comm.c:2095:	case 'L':	/* Immortal Talk Channel */
comm.c:2101:	case 'N':	/* Music Channel */
comm.c:2107:	case 'P':	/* Question+Answer Channel */
comm.c:2113:	case 'Q':	/* Quote Channel */
comm.c:2119:	case 'S':	/* Say Channel */
comm.c:2125:	case 'T':	/* Shout+Yell Channel */
comm.c:2131:	case 'U':	/* Tell+Reply Channel */
comm.c:2137:	case 'V':	/* Wiznet Messages */
comm.c:2143:	case 'a':	/* Mobile Talk */
comm.c:2149:	case 'e':	/* Room Title */
comm.c:2155:	case 'f':	/* Opponent Condition */
comm.c:2161:	case 'h':	/* Fight Actions */
comm.c:2167:	case 'i':	/* Opponents Fight Actions */
comm.c:2173:	case 'j':	/* Disarm Messages */
comm.c:2179:	case 'k':	/* Witness Messages */
comm.c:2185:	case 'l':	/* Quest Gossip */
comm.c:2196:      /*
comm.c:2198:       */
comm.c:2199:      work++;			/* pass the ansi request code  */
comm.c:2201:      /*
comm.c:2203:       */
comm.c:2217:/*
comm.c:2219: */
comm.c:2224:    /*
comm.c:2226:     */
comm.c:2241:        /* battle prompt */
comm.c:2249:                percent = victim->hit * 100 / victim->max_hit;
comm.c:2286:                percent = ch->hit * 100 / ch->max_hit;
comm.c:2314:/*            write_to_buffer( d, buf, 0); */
comm.c:2330:    /*
comm.c:2332:     */
comm.c:2336:    /*
comm.c:2338:     */
comm.c:2350:/*
comm.c:2354: */
comm.c:2437:    }/*
comm.c:2443:*/	    
comm.c:2486:    if( IS_IMMORTAL( ch))// && ch->in_room != NULL) )
comm.c:2497:    if( IS_IMMORTAL( ch ))// && ch->in_room != NULL ))
comm.c:2513:/*
comm.c:2515: */
comm.c:2518:    /*
comm.c:2520:     */
comm.c:2524:    /*
comm.c:2526:     */
comm.c:2534:    /*
comm.c:2536:     */
comm.c:2554:    /*
comm.c:2556:     */
comm.c:2564:/*
comm.c:2569: */
comm.c:2596:/*
comm.c:2598: */
comm.c:2663:/*
comm.c:2670:*/
comm.c:2698:	    /* Old player */
comm.c:2706:	    /* New player */
comm.c:2722:	    sprintf( buf, "Did I get that right, %s (Y/N)? ", argument );
comm.c:2754:/*	if (IS_SET(ch->act, PLR_REROLL ) )
comm.c:2790:OLD REROLL DUDE! */
comm.c:2792:       /*if ( IS_IMMORTAL(ch) )
comm.c:2796: 	}*/
comm.c:2848:/* RT code for breaking link */
comm.c:2987:    write_to_buffer(d,  "{gWould you like to turn {Yoff{g ANSI Colour now? ({WY{g/{RN{g){x",0);
comm.c:3072:	/* initialize stats */
comm.c:3085:	/* add skills */
comm.c:3092:	/* add cost */
comm.c:3105:/*
comm.c:3106:        write_to_buffer(d,  "{WWhat is your sex {w({BM{x/{MF{x/{RN{w){W?{x ", 0 );
comm.c:3107:        d->connected = CON_GET_NEW_SEX;*/
comm.c:3130:	write_to_buffer( d, echo_on_str, 0 );/*
comm.c:3142:	d->connected = CON_GET_NEW_CLASS;*/
comm.c:3144:        write_to_buffer(d,  "{WWhich alignment {w({BG{w/{GN{w/{DE{x){W?{x ",0);
comm.c:3169:	write_to_buffer( d, "\n\r", 2 );/*
comm.c:3171:	write_to_buffer(d,  "{WWhich alignment {w({BG{w/{GN{w/{DE{x){W?{x ",0);
comm.c:3172:	d->connected = CON_GET_ALIGNMENT;*/
comm.c:3173:        write_to_buffer(d,  "{WWhat is your sex {w({BM{x/{MF{x/{RN{w){W?{x ", 0 );
comm.c:3185:		write_to_buffer(d, "Which alignment (G/N/E)? ",0);
comm.c:3196:	write_to_buffer(d, "{WCustomize {w({YY{w/{RN{w){W?{x ",0);
comm.c:3230:            write_to_buffer(d,  "{WPlease answer {w({YY{w/{RN{w){W?{x ", 0 );
comm.c:3269:		ch->train = (40 - ch->pcdata->points + 1) / 2;
comm.c:3341:                                {WIP/Host: {c%s{x\n\r\n\r\n\r", 
comm.c:3350:/* add this while initializing all the racial stuff for new characters */
comm.c:3359:            ch->pcdata->plr_wager    = 0; /* arena betting amount */
comm.c:3360:            ch->pcdata->awins        = 0; /* arena wins           */
comm.c:3361:            ch->pcdata->alosses      = 0; /* arena losses         */
comm.c:3376:/*	    do_help(ch,"NEWBIE INFO");*/
comm.c:3424:/*
comm.c:3426: */
comm.c:3430:    /*
comm.c:3432:     */
comm.c:3442:    /*
comm.c:3444:     */
comm.c:3463:    /*
comm.c:3465:     */
comm.c:3480:    /*
comm.c:3483:     */
comm.c:3495:	    if ( isupper(*pc)) /* ugly anti-caps hack */
comm.c:3512:	if (cleancaps || (total_caps > (strlen(name)) / 2 && strlen(name) < 3))
comm.c:3516:    /*
comm.c:3518:     */
comm.c:3536:    /*
comm.c:3539:     */
comm.c:3568:/*
comm.c:3570: */
comm.c:3626:/*
comm.c:3628: */
comm.c:3643:	    write_to_buffer( d, "Do you wish to connect anyway (Y/N)?",0);
comm.c:3678:/*
comm.c:3680: */
comm.c:3703:/* string pager */
comm.c:3758:/* quick sex fixer */
comm.c:3768:/*
comm.c:3770: */
comm.c:4095:	case 'A':	/* Auction Channel */
comm.c:4105:	case 'E':	/* Clan Gossip Channel */
comm.c:4115:	case 'F':	/* Clan Talk Channel */
comm.c:4125:	case 'H':	/* Gossip Channel */
comm.c:4135:	case 'J':	/* Grats Channel */
comm.c:4145:	case 'K':	/* Group Tell Channel */
comm.c:4155:	case 'L':	/* Immortal Talk Channel */
comm.c:4165:	case 'N':	/* Music Channel */
comm.c:4175:	case 'P':	/* Question+Answer Channel */
comm.c:4185:	case 'Q':	/* Quote Channel */
comm.c:4195:	case 'S':	/* Say Channel */
comm.c:4205:	case 'T':	/* Shout+Yell Channel */
comm.c:4215:	case 'U':	/* Tell+Reply Channel */
comm.c:4225:	case 'V':	/* Wiznet Messages */
comm.c:4235:	case 'a':	/* Mobile Talk */
comm.c:4245:	case 'e':	/* Room Title */
comm.c:4255:	case 'f':	/* Opponent Condition */
comm.c:4265:	case 'h':	/* Fight Actions */
comm.c:4275:	case 'i':	/* Opponents Fight Actions */
comm.c:4285:	case 'j':	/* Disarm Messages */
comm.c:4295:	case 'k':	/* Witness Messages */
comm.c:4305:	case 'l':	/* Quest Gossip */
comm.c:4324:/*
comm.c:4326: */
comm.c:4516:    /* to be compatible with older code */
comm.c:4519:/*
comm.c:4525:}*/
comm.c:4617:/*
comm.c:4619: */
comm.c:4640:/* source: EOD, by John Booth <???> */
comm.c:4658:    spaces=(columns-strlen(argument))/2;
comm.c:4673:    /* top border */
comm.c:4680:    /* middle */
comm.c:4691:    /* bottom border */
comm.c:4711:/*
comm.c:4722:*/
comm.c:4727:/* This file holds the copyover data */
comm.c:4730:/* This is the executable file */
comm.c:4731:#define EXE_FILE	  "../src/rot"
comm.c:4733:/*
comm.c:4735:telnet://areth.com:4000
comm.c:4736:*/
comm.c:4740:/*  Copyover - Original idea: Fusion of MUD++
comm.c:4742: *  http://pip.dknet.dk/~pip1773
comm.c:4744: */
comm.c:4751:	extern int port, wwwport, control, wwwcontrol; /* db.c */
comm.c:4764:  /* Consider changing all saved areas here, if you use OLC */
comm.c:4765:  do_asave (NULL, "changed");	/* - autosave changed areas */
comm.c:4766:  //save_gquest_data();
comm.c:4770:	/* For each playing descriptor, save its state */
comm.c:4774:		d_next = d->next; /* We delete from the list , so need to save this */
comm.c:4776:		if (!d->character || d->connected > CON_PLAYING) /* drop those logging on */
comm.c:4779:			close_socket (d); /* throw'em out */
comm.c:4791:	/* Close reserve and other always-open files and release other resources */
comm.c:4795:	/* exec - descriptors are inherited */
comm.c:4805:	/* Failed - sucessful exec will not return */
comm.c:4809:	/* Here you might want to reopen fpReserve */
comm.c:4814:/* Recover from a copyover - load players */
comm.c:4828:	if (!fp) /* there are some descriptors open which will hang forever then ? */
comm.c:4835:	unlink (COPYOVER_FILE); /* In case something crashes - doesn't prevent reading	*/
comm.c:4843:		/* Write something, and check if it goes error-free */		
comm.c:4846:			close (desc); /* nope */
comm.c:4856:		d->connected = CON_COPYOVER_RECOVER; /* -15, so close_socket frees the char */
comm.c:4859:		/* Now, find the pfile */
comm.c:4863:		if (!fOld) /* Player file not found?! */
comm.c:4868:		else /* ok! */
comm.c:4872:			/* Just In Case */
comm.c:4876:			/* Insert in the char_list */
const.c:1:/***************************************************************************
const.c:16: ***************************************************************************/
const.c:18:/***************************************************************************
const.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
const.c:26:***************************************************************************/
const.c:28:/*************************************************************************** 
const.c:31:*       ROT license, in the file doc/rot.license                           * 
const.c:32:***************************************************************************/
const.c:37:#include <sys/types.h>
const.c:62:/* item type list */
const.c:102:/* weapon selection table */
const.c:118:/* wiznet table and prototype for future flag setting */
const.c:145:/* attack table  -- not very organized :(
const.c:148: */
const.c:151:    { 	"none",		"hit",		-1		},  /*  0 */
const.c:156:    {   "claw",		"claw",		DAM_SLASH	},  /*  5 */
const.c:161:    {	"bite",		"bite",		DAM_PIERCE	},  /* 10 */
const.c:166:    {	"charge",	"charge",	DAM_BASH	},  /* 15 */
const.c:171:    {   "divine",	"divine power",	DAM_HOLY	},  /* 20 */
const.c:176:    {   "chop",		"chop",		DAM_SLASH	},  /* 25 */
const.c:181:    {	"frbite",	"freezing bite", DAM_COLD	},  /* 30 */
const.c:191:    {   "typo",		"typo",		DAM_SLASH	}, /* 40 */
const.c:195:/* race table */
const.c:198:/*
const.c:210:*/
const.c:698:/*
const.c:710:*/
const.c:788:/*
const.c:801:*/
const.c:939:/*
const.c:951:*/
const.c:1434:/*
const.c:1436: */
const.c:1440:/*
const.c:1446:*/
const.c:1673:/*
const.c:1675: */
const.c:1679:/*	Mage	*/
const.c:1796:/*	Cleric	*/
const.c:1913:/*	Thief	*/
const.c:2030:/*	Warrior	*/
const.c:2147:/*	Ranger	*/
const.c:2264:/*	Druid	*/
const.c:2381:/*	Revenant	*/
const.c:2498:/*	Wizard	*/
const.c:2615:/*	Priest	*/
const.c:2732:/*	Mercenary	*/
const.c:2849:/*	Gladiator	*/
const.c:2966:/*	Strider	*/
const.c:3083:/*	Sage	*/
const.c:3200:/*	Vampire	*/
const.c:3315:/*	Sorcerer	*/
const.c:3432:  /*  Bishop	*/
const.c:3550:/*Assassin*/
const.c:3669:/*Berserker Class*/
const.c:3786:/*	Elder	*/
const.c:3904:/*lich*/
const.c:4020:/*	Mage	*/
const.c:4137:/*	Cleric	*/
const.c:4254:/*	Thief	*/
const.c:4371:/*	Warrior	*/
const.c:4488:/*	Ranger	*/
const.c:4605:/*	Druid	*/
const.c:4722:/*	Revenant	*/
const.c:4841:/*
const.c:4843: */
const.c:4846:    { -5, -4,   0,  0 },  /* 0  */
const.c:4847:    { -5, -4,   3,  1 },  /* 1  */
const.c:4849:    { -3, -1,  10,  3 },  /* 3  */
const.c:4851:    { -2, -1,  55,  5 },  /* 5  */
const.c:4856:    {  0,  0, 115, 10 }, /* 10  */
const.c:4859:    {  0,  0, 130, 13 }, /* 13  */
const.c:4861:    {  1,  1, 150, 15 }, /* 15  */
const.c:4864:    {  2,  3, 200, 25 }, /* 18  */
const.c:4866:    {  3,  5, 250, 35 }, /* 20  */
const.c:4871:    {  6,  9, 500, 60 }  /* 25   */
const.c:4878:    {  3 },	/*  0 */
const.c:4879:    {  5 },	/*  1 */
const.c:4881:    {  8 },	/*  3 */
const.c:4883:    { 10 },	/*  5 */
const.c:4888:    { 32 },	/* 10 */
const.c:4893:    { 70 },	/* 15 */
const.c:4896:    { 88 },	/* 18 */
const.c:4898:    { 98 },	/* 20 */
const.c:4903:    { 114 }	/* 25 */
const.c:4910:    { 0 },	/*  0 */
const.c:4911:    { 0 },	/*  1 */
const.c:4913:    { 0 },	/*  3 */
const.c:4915:    { 1 },	/*  5 */
const.c:4920:    { 1 },	/* 10 */
const.c:4925:    { 2 },	/* 15 */
const.c:4928:    { 3 },	/* 18 */
const.c:4930:    { 3 },	/* 20 */
const.c:4935:    { 5 }	/* 25 */
const.c:4942:    {   60 },   /* 0 */
const.c:4943:    {   50 },   /* 1 */
const.c:4947:    {   20 },   /* 5 */
const.c:4952:    {    0 },   /* 10 */
const.c:4957:    { - 10 },   /* 15 */
const.c:4962:    { - 50 },   /* 20 */
const.c:4967:    { -120 }    /* 25 */
const.c:4973:    {  0, 20 },   /*  0 */
const.c:4974:    {  1, 25 },   /*  1 */
const.c:4976:    {  3, 35 },	  /*  3 */
const.c:4978:    {  5, 45 },   /*  5 */
const.c:4983:    { 10, 70 },   /* 10 */
const.c:4988:    { 15, 90 },   /* 15 */
const.c:4991:    { 18, 100 },   /* 18 */
const.c:4993:    { 20, 110 },   /* 20 */
const.c:4998:    { 60, 160 }    /* 25 */
const.c:5003:/*
const.c:5008: */
const.c:5011:/*    name			color	proof, full, thirst, food, ssize */
const.c:5061:/*
const.c:5064: */
const.c:5070:/*
const.c:5072: */
const.c:5074:/*
const.c:5086:	NAME		Name of Spell/Skill
const.c:5087:	SKILL_LEVELS	Levels to obtain spell/skill per class
const.c:5092:	MIN_POSTITION	Position for caster/user
const.c:5104:*/
const.c:7259:/*
const.c:7261: */
const.c:7337:/*
const.c:7339:*/
const.c:7666:/*
const.c:7667: * Spells for mega1.are from Glop/Erkenbrand.
const.c:7668: */
const.c:7698:/* combat and weapons skills */
const.c:8316:/* non-combat skills */
const.c:8778:/*
const.c:8787:*/
const.c:9303:    },/*
const.c:9322:    },*/
curse.c:1:/***************************************************************************
curse.c:16: ***************************************************************************/
curse.c:18:/***************************************************************************
curse.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
curse.c:26:***************************************************************************/
curse.c:28:/*************************************************************************** 
curse.c:31:*       ROT license, in the file doc/rot.license                           * 
curse.c:32:***************************************************************************/
curse.c:38:#include <sys/types.h>
curse.c:39:#include <sys/time.h>
curse.c:55:    /* check for priest */
curse.c:72:        /* display price list */
curse.c:137:	deduct_cost(ch,cost/5,VALUE_SILVER);
curse.c:146:    if (spell == NULL)  /* Decrease alignment toward evil */
db.c:1:/***************************************************************************
db.c:16: ***************************************************************************/
db.c:18:/***************************************************************************
db.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
db.c:26:***************************************************************************/
db.c:28:/*************************************************************************** 
db.c:31:*       ROT license, in the file doc/rot.license                           * 
db.c:32:***************************************************************************/
db.c:45:#include <sys/types.h>
db.c:46:#include <sys/time.h>
db.c:47:#include <sys/resource.h>
db.c:63://long random();
db.c:70:/* externals for counting purposes */
db.c:77:/*
db.c:79: */
db.c:108://GQUEST gquest_info;
db.c:151:/* new gsns */
db.c:191:/*
db.c:193: */
db.c:216:int                     top_vnum_room;		/* OLC */
db.c:217:int                     top_vnum_mob;		/* OLC */
db.c:218:int                     top_vnum_obj;		/* OLC */
db.c:219:int			top_mprog_index;	/* OLC */
db.c:226:/*
db.c:230: */
db.c:248:/*
db.c:250: */
db.c:257:/*
db.c:259:*/
db.c:262:void    new_load_area   args( ( FILE *fp ) );   /* OLC */
db.c:271:/*void 	load_socials	args( ( FILE *fp ) );
db.c:272:*/
db.c:285:/*
db.c:287: */
db.c:291:    /*
db.c:293:     */
db.c:308:    /*
db.c:310:     */
db.c:320:    /*
db.c:322:     */
db.c:330:			/ (PULSE_TICK / PULSE_PER_SECOND);
db.c:333:	lday		= lhour  / 24;
db.c:335:	lmonth		= lday   / 35;
db.c:338:	time_info.year	= lmonth / 17;
db.c:360:    /* reboot counter */
db.c:361:	reboot_counter = 1440;	/* 12 hours */
db.c:366:    /*
db.c:368:     */
db.c:382:    /*
db.c:384:     */
db.c:435:/* OLC */     else if ( !str_cmp( word, "AREADATA" ) ) new_load_area(fpArea);
db.c:445:	/*	else if ( !str_cmp( word, "SOCIALS"  ) ) load_socials (fpArea);*/
db.c:461:    /*
db.c:466:     */
db.c:474:        convert_objects( );           /* ROM OLC */
db.c:500:    //log_string("Loading Gquest Data.");
db.c:501:      //  load_gquest_data();     
db.c:519:/*
db.c:521: */
db.c:527:   /*  pArea->reset_first	= NULL;
db.c:528:    pArea->reset_last	= NULL; */
db.c:532:    pArea->area_flags   = AREA_LOADING;         /* OLC */
db.c:533:    pArea->security     = 9;                    /* OLC */ /* 9 -- Hugin */
db.c:534:    pArea->builders     = str_dup( "None" );    /* OLC */
db.c:535:    pArea->vnum         = top_area;             /* OLC */
db.c:550:   REMOVE_BIT(area_last->area_flags, AREA_LOADING);        /* OLC */
db.c:558:/*
db.c:563: */
db.c:587:/* OLC
db.c:596: */
db.c:610:    pArea->security     = 9;                    /* 9 -- Hugin */
db.c:615:/*  pArea->recall       = ROOM_VNUM_TEMPLE;        ROM OLC */
db.c:663:/*
db.c:665: */
db.c:680:/*
db.c:682: */
db.c:725:/*
db.c:727: */
db.c:731:    /* for race updating */
db.c:735:    if ( !area_last )   /* OLC */
db.c:768:      pMobIndex->area                 = area_last;               /* OLC */
db.c:785:	/*
db.c:788:	 */
db.c:789:					  fread_number( fp );	/* Unused */
db.c:790:					  fread_number( fp );	/* Unused */
db.c:791:					  fread_number( fp );	/* Unused */
db.c:792:	/* 'd'		*/		  fread_letter( fp );	/* Unused */
db.c:793:					  fread_number( fp );	/* Unused */
db.c:794:	/* '+'		*/		  fread_letter( fp );	/* Unused */
db.c:795:					  fread_number( fp );	/* Unused */
db.c:796:					  fread_number( fp );	/* Unused */
db.c:797:	/* 'd'		*/		  fread_letter( fp );	/* Unused */
db.c:798:					  fread_number( fp );	/* Unused */
db.c:799:	/* '+'		*/		  fread_letter( fp );	/* Unused */
db.c:800:					  fread_number( fp );	/* Unused */
db.c:801:        pMobIndex->wealth               = fread_number( fp )/20;	
db.c:802:	/* xp can't be used! */		  fread_number( fp );	/* Unused */
db.c:803:	pMobIndex->start_pos		= fread_number( fp );	/* Unused */
db.c:804:	pMobIndex->default_pos		= fread_number( fp );	/* Unused */
db.c:811:	/*
db.c:813:	 */
db.c:816:    	/* compute the race BS */
db.c:821:            /* fill in with blanks */
db.c:849:      	convert_mobile( pMobIndex );                           /* ROM OLC */
db.c:855:       top_vnum_mob = top_vnum_mob < vnum ? vnum : top_vnum_mob;  /* OLC */
db.c:856:        assign_area_vnum( vnum );                                  /* OLC */
db.c:863:/*
db.c:865: */
db.c:870:      if ( !area_last )   /* OLC */
db.c:903:      pObjIndex->area                 = area_last;            /* OLC */
db.c:909:	/* Action description */	  fread_string( fp );
db.c:926:	pObjIndex->cost			= fread_number( fp );	/* Unused */
db.c:927:	/* Cost per day */		  fread_number( fp );
db.c:951:		paf->level		= 20; /* RT temp fix */
db.c:980:        /* fix armors */
db.c:987:	/*
db.c:989:	 */
db.c:1011:        top_vnum_obj = top_vnum_obj < vnum ? vnum : top_vnum_obj;   /* OLC */
db.c:1012:        assign_area_vnum( vnum );                                   /* OLC */
db.c:1018:/*
db.c:1021: */
db.c:1050:/*
db.c:1052: */
db.c:1083:	/* if_flag */	  fread_number( fp );
db.c:1092:	/*
db.c:1095:	 */
db.c:1189:/*
db.c:1191: */
db.c:1240:	/* Area number *///		  fread_number( fp );
db.c:1243:	/* horrible hack */
db.c:1246://	if ( 20000 <= vnum && vnum < 21000)
db.c:1247:	//   SET_BIT(pRoomIndex->room_flags,ROOM_NOWHERE);
db.c:1253:	/* defaults */
db.c:1264:	    if ( letter == 'H') /* healing room */
db.c:1267:	    else if ( letter == 'M') /* mana room */
db.c:1270:	   else if ( letter == 'C') /* clan */
db.c:1297:             pexit->rs_flags         = 0;                    /* OLC */
db.c:1301:            	pexit->orig_door	= door;			/* OLC */
db.c:1354:       top_vnum_room = top_vnum_room < vnum ? vnum : top_vnum_room; /* OLC */
db.c:1355:        assign_area_vnum( vnum );                                    /* OLC */
db.c:1361:/*
db.c:1363: */
db.c:1413:/*
db.c:1415: */
db.c:1444:/*
db.c:1446: */
db.c:1484:/*
db.c:1486: */
db.c:1522:/*
db.c:1526: */
db.c:1529:/*    extern const sh_int rev_dir [];
db.c:1530:    char buf[MAX_STRING_LENGTH]; */
db.c:1532:/*    ROOM_INDEX_DATA *to_room; */
db.c:1534:/*    EXIT_DATA *pexit_rev; */
db.c:1567:/*
db.c:1595:*/
db.c:1602:/*
db.c:1604: */
db.c:1617:	/*
db.c:1620:	 */
db.c:1647:/*		pRoomIndex = get_room_index( ROOM_VNUM_CLANS );*/
db.c:1664:/* OLC
db.c:1666: */
db.c:1689:	  /*  && !IS_SET( pExit->exit_info, EX_BASHED )   ROM OLC */ )  
db.c:1695:                /* nail the other side */
db.c:1734:/* */
db.c:1750:/* */
db.c:1753:            /*
db.c:1755:             */
db.c:1759:            /*
db.c:1761:             */
db.c:1776:            level  = URANGE( 0, pMob->level - 2, LEVEL_ANCIENT - 1 ); /* -1 ROM */
db.c:1807:	   pObj = create_object( pObjIndex,              /* UMIN - ROM OLC */
db.c:1826:            if (pReset->arg2 > 50) /* old format */
db.c:1828:            else if (pReset->arg2 == -1) /* no limit */
db.c:1836:              || ( pObjIndex->count >= limit /* && number_range(0,4) != 0 */ )
db.c:1842:                                          /* lastObj->level  -  ROM */
db.c:1853:	    /* fix object lock state! */
db.c:1878:	     if ( LastMob->pIndexData->pShop )   /* Shop-keeper? */
db.c:1903:	    olevel = UMAX(0,(olevel * 3 / 4) - 2);
db.c:1909:                /* ROM patch weapon, treasure */
db.c:1913:#if 0 /* envy version */
db.c:1918:#endif /* envy version */
db.c:1924:		SET_BIT( pObj->extra_flags, ITEM_INVENTORY );  /* ROM OLC */
db.c:1926:#if 0 /* envy version */
db.c:1929:#endif /* envy version */
db.c:1933:	    else   /* ROM OLC else version */
db.c:1936:		if (pReset->arg2 > 50 )  /* old format */
db.c:1938:		else if ( pReset->arg2 == -1 || pReset->arg2 == 0 )  /* no limit */
db.c:1947:		    /* error message if it is too high */
db.c:1948:/*
db.c:1959:*/
db.c:1965:#if 0 /* envy else version */
db.c:1970:#endif /* envy else version */
db.c:2009:	 /* OLC
db.c:2011: */
db.c:2026:/*
db.c:2028: */
db.c:2047:    mob->name		= str_dup( pMobIndex->player_name );    /* OLC */
db.c:2048:    mob->short_descr	= str_dup( pMobIndex->short_descr );    /* OLC */
db.c:2049:    mob->long_descr	= str_dup( pMobIndex->long_descr );     /* OLC */
db.c:2050:    mob->description	= str_dup( pMobIndex->description );    /* OLC */
db.c:2065:	wealth = number_range(pMobIndex->wealth/2, 3 * pMobIndex->wealth/2);
db.c:2066:	mob->gold = number_range(wealth/200,wealth/100);
db.c:2071:    /* load in new style */
db.c:2073:	/* read from prototype */
db.c:2098:                case (1): mob->dam_type = 3;        break;  /* slash */
db.c:2099:                case (2): mob->dam_type = 7;        break;  /* pound */
db.c:2100:                case (3): mob->dam_type = 11;       break;  /* pierce */
db.c:2111:        if (mob->sex == 3) /* random sex */
db.c:2121:	/* computed on the spot */
db.c:2124:            mob->perm_stat[i] = UMIN(25,11 + mob->level/4);
db.c:2179:        mob->perm_stat[STAT_CON] += (mob->size - SIZE_MEDIUM) / 2;
db.c:2181:	/* let's get some spell action */
db.c:2231:    else /* read in old format and convert */
db.c:2241:					mob->level * mob->level/4,
db.c:2249:	    case (1): mob->dam_type = 3; 	break;  /* slash */
db.c:2250:	    case (2): mob->dam_type = 7;	break;  /* pound */
db.c:2251:	    case (3): mob->dam_type = 11;	break;  /* pierce */
db.c:2272:            mob->perm_stat[i] = 11 + mob->level/4;
db.c:2278:    /* link the mob to the world list */
db.c:2285:/* duplicate a mobile exactly -- except inventory */
db.c:2294:    /* start fixing values */ 
db.c:2358:    /* now add the affects */
db.c:2366:/*
db.c:2368: */
db.c:2393:    obj->name		= str_dup( pObjIndex->name );           /* OLC */
db.c:2394:    obj->short_descr	= str_dup( pObjIndex->short_descr );    /* OLC */
db.c:2395:    obj->description	= str_dup( pObjIndex->description );    /* OLC */
db.c:2415:    /*
db.c:2417:     */
db.c:2448:	    obj->cost /= 5;
db.c:2485:	    obj->value[1] = number_fuzzy( number_fuzzy( 1 * level / 4 + 2 ) );
db.c:2486:	    obj->value[2] = number_fuzzy( number_fuzzy( 3 * level / 4 + 6 ) );
db.c:2493:	    obj->value[0]	= number_fuzzy( level / 5 + 3 );
db.c:2494:	    obj->value[1]	= number_fuzzy( level / 5 + 3 );
db.c:2495:	    obj->value[2]	= number_fuzzy( level / 5 + 3 );
db.c:2522:/* duplicate an object exactly -- except contents */
db.c:2532:    /* start fixing the object */
db.c:2550:    /* affects */
db.c:2556:    /* extended desc */
db.c:2570:/*
db.c:2572: */
db.c:2606:/*
db.c:2608: */
db.c:2631:/*
db.c:2634: */
db.c:2658:/*
db.c:2661: */
db.c:2685:/*
db.c:2688: */
db.c:2712:/*
db.c:2714: */
db.c:2730:/*
db.c:2732: */
db.c:2780:/*
db.c:2782: */
db.c:2891:	bitsum = 67108864; /* 2^26 */
db.c:2902:/*
db.c:2909: */
db.c:2922:    /*
db.c:2925:     */
db.c:2937:        /*
db.c:2941:         */
db.c:2950:	/* temp fix */
db.c:2953:            /* exit( 1 ); */
db.c:3034:    /*
db.c:3037:     */
db.c:3113:/*
db.c:3115: */
db.c:3138:/*
db.c:3140: */
db.c:3181:/*
db.c:3184: */
db.c:3224:/*
db.c:3227: */
db.c:3265:/*
db.c:3269: */
db.c:3303:/*
db.c:3306: */
db.c:3324:/*
db.c:3328: */
db.c:3341:/*
db.c:3359:    iAreaHalf = (top_area + 1) / 2;
db.c:3386:*/
db.c:3389:/* Code by Nebseni of Clandestine MUD */
db.c:3406:/* Code by Nebseni of Clandestine MUD ...
db.c:3407:   thanks to Erwin Andreasan for help with sscanf */
db.c:3408:/* Returns long (MAX_LEVEL + 1)*low-level + high-level */
db.c:3409:/* Example: Area with credits line: 
db.c:3412:   returns 221*10 + 25 = 2235 */
db.c:3413:/* Use modulo arithmetic for individual numbers, e.g.,
db.c:3414:   lo_level = get_area_level(Area) / (MAX_LEVEL+1);
db.c:3415:   hi_level = get_area_level(Area) % (MAX_LEVEL+1); */
db.c:3433:/* Code by Nebseni of Clandestine MUD */
db.c:3434:/* Creates a linked list starting with area_first_sorted, linking
db.c:3435:   on pArea->next_sort. Sorted on get_area_level. */
db.c:3446:  /* if only one area it is already sorted! */
db.c:3450:  /* iterate through the rest of the areas */
db.c:3456:    /* this area goes at head of sorted list */
db.c:3462:    /* iterate through list and insert appropriately */
db.c:3484:/*
db.c:3513:    if ( (get_area_level(pArea) / (MAX_LEVEL+1) <= hi_level) &&
db.c:3542:*/
db.c:3572:    if ( (get_area_level(pArea) / (MAX_LEVEL+1) <= hi_level) &&
db.c:3650:    /* open file */
db.c:3654:    /* report use of data structures */
db.c:3659:    /* mobile prototypes */
db.c:3663:    /* mobs */
db.c:3679:    /* pcdata */
db.c:3687:    /* descriptors */
db.c:3697:    /* object prototypes */
db.c:3710:    /* objects */
db.c:3724:    /* affects */
db.c:3732:    /* rooms */
db.c:3736:     /* exits */
db.c:3742:    /* start printing out mobile data */
db.c:3758:    /* start printing out object data */
db.c:3773:    /* close file */
db.c:3780:/*
db.c:3782: */
db.c:3796:/*
db.c:3798: */
db.c:3821:/*
db.c:3823: */
db.c:3836:/*
db.c:3838: */
db.c:3857:/*
db.c:3862: */
db.c:3864:/* I noticed streaking with this random number generator, so I switched
db.c:3866:   define OLD_RAND to use the old system -- Alander */
db.c:3926:/*
db.c:3928: */
db.c:3948:/*
db.c:3950: */
db.c:3953:    return value_00 + level * (value_32 - value_00) / 32;
db.c:3958:/*
db.c:3961: */
db.c:3975:/*
db.c:3979: */
db.c:4005:/*
db.c:4009: */
db.c:4033:/*
db.c:4037: */
db.c:4061:/*
db.c:4065: */
db.c:4089:/*
db.c:4093: */
db.c:4117:/*
db.c:4120: */
db.c:4138:/* make sure we don't start an infinite loop */
db.c:4178:/*
db.c:4181: */
db.c:4199:/* make sure we don't start an infinite loop */
db.c:4240:/*
db.c:4244: */
db.c:4260:/*
db.c:4262: */
db.c:4276:/*
db.c:4278: */
db.c:4305:/*
db.c:4307: */
db.c:4335:/* RT removed because we don't want bugs shutting the mud 
db.c:4341:*/
db.c:4347:/* RT removed due to bug-file spamming 
db.c:4355:*/
db.c:4362:/*
db.c:4364: */
db.c:4377:/*
db.c:4390: */
db.c:4605:/*
db.c:4608: */
db2.c:1:/***************************************************************************
db2.c:16: ***************************************************************************/
db2.c:18:/***************************************************************************
db2.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
db2.c:26:***************************************************************************/
db2.c:28:/*************************************************************************** 
db2.c:31:*       ROT license, in the file doc/rot.license                           * 
db2.c:32:***************************************************************************/
db2.c:43:#include <sys/types.h>
db2.c:44:#include <sys/time.h>
db2.c:54:/* values for db2.c */
db2.c:55:/*
db2.c:58:*/
db2.c:59:/* snarf a socials file */
db2.c:60:/*
db2.c:189:  */  
db2.c:195:/*
db2.c:197: */
db2.c:202:     if ( !area_last )   /* OLC */
db2.c:235:         pMobIndex->area                 = area_last;               /* OLC */
db2.c:262:	/* read hit dice */
db2.c:264:        /* 'd'          */                fread_letter( fp ); 
db2.c:266:        /* '+'          */                fread_letter( fp );   
db2.c:269: 	/* read mana dice */
db2.c:276:	/* read damage dice */
db2.c:284:	/* read armor class */
db2.c:290:	/* read flags and add in data from the race table */
db2.c:300:	/* vital statistics */
db2.c:311:	/* size */
db2.c:396:         top_vnum_mob = top_vnum_mob < vnum ? vnum : top_vnum_mob;  /* OLC */
db2.c:397:        assign_area_vnum( vnum );                                  /* OLC */
db2.c:404:/*
db2.c:406: */
db2.c:411:    if ( !area_last )   /* OLC */
db2.c:444:        pObjIndex->area                 = area_last;            /* OLC */
db2.c:510:        /* condition */
db2.c:597:	   else if ( letter == 'C') /* clan */
db2.c:623:	   else if ( letter == 'G') /* guild */
db2.c:644:         top_vnum_obj = top_vnum_obj < vnum ? vnum : top_vnum_obj;   /* OLC */
db2.c:645:        assign_area_vnum( vnum );                                   /* OLC */
db2.c:651:/*****************************************************************************
db2.c:661:*****************************************************************************/
db2.c:671:    if ( newobjs == top_obj_index ) return; /* all objects in new format */
db2.c:779:		} /* switch ( pReset->command ) */
db2.c:784:    /* do the conversion: */
db2.c:797:/*****************************************************************************
db2.c:803: ****************************************************************************/
db2.c:807:    int number, type;  /* for dice-conversion */
db2.c:813:    pObjIndex->level    = UMAX( 0, pObjIndex->level ); /* just to be sure */
db2.c:847:	    /*
db2.c:870:	     */
db2.c:872:	    number = UMIN(level/4 + 1, 5);
db2.c:873:	    type   = (level + 7)/number;
db2.c:880:            pObjIndex->value[0] = level / 5 + 3;
db2.c:903:/*****************************************************************************
db2.c:909: ****************************************************************************/
db2.c:922:    /*
db2.c:946:     */
db2.c:947:    type   = level*level*27/40;
db2.c:948:    number = UMIN(type/40 + 1, 10); /* how do they get 11 ??? */
db2.c:949:    type   = UMAX(2, type/number);
db2.c:960:    /*
db2.c:963:     */
db2.c:964:    type   = level*7/4;
db2.c:965:    number = UMIN(type/8 + 1, 5);
db2.c:966:    type   = UMAX(2, type/number);
db2.c:967:    bonus  = UMAX(0, level*9/4 - number*type);
db2.c:975:        case (1): pMobIndex->dam_type =  3;       break;  /* slash  */
db2.c:976:        case (2): pMobIndex->dam_type =  7;       break;  /* pound  */
db2.c:977:        case (3): pMobIndex->dam_type = 11;       break;  /* pierce */
db2.c:982:    pMobIndex->ac[3]             = interpolate( level, 100, 0);    /* exotic */
db2.c:984:    pMobIndex->wealth           /= 100;
drunk.c:1:/***************************************************************************
drunk.c:16: ***************************************************************************/
drunk.c:18:/***************************************************************************
drunk.c:25:*	ROM license, in the file Delicate02/doc/rom.license                *
drunk.c:26:***************************************************************************/
drunk.c:31:#include <sys/types.h>
drunk.c:40:/* How to make a string look drunk... by Apex (robink@htsa.hva.nl) */
drunk.c:41:/* Modified and enhanced for envy(2) by the Maniac from Mythran */
drunk.c:42:/* Further mods/upgrades for ROM 2.4 by Kohl Desenee */
drunk.c:46:/* This structure defines all changes for a character */
drunk.c:109:  /* Check how drunk a person is... */
drunk.c:143:      buf[pos] = '\0';          /* Mark end of the string... */
economy.c:1:/*
economy.c:14: *              -Follow the envy/merc/diku license
economy.c:17: * All my snippets can be found on http://www.hhs.nl/~v942346/snippets.html
economy.c:19: */
economy.c:25:#include <sys/types.h>
economy.c:26:#include <sys/time.h>
economy.c:40:int     share_value = SHARE_VALUE;      /* External share_value by Maniac */
economy.c:46:        /* The Mythran mud economy system (bank and trading)
economy.c:56:        * 18/05/96:     Added the transfer option, enables chars to transfer
economy.c:58:        * 18/05/96:     Big bug detected, can deposit/withdraw/transfer
economy.c:62:        * 21/06/96:     Fixed a bug in transfer (transfer to MOBS)
economy.c:64:        * 21/06/96:     Started on the invest option, so players can invest
economy.c:66:        *               Finished version 1.0 releasing it monday 24/06/96
economy.c:67:        * 24/06/96:     Mythran Mud Economy System V1.0 released by Maniac
economy.c:69:        */
economy.c:70:	/*
economy.c:72:	* 23/07/97:	Make it less screwy in general by fixing it so that
economy.c:75:	*/
economy.c:88:        /* Check for mob with act->banker */
economy.c:94:		if ( IS_NPC(mob) )/*
economy.c:96:               */ if (IS_SET(mob->act2, ACT2_BANKER ) )
economy.c:126:        /* Now work out what to do... */
economy.c:170:        /* We only allow transfers if this is true... so define it... */
economy.c:251:        /* If you want to have an invest option... define BANK_INVEST */
economy.c:354:        do_bank( ch, "" );              /* Generate Instructions */
effects.c:1:/***************************************************************************
effects.c:16: ***************************************************************************/
effects.c:18:/***************************************************************************
effects.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
effects.c:26:***************************************************************************/
effects.c:28:/*************************************************************************** 
effects.c:31:*       ROT license, in the file doc/rot.license                           * 
effects.c:32:***************************************************************************/
effects.c:37:#include <sys/types.h>
effects.c:48:    if (target == TARGET_ROOM) /* nail objects on the floor */
effects.c:61:    if (target == TARGET_CHAR)  /* do the effect on a victim */
effects.c:66:	/* let's toast some gear */
effects.c:75:    if (target == TARGET_OBJ) /* toast an object */
effects.c:87:	chance = level / 4 + dam / 10;
effects.c:90:	    chance = (chance - 25) / 2 + 25;
effects.c:92:	    chance = (chance - 50) / 2 + 50;
effects.c:136:	if (obj->item_type == ITEM_ARMOR)  /* etch it */
effects.c:157:            /* needs a new affect */
effects.c:177:	/* get rid of the object */
effects.c:178:	if (obj->contains)  /* dump contents */
effects.c:194:		acid_effect(t_obj,level/2,dam/2,TARGET_OBJ);
effects.c:208:    if (target == TARGET_ROOM) /* nail objects on the floor */
effects.c:221:    if (target == TARGET_CHAR) /* whack a character */
effects.c:230:	/* hunger! (warmth sucked out */
effects.c:232:	    gain_condition(victim,COND_HUNGER,dam/20);
effects.c:234:	/* let's toast some gear */
effects.c:243:   if (target == TARGET_OBJ) /* toast an object */
effects.c:254:	chance = level / 4 + dam / 10;
effects.c:257:	    chance = (chance - 25) / 2 + 25;
effects.c:259:	    chance = (chance - 50) / 2 + 50;
effects.c:298:    if (target == TARGET_ROOM)  /* nail objects on the floor */
effects.c:311:    if (target == TARGET_CHAR)   /* do the effect on a victim */
effects.c:315:/*
effects.c:318:	&&  !saves_spell(level / 4 + dam / 20, victim,DAM_FIRE))
effects.c:328:            af.duration     = number_range(0,level/10);
effects.c:330:            af.modifier     = level/-10;
effects.c:334:	}*/
effects.c:336:	/* getting thirsty */
effects.c:338:	    gain_condition(victim,COND_THIRST,dam/20);
effects.c:340:	/* let's toast some gear! */
effects.c:350:    if (target == TARGET_OBJ)  /* toast an object */
effects.c:362:        chance = level / 4 + dam / 10;
effects.c:365:            chance = (chance - 25) / 2 + 25;
effects.c:367:            chance = (chance - 50) / 2 + 50;
effects.c:415:            /* dump the contents */
effects.c:430:		fire_effect(t_obj,level/2,dam/2,TARGET_OBJ);
effects.c:441:    if (target == TARGET_ROOM)  /* nail objects on the floor */
effects.c:454:    if (target == TARGET_CHAR)   /* do the effect on a victim */
effects.c:459:	/* chance of poisoning */
effects.c:460:        if (!saves_spell(level / 4 + dam / 20,victim,DAM_POISON))
effects.c:471:            af.duration  = level / 2;
effects.c:478:	/* equipment */
effects.c:487:    if (target == TARGET_OBJ)  /* do some poisoning */
effects.c:498:	chance = level / 4 + dam / 10;
effects.c:500:	    chance = (chance - 25) / 2 + 25;
effects.c:502:	    chance = (chance - 50) / 2 + 50;
effects.c:549:	/* daze and confused? */
effects.c:550:	if (!saves_spell(level/4 + dam/20,victim,DAM_LIGHTNING))
effects.c:553:	    DAZE_STATE(victim,UMAX(12,level/4 + dam/20));
effects.c:556:	/* toast some gear */
effects.c:576:	chance = level / 4 + dam / 10;
effects.c:579:	    chance = (chance - 25) / 2 + 25;
effects.c:581:	    chance = (chance - 50) /2 + 50;
explore.c:76:  explored[index / 8] |= 1 << (index % 8);
explore.c:82:  return (IS_SET (explored[index / 8], 1 << (index % 8)) != 0);
explore.c:131:	explored[index / 8] |= 1 << (index % 8);
explore.c:160:    double rooms = top_room, percent = (double) rcnt / (rooms / 100);
explore.c:172:    double percent = (double) rcnt / (rooms / 100);
fight.c:1:/***************************************************************************
fight.c:16: ***************************************************************************/
fight.c:18:/***************************************************************************
fight.c:25:*	ROM license, in the file Rom24/doc/rom.license			   *
fight.c:26:***************************************************************************/
fight.c:28:/*************************************************************************** 
fight.c:31:*       ROT license, in the file doc/rot.license                           * 
fight.c:32:***************************************************************************/
fight.c:37:#include <sys/types.h>
fight.c:47:/* command procedures needed */
fight.c:71:/*
fight.c:73: */
fight.c:101:/*
fight.c:104: */
fight.c:129:	/*
fight.c:131:	 */
fight.c:146:/* for auto assisting */
fight.c:158:	    /* quick check for ASSIST_PLAYER */
fight.c:168:	    /* PCs next */
fight.c:180:	    /* now check the NPC cases */
fight.c:233:/*
fight.c:235: */
fight.c:240:    /* decrement the wait */
fight.c:248:    /* no attacks for stunnies -- just a check */
fight.c:273:	chance = (get_skill(ch,gsn_dual_wield)/3)*2;
fight.c:301:    chance = get_skill(ch,gsn_second_attack)/2;
fight.c:304:	chance /= 2;
fight.c:317:    chance = get_skill(ch,gsn_third_attack)/2;
fight.c:320:	chance /= 2;
fight.c:333:    chance = get_skill(ch, gsn_fourth_attack)/2;
fight.c:336:	chance /= 3;
fight.c:349:    chance = get_skill(ch, gsn_fifth_attack)/2;
fight.c:362:chance = get_skill(ch, gsn_sixth_attack)/2;
fight.c:371:chance = get_skill(ch, gsn_seventh_attack)/2;
fight.c:385:/* procedure for all mobile attacks */
fight.c:399:    /* Area attack -- BALLS nasty! */
fight.c:416:	chance = (get_skill(ch,gsn_dual_wield)/3)*2;
fight.c:434:    chance = get_skill(ch,gsn_second_attack)/2;
fight.c:437:	chance /= 2;
fight.c:444:	chance = get_skill(ch,gsn_third_attack)/2;
fight.c:447:	    chance /= 2;
fight.c:455:	    chance = get_skill(ch, gsn_fourth_attack)/2;
fight.c:458:		chance /= 3;
fight.c:466:		chance = get_skill(ch, gsn_fifth_attack)/2;
fight.c:478:                chance = get_skill(ch, gsn_sixth_attack)/2;
fight.c:490:                chance = get_skill(ch, gsn_seventh_attack)/2;
fight.c:505:    /* oh boy!  Fun stuff! */
fight.c:514:	/*  { mob_cast_mage(ch,victim); return; } */ ;
fight.c:519:	/* { mob_cast_cleric(ch,victim); return; } */ ;
fight.c:522:    /* now for the skills */
fight.c:561:	    /* do_tail(ch,"") */ ;
fight.c:573:	    /* do_crush(ch,"") */ ;
fight.c:585:/*
fight.c:587: */
fight.c:605:    /* just in case */
fight.c:609:    /*
fight.c:612:     */
fight.c:616:    /*
fight.c:619:     */
fight.c:644:    /* get the weapon skill */
fight.c:648:    /*
fight.c:650:     */
fight.c:654:	thac0_32 = -4;   /* as good as a thief */ 
fight.c:678:        thac0 = thac0/2;
fight.c:681:        thac0 = -5 + (thac0 + 5) / 2;
fight.c:683:    thac0 -= GET_HITROLL(ch) * skill/100;
fight.c:684:    thac0 += 5 * (100 - skill) / 100;
fight.c:705:	case(DAM_PIERCE):victim_ac = GET_AC(victim,AC_PIERCE)/10;	break;
fight.c:706:	case(DAM_BASH):	 victim_ac = GET_AC(victim,AC_BASH)/10;		break;
fight.c:707:	case(DAM_SLASH): victim_ac = GET_AC(victim,AC_SLASH)/10;	break;
fight.c:708:	default:	 victim_ac = GET_AC(victim,AC_EXOTIC)/10;	break;
fight.c:712:	victim_ac = (victim_ac + 15) / 5 - 15;
fight.c:723:    /*
fight.c:725:     */
fight.c:732:	/* Miss. */
fight.c:738:    /*
fight.c:741:     */
fight.c:745:	    dam = number_range( ch->level / 2, ch->level * 3 / 2 );
fight.c:747:	    	dam += dam / 2;
fight.c:760:		dam = dice(ch->level/3,3) * skill/100;
fight.c:764:		    dam = dice(wield->value[1],wield->value[2]) * skill/100;
fight.c:766:	    	    dam = number_range( wield->value[1] * skill/100, 
fight.c:767:				wield->value[2] * skill/100);
fight.c:770:	    if (get_eq_char(ch,WEAR_SHIELD) == NULL)  /* no shield = more */
fight.c:771:		dam = dam * 11/10;
fight.c:773:	    /* sharpness! */
fight.c:778:		if ((percent = number_percent()) <= (skill / 8))
fight.c:779:		    dam = 2 * dam + (dam * 2 * percent / 100);
fight.c:785:                if ((percent = number_percent()) <= (skill / 8))
fight.c:786:                    dam = 3 * dam + (dam * 3 * percent / 105);
fight.c:793:	    dam = number_range( 1 + 4 * skill/100, 2 * ch->level/3 * skill/100);
fight.c:796:    /*
fight.c:798:     */
fight.c:805:            dam += 2 * ( dam * diceroll/300);
fight.c:809:         dam += dam * ((number_percent()/2+get_skill(ch,gsn_critical))/2) / 50;
fight.c:814:	dam = dam * 3 / 2;
fight.c:819:	    dam *= 2 + (ch->level / 10); 
fight.c:821:	    dam *= 2 + (ch->level / 8);
fight.c:826:	    dam *= 5 + (ch->level / 12); 
fight.c:828:	    dam *= 5 + (ch->level / 10);
fight.c:832:            dam *= 2 + (ch->level / 10);
fight.c:834:            dam *= 2 + (ch->level / 8);
fight.c:850:         dam *= 2 + (ch->level / 9);
fight.c:853:         dam *= 2 + (ch->level / 8);
fight.c:861:      dam *= (ch->level / 33); /* max * 3 */
fight.c:864:      dam *= 2 + (ch->level/50); /* max * 4 */
fight.c:866:    dam += GET_DAMROLL(ch) * UMIN(100,skill) /100;
fight.c:871:/*    result = damage( ch, victim, dam, dt, dam_type, TRUE );*/
fight.c:879:    /* but do we have a funky weapon? */
fight.c:894:	    if (!saves_spell(level / 2,victim,DAM_POISON)) 
fight.c:903:    		af.level     = level * 3/4;
fight.c:904:    		af.duration  = level / 2;
fight.c:911:	    /* weaken the poison if it's temporary */
fight.c:929:            ch->mana += dam/2;
fight.c:942:	    ch->hit += dam/2;
fight.c:947:	    dam = number_range(1,wield->level / 4 + 1);
fight.c:950:	    fire_effect( (void *) victim,wield->level/2,dam,TARGET_CHAR);
fight.c:956:	    dam = number_range(1,wield->level / 6 + 2);
fight.c:960:	    cold_effect(victim,wield->level/2,dam,TARGET_CHAR);
fight.c:966:	    dam = number_range(1,wield->level/5 + 2);
fight.c:971:	    shock_effect(victim,wield->level/2,dam,TARGET_CHAR);
fight.c:1072:/*
fight.c:1074: */
fight.c:1091:    /* just in case */
fight.c:1095:    /*
fight.c:1098:     */
fight.c:1102:    /*
fight.c:1105:     */
fight.c:1130:    /* get the weapon skill */
fight.c:1134:    /*
fight.c:1136:     */
fight.c:1140:	thac0_32 = -4;   /* as good as a thief */ 
fight.c:1164:        thac0 = thac0/2;
fight.c:1167:        thac0 = -5 + (thac0 + 5) / 2;
fight.c:1169:    thac0 -= GET_HITROLL(ch) * skill/100;
fight.c:1170:    thac0 += 5 * (100 - skill) / 100;
fight.c:1187:	case(DAM_PIERCE):victim_ac = GET_AC(victim,AC_PIERCE)/10;	break;
fight.c:1188:	case(DAM_BASH):	 victim_ac = GET_AC(victim,AC_BASH)/10;		break;
fight.c:1189:	case(DAM_SLASH): victim_ac = GET_AC(victim,AC_SLASH)/10;	break;
fight.c:1190:	default:	 victim_ac = GET_AC(victim,AC_EXOTIC)/10;	break;
fight.c:1194:	victim_ac = (victim_ac + 15) / 5 - 15;
fight.c:1205:    /*
fight.c:1207:     */
fight.c:1214:	/* Miss. */
fight.c:1220:    /*
fight.c:1223:     */
fight.c:1227:	    dam = number_range( ch->level / 2, ch->level * 3 / 2 );
fight.c:1229:	    	dam += dam / 2;
fight.c:1242:		dam = dice(ch->level/3,3) * skill/100;
fight.c:1246:		    dam = dice(wield->value[1],wield->value[2]) * skill/100;
fight.c:1248:	    	    dam = number_range( wield->value[1] * skill/100, 
fight.c:1249:				wield->value[2] * skill/100);
fight.c:1252:	    if (get_eq_char(ch,WEAR_SHIELD) == NULL)  /* no shield = more */
fight.c:1253:		dam = dam * 11/10;
fight.c:1255:	    /* sharpness! */
fight.c:1260:		if ((percent = number_percent()) <= (skill / 8))
fight.c:1261:		    dam = 2 * dam + (dam * 2 * percent / 100);
fight.c:1267:	    dam = number_range( 1 + 4 * skill/100, 2 * ch->level/3 * skill/100);
fight.c:1270:    /*
fight.c:1272:     */
fight.c:1279:            dam += 2 * ( dam * diceroll/300);
fight.c:1289:	dam = dam * 3 / 2;
fight.c:1294:	    dam *= 2 + (ch->level / 10); 
fight.c:1296:	    dam *= 2 + (ch->level / 8);
fight.c:1301:	    dam *= 2 + (ch->level / 12); 
fight.c:1303:	    dam *= 2 + (ch->level / 10);
fight.c:1308:            dam *= 2 + (ch->level / 12);
fight.c:1310:            dam *= 2 + (ch->level / 7);    
fight.c:1325:         dam *= 2 + (ch->level / 9);
fight.c:1328:         dam *= 2 + (ch->level / 8);
fight.c:1336:      dam *= (ch->level / 33); /* max * 3 */
fight.c:1338:    dam += GET_DAMROLL(ch) * UMIN(100,skill) /100;
fight.c:1360:/*
fight.c:1363: */
fight.c:1377:	/*
fight.c:1380:	 */
fight.c:1403:	/*
fight.c:1405:	 */
fight.c:1409:    /*
fight.c:1411:     */
fight.c:1421:    /*
fight.c:1423:     */
fight.c:1427:	dam = 9 * dam / 10;
fight.c:1430:	dam /= 2;
fight.c:1434:	dam -= dam / 4;
fight.c:1439:/*    if ( (dam > 1) && (dt>0) && (dt < TYPE_HIT) &&
fight.c:1443:      && (number_percent() < (50-(ch->level/5)+(victim->level/10))))
fight.c:1444:       dam= dam/5;
fight.c:1445:    }*/
fight.c:1450:    /*
fight.c:1452:     */
fight.c:1467:      dam += dam * ((number_percent()/2+get_skill(ch,gsn_critical))/2) / 50;
fight.c:1475:	/*dam += dam * number_range(0,get_skill(ch,gsn_critical)/2)/100;*/
fight.c:1476:        dam += dam * ((number_percent()/2+get_skill(ch,gsn_critical))/2) / 100;
fight.c:1487:	    dam -= dam/3;
fight.c:1490:	    dam += dam/2;
fight.c:1493:    /* damage reduction */
fight.c:1495:	dam = (dam - 35)/2 + 35;
fight.c:1497:	dam = (dam - 80)/2 + 80; 
fight.c:1515:      int absorb=(dam/10)*number_range(1,4);
fight.c:1534:    /*
fight.c:1537:     */
fight.c:1546:	ch->hit = UMIN(ch->hit+((dam/3)*2), ch->max_hit);
fight.c:1588:	if ( dam > victim->max_hit / 4 )
fight.c:1590:	if ( victim->hit < victim->max_hit / 4 )
fight.c:1595:    /*
fight.c:1597:     */
fight.c:1610:    /*
fight.c:1612:     */
fight.c:1627:	    /*
fight.c:1629:	     * 2/3 way back to previous level.
fight.c:1630:	     */
fight.c:1634:			         * victim->level - victim->exp)/6) + 50 );
fight.c:1647:     	/*
fight.c:1649:	 */
fight.c:1658:        /* dump the flags */
fight.c:1666:        /* RT new auto commands */
fight.c:1675:		 corpse && corpse->contains) /* exists and not empty */
fight.c:1679:	        corpse && corpse->contains  && /* exists and not empty */
fight.c:1688:		return dam;  /* leave if corpse has treasure */
fight.c:1699:    /*
fight.c:1701:     */
fight.c:1711:    /*
fight.c:1713:     */
fight.c:1714:    if ( IS_NPC(victim) && dam > 0 && victim->wait < PULSE_VIOLENCE / 2)
fight.c:1717:	&&   victim->hit < victim->max_hit / 5) 
fight.c:1726:    &&   victim->wait < PULSE_VIOLENCE / 2 )
fight.c:1733:/*
fight.c:1735: */
fight.c:1748:	dam = (dam - 35)/2 + 35;
fight.c:1750:	dam = (dam - 80)/2 + 80; 
fight.c:1753:    /*
fight.c:1755:     */
fight.c:1759:	dam = 9 * dam / 10;
fight.c:1762:	dam /= 2;
fight.c:1766:	dam -= dam / 4;
fight.c:1778:	    dam -= dam/3;
fight.c:1781:	    dam += dam/2;
fight.c:1844:    /* ARENA room checking */
fight.c:1850:    /* killing mobiles */
fight.c:1854:	/* safe room? */
fight.c:1867:	/* no killing healers, trainers, etc */
fight.c:1881:	    /* no pets */
fight.c:1889:	    /* no charmed creatures unless owner */
fight.c:1897:    /* killing players */
fight.c:1900:	/* NPC doing the killing */
fight.c:1903:	    /* safe room check */
fight.c:1910:	    /* charmed mobs and pets cannot attack players while owned */
fight.c:1918:	/* player doing the killing */
fight.c:1925:	    || ((victim->class >= MAX_CLASS/2)
fight.c:1974:         }/*
fight.c:1977:   */
fight.c:1978:/*         if (!IS_NPC(victim))
fight.c:1980:*/    }
fight.c:2003:           lvalue=ch->level/11;
fight.c:2005:        lvalue=ch->level/10;
fight.c:2083:    /* ARENA room checking */
fight.c:2091:    /* killing mobiles */
fight.c:2094:	/* safe room? */
fight.c:2101:	/* no killing healers, trainers, etc */
fight.c:2112:	    /* no pets */
fight.c:2116:	    /* no charmed creatures unless owner */
fight.c:2120:	    /* legal kill? -- cannot hit mob fighting non-group member */
fight.c:2126:	    /* area effect spells do not hit other mobs */
fight.c:2131:    /* killing players */
fight.c:2137:	/* NPC doing the killing */
fight.c:2140:	    /* charmed mobs and pets cannot attack players while owned */
fight.c:2145:	    /* safe room? */
fight.c:2149:	    /* legal kill? -- mobs only hit players grouped with opponent*/
fight.c:2154:	/* player doing the killing */
fight.c:2156:	{/*
fight.c:2159:*/
fight.c:2164:	    || ((victim->class >= MAX_CLASS/2)
fight.c:2193:	    if ( ( ( ch->class < MAX_CLASS/2 )
fight.c:2194:	    && ( victim->class < MAX_CLASS/2 ) )
fight.c:2195:	    || ( ( ch->class >= MAX_CLASS/2 )
fight.c:2196:	    && ( victim->class >= MAX_CLASS/2 ) ) )
fight.c:2221: chance = get_skill(ch, gsn_critical) / 6;
fight.c:2226:   chance /= 2;
fight.c:2240:/*
fight.c:2242: */
fight.c:2250:    chance = get_skill(victim,gsn_parry) / 2;
fight.c:2255:	    chance /= 2;
fight.c:2262:/*
fight.c:2264:	chance /= 2;
fight.c:2265:*/
fight.c:2268:/*
fight.c:2271:*/
fight.c:2278:/*
fight.c:2280: */
fight.c:2297:    chance = get_skill(victim,gsn_shield_block) / 5 + 3;
fight.c:2299:      chance = (chance+(get_skill(victim,gsn_shield_levitation)/5+3))/2;
fight.c:2309:/*
fight.c:2313:  */
fight.c:2325:/*
fight.c:2327: */

Showing the first 100 KB of 226.4 KB. Download the archive for the full file.

Site Stats

Snippets: 1791
Codebases: 571