Oops.. this didn't go to the list the first time.

We originally had a system very similar to this..
But it turned out to be too simple for some of the things we wanted to do.
Right now, we keep a linked list of a person's pk opponents.  When one
person attacks another, they are added to that list (or the timer is reset
if they are already in the list).
If an opponent is killed or the 5 minutes expires, the list is updated and
they are once again safe from each other within safe rooms.
Also, if your list contains any enemies, you can't quit, use teleportation
spells, others can't cast beneficial spells on you, etc.

> I use something called a heartbeat. If you start
> combat you get more of one than your victim.
>
> ch->heartbeat += number_range(2,3);
> victim->heartbeat += number_range(1,2);
>
> then put something like this into do_quit and various
> other places.
>
> if(ch->heartbeat > 0)
> {
>     stc("You can't quit with your heart beating so
> fast.\n\r",ch);
>     return;
> }
>
> dont forget to put something in update_char that will
> count this down, otherwise your heart will never
> settle down...
>
> I use this in quite a few places such as is_safe (to
> nullify safe rooms so someone who is engaged in pk
> can't run to a safe room etc etc)
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom

----- Original Message ----- 
From: "Yrahcaz Yelhcir" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 10, 2003 5:21 PM
Subject: re: pk stuff


> I use something called a heartbeat. If you start
> combat you get more of one than your victim.
> 
> ch->heartbeat += number_range(2,3);
> victim->heartbeat += number_range(1,2);
> 
> then put something like this into do_quit and various
> other places.
> 
> if(ch->heartbeat > 0)
> {
>     stc("You can't quit with your heart beating so
> fast.\n\r",ch);
>     return;
> }
> 
> dont forget to put something in update_char that will
> count this down, otherwise your heart will never
> settle down...
> 
> I use this in quite a few places such as is_safe (to
> nullify safe rooms so someone who is engaged in pk
> can't run to a safe room etc etc)
> 
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to