Re: [CODE][HELP] A SpecProc Needed

From: Tony Robbins (tonyr@NWPACLINK.COM)
Date: 04/28/98


At 06:16 PM 4/28/98 -0500, you wrote:
>anyone out there wanna help with me with something?

Depends.

>if so read this :)

*reads anyway*

>ok I need a specproc created for a weapon Ive created at my mud
>and the specproc needs to have a 1 in 5 chance of happening durning the
>battle, well anyway here is what I need :)

The mailing list isn't a place where you catalog an order.  (Maybe it is, I've
never tried.  Why don't you wizards write this for me!!! *grins*)

>=--------------------------------------------------------------------------
--=
>a specproc called omnislash
>it'll send to the room
SPEC(omnislash)
{
  struct char_data *vict;
  int dam = 100, i;

  if (!CMD_IS("hit") && !CMD_IS("kill"))
    return 0;  /* this means be normal if it isn't in the proc. */
               /* this also only works on the first hit.  I'd look */
               /* at Puff. */

  *get pseudo random number for the check* {
    send_to_room("<<<<<----- OMNI-SLASH ----->>>>>\r\n", ch->in_room);
    for (i = 0;i < 5;i++) {
      perform_hit or whatever, (ch, vict)
    bleh

   I'm going to let you finish, cuz I'm lazy and you should figure it
   out for yourself anyway.  Hacker.  :/

>-------------------------------------------------------------------------|
>|Matt Roach - owner of OnyxMUD            | "I dont have bugs...         |
>|matt@shiva.ml.org    quinn@mud.comsys.net| randomly created freatures!" |
>-------------------------------------------------------------------------|

YES!  Small signature.  I don't even have one.  :P

      +------------------------------------------------------------+
      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
      +------------------------------------------------------------+

(intentionally left in as a subtle hint)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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