Re: [Circle] CODE:Autorent

From: Daniel Koepke (dkoepke@california.com)
Date: 11/30/96


On Sat, 30 Nov 1996, Administrador do Muds wrote:

> 	 (!IS_NPC(ch) && ch->desc))
> 
> 	Why need to test the second argument ? Before this piece of code, theres
> a small description mentioning that this was to fix a "gold duplication loophole"

This evaluates to if they're a connected player (the ch->desc check
makes sure they're connected).  In this manner, the code the follows
the if statement won't occur when the player is linkdead, etc.

> 	Also, could some one give some hints how I implement a "auto-rent" function
> if the character is linkless for a certain amount of time ?

I know of a MUD that implemented an auto-purge to linkdead characters.
Not extremely popular, but it certainly deterred everyone from just
link-dropping.  Anyway, I suppose you can do it by looping through and
decreasing a timer so that you can give the player 5 or so minutes then
just saving them and logging them out...  Something like that.


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


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



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