CODE: Re: Clans

From: Billy H. Chan (bhchan@po.EECS.Berkeley.EDU)
Date: 07/03/96


On Wed, 3 Jul 1996, Brian Williams - Nashak wrote:
> My next thing I am gonna do is make Clans.. I hope.. and the purpose will be
> to allow anyone in a clan to pkill, newbie or level 50.. if yer in a 
> clan, yer open for kill.. but I dunno how I would make the command for 
> like do_clan.. what I want the command to do is to set a clan flag on a 
> player, and I can set the title manually.. but mainly if you have the 
> flag.. I want it to be pkill.. :P otherwise it should say "Player-Killing 
> is only allowed among clan members"
> well, thanks.. :P

The simplest way of making clans is to pretend it's another field like
class (and race if applicable).
Use similar arrays.
Now, for your Pkilling concerns, I believe I posted a FAQ on configurable
pkilling via a CAN_MURDER().
Briefly restated (if the FAQ isn't ready yet), write a function 
CAN_MURDER(char_data *ch, char_data *vict)
and replace any if (pkallowed) to CAN_MURDER.
-- Billy  H. Chan     bhchan@po.eecs.berkeley.edu  bhchan@csua.berkeley.edu
   CogSci/CompSci     http://www.csua.berkeley.edu/~bhchan     ResumeInside


X-SystemInfo: MyE-Mail: EMail
X-Message-No: 1878 (database)
From: Per Nielsen <lk4150@krull.dk>
To: cod <cod@utfbbs.utelfla.com>
Subject: Mob Stats
Message-ID: <7275.6759T1288T362@krull.dk>
MIME-Version: 1.0
X-Mailer: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*

Hi

  Here is the promised list of mobstats.
  It is taken from a Pascal program I once used to equal the stats.
  Take a look and feel free to make comments/suggestions.

  cu

   Amiga

Thac0
  arr[1,1] := '20';
  arr[2,1] := '20';
  arr[3,1] := '19';
  arr[4,1] := '18';
  arr[5,1] := '17';
  arr[6,1] := '16';
  arr[7,1] := '15';
  arr[8,1] := '14';
  arr[9,1] := '13';
  arr[10,1] := '12';
  arr[11,1] := '11';
  arr[12,1] := '10';
  arr[13,1] := '9';
  arr[14,1] := '8';
  arr[15,1] := '7';
  arr[16,1] := '6';
  arr[17,1] := '5';
  arr[18,1] := '4';
  arr[19,1] := '3';
  arr[20,1] := '2';
  arr[21,1] := '1';
  arr[22,1] := '0';
  arr[23,1] := '0';
  arr[24,1] := '0';
  arr[25,1] := '0';
  arr[26,1] := '0';
  arr[27,1] := '0';
  arr[28,1] := '0';
  arr[29,1] := '0';
  arr[30,1] := '0';
  arr[31,1] := '0';
  arr[32,1] := '-1';
  arr[33,1] := '-1';
  arr[34,1] := '-1';
  arr[35,1] := '-1';
  arr[36,1] := '-1';
  arr[37,1] := '-2';
  arr[38,1] := '-2';
  arr[39,1] := '-2';
  arr[40,1] := '-2';
  arr[41,1] := '-2';
  arr[42,1] := '-3';
  arr[43,1] := '-3';
  arr[44,1] := '-3';
  arr[45,1] := '-3';
  arr[46,1] := '-4';
  arr[47,1] := '-4';
  arr[48,1] := '-4';
  arr[49,1] := '-5';
  arr[50,1] := '-6';

AC

  arr[1,2] := '9';
  arr[2,2] := '8';
  arr[3,2] := '7';
  arr[4,2] := '6';
  arr[5,2] := '5';
  arr[6,2] := '4';
  arr[7,2] := '4';
  arr[8,2] := '3';
  arr[9,2] := '3';
  arr[10,2] := '2';
  arr[11,2] := '2';
  arr[12,2] := '2';
  arr[13,2] := '2';
  arr[14,2] := '1';
  arr[15,2] := '1';
  arr[16,2] := '1';
  arr[17,2] := '1';
  arr[18,2] := '0';
  arr[19,2] := '0';
  arr[20,2] := '0';
  arr[21,2] := '-1';
  arr[22,2] := '-1';
  arr[23,2] := '-2';
  arr[24,2] := '-3';
  arr[25,2] := '-4';
  arr[26,2] := '-6';
  arr[27,2] := '-7';
  arr[28,2] := '-8';
  arr[29,2] := '-9';
  arr[30,2] := '-10';
  arr[31,2] := '-10';
  arr[32,2] := '-10';
  arr[33,2] := '-11';
  arr[34,2] := '-11';
  arr[35,2] := '-12';
  arr[36,2] := '-12';
  arr[37,2] := '-13';
  arr[38,2] := '-13';
  arr[39,2] := '-14';
  arr[40,2] := '-14';
  arr[41,2] := '-15';
  arr[42,2] := '-16';
  arr[43,2] := '-16';
  arr[44,2] := '-17';
  arr[45,2] := '-17';
  arr[46,2] := '-18';
  arr[47,2] := '-18';
  arr[48,2] := '-19';
  arr[49,2] := '-20';
  arr[50,2] := '-21';

To Hit

  arr[1,3] := '1d6+10';
  arr[2,3] := '2d6+22';
  arr[3,3] := '2d6+35';
  arr[4,3] := '1d12+47';
  arr[5,3] := '2d6+60';
  arr[6,3] := '2d8+144';
  arr[7,3] := '3d8+170';
  arr[8,3] := '2d10+194';
  arr[9,3] := '3d10+244';
  arr[10,3] := '2d10+270';
  arr[11,3] := '3d10+370';
  arr[12,3] := '1d15+420';
  arr[13,3] := '2d12+475';
  arr[14,3] := '1d18+540';
  arr[15,3] := '2d12+591';
  arr[16,3] := '2d13+630';
  arr[17,3] := '3d9+666';
  arr[18,3] := '3d9+705';
  arr[19,3] := '3d10+741';
  arr[20,3] := '3d12+780';
  arr[21,3] := '4d8+1050';
  arr[22,3] := '4d9+1200';
  arr[23,3] := '5d8+1350';
  arr[24,3] := '4d10+1500';
  arr[25,3] := '5d10+1650';
  arr[26,3] := '4d12+1800';
  arr[27,3] := '5d12+1950';
  arr[28,3] := '6d8+2100';
  arr[29,3] := '6d10+2350';
  arr[30,3] := '6d12+2600';
  arr[31,3] := '7d120+2650';
  arr[32,3] := '7d150+2700';
  arr[33,3] := '7d200+2750';
  arr[34,3] := '7d225+2800';
  arr[35,3] := '8d250+2850';
  arr[36,3] := '8d275+2900';
  arr[37,3] := '8d300+2950';
  arr[38,3] := '8d325+3000';
  arr[39,3] := '8d350+3050';
  arr[40,3] := '8d375+3100';
  arr[41,3] := '8d400+3150';
  arr[42,3] := '8d450+3200';
  arr[43,3] := '8d500+3250';
  arr[44,3] := '9d430+3300';
  arr[45,3] := '9d460+3400';
  arr[46,3] := '9d490+3500';
  arr[47,3] := '9d520+3600';
  arr[48,3] := '9d530+3700';
  arr[49,3] := '9d550+3800';
  arr[50,3] := '9d600+4500';

To Dam

  arr[1,4] := '1d5+0';
  arr[2,4] := '1d6+0';
  arr[3,4] := '1d7+0';
  arr[4,4] := '1d8+0';
  arr[5,4] := '2d4+0';
  arr[6,4] := '1d8+1';
  arr[7,4] := '2d4+1';
  arr[8,4] := '2d5+1';
  arr[9,4] := '2d5+1';
  arr[10,4] := '3d6+5';
  arr[11,4] := '3d6+5';
  arr[12,4] := '3d7+6';
  arr[13,4] := '3d7+6';
  arr[14,4] := '3d8+6';
  arr[15,4] := '3d8+7';
  arr[16,4] := '3d8+8';
  arr[17,4] := '4d7+6';
  arr[18,4] := '4d7+7';
  arr[19,4] := '4d7+8';
  arr[20,4] := '4d7+9';
  arr[21,4] := '4d8+4';
  arr[22,4] := '4d8+5';
  arr[23,4] := '4d8+7';
  arr[24,4] := '4d8+8';
  arr[25,4] := '4d10+7';
  arr[26,4] := '4d10+8';
  arr[27,4] := '4d10+9';
  arr[28,4] := '4d10+10';
  arr[29,4] := '6d8+10';
  arr[30,4] := '7d8+10';
  arr[31,4] := '7d9+6';
  arr[32,4] := '7d9+7';
  arr[33,4] := '7d9+8';
  arr[34,4] := '7d9+9';
  arr[35,4] := '10d6+11';
  arr[36,4] := '10d6+12';
  arr[37,4] := '10d7+12';
  arr[38,4] := '10d7+13';
  arr[39,4] := '10d7+14';
  arr[40,4] := '11d7+7';
  arr[41,4] := '11d7+9';
  arr[42,4] := '11d7+11';
  arr[43,4] := '10d8+10';
  arr[44,4] := '10d8+12';
  arr[45,4] := '10d8+14';
  arr[46,4] := '11d8+8';
  arr[47,4] := '11d8+10';
  arr[48,4] := '11d8+12';
  arr[49,4] := '10d9+10';
  arr[50,4] := '11d9+10';

Gold

  arr[1,5] := '50';
  arr[2,5] := '100';
  arr[3,5] := '200';
  arr[4,5] := '400';
  arr[5,5] := '500';
  arr[6,5] := '800';
  arr[7,5] := '800';
  arr[8,5] := '900';
  arr[9,5] := '900';
  arr[10,5] := '1000';
  arr[11,5] := '1100';
  arr[12,5] := '1300';
  arr[13,5] := '1500';
  arr[14,5] := '1500';
  arr[15,5] := '1750';
  arr[16,5] := '1750';
  arr[17,5] := '2000';
  arr[18,5] := '2000';
  arr[19,5] := '2500';
  arr[20,5] := '2500';
  arr[21,5] := '5000';
  arr[22,5] := '5000';
  arr[23,5] := '5000';
  arr[24,5] := '6000';
  arr[25,5] := '6000';
  arr[26,5] := '8000';
  arr[27,5] := '8000';
  arr[28,5] := '9000';
  arr[29,5] := '10000';
  arr[30,5] := '11000';
  arr[31,5] := '12000';
  arr[32,5] := '13000';
  arr[33,5] := '14000';
  arr[34,5] := '15000';
  arr[35,5] := '16000';
  arr[36,5] := '17000';
  arr[37,5] := '18000';
  arr[38,5] := '19000';
  arr[39,5] := '20000';
  arr[40,5] := '21000';
  arr[41,5] := '23000';
  arr[42,5] := '24000';
  arr[43,5] := '25000';
  arr[44,5] := '27000';
  arr[45,5] := '30000';
  arr[46,5] := '34000';
  arr[47,5] := '38000';
  arr[48,5] := '40000';
  arr[49,5] := '45000';
  arr[50,5] := '50000';

Experience

  arr[1,6] := '100';
  arr[2,6] := '200';
  arr[3,6] := '350';
  arr[4,6] := '600';
  arr[5,6] := '900';
  arr[6,6] := '1500';
  arr[7,6] := '2250';
  arr[8,6] := '3750';
  arr[9,6] := '6000';
  arr[10,6] := '9000';
  arr[11,6] := '11000';
  arr[12,6] := '13000';
  arr[13,6] := '16000';
  arr[14,6] := '18000';
  arr[15,6] := '21000';
  arr[16,6] := '24000';
  arr[17,6] := '28000';
  arr[18,6] := '30000';
  arr[19,6] := '35000';
  arr[20,6] := '40000';
  arr[21,6] := '50000';
  arr[22,6] := '60000';
  arr[23,6] := '80000';
  arr[24,6] := '100000';
  arr[25,6] := '130000';
  arr[26,6] := '155000';
  arr[27,6] := '200000';
  arr[28,6] := '310000';
  arr[29,6] := '450000';
  arr[30,6] := '600000';
  arr[31,6] := '700000';
  arr[32,6] := '800000';
  arr[33,6] := '900000';
  arr[34,6] := '1000000';
  arr[35,6] := '1100000';
  arr[36,6] := '1200000';
  arr[37,6] := '1300000';
  arr[38,6] := '1400000';
  arr[39,6] := '1500000';
  arr[40,6] := '1600000';
  arr[41,6] := '1700000';
  arr[42,6] := '1800000';
  arr[43,6] := '1900000';
  arr[44,6] := '2000000';
  arr[45,6] := '2100000';
  arr[46,6] := '2200000';
  arr[47,6] := '2300000';
  arr[48,6] := '2400000';
  arr[49,6] := '2500000';
  arr[50,6] := '2600000';



This archive was generated by hypermail 2b30 : 12/07/00 PST