[DG-Script] dg_owner_purged

From: Angus Mezick (amezick@edgil.com)
Date: 08/12/99


I have found that if a builder writes:

opurge %self%

into a drop trigger, the game will crash.  However, if this code is used:

return 0
opurge %self%

the game doesn't crash.  An interesting thing about opurge %self% is that
is sets the variable dg_owner_purged to TRUE.  I was wondering if changing
the code in dg_scripts.c:script_driver()

            if(dg_owner_purged)
               {
               depth--;
               release_buffer(cmd);
               return ret_val;
               }

to

            if(dg_owner_purged)
               {
               depth--;
               release_buffer(cmd);
               return 0;
               }

would have any negative side effects?  If not I think this fix would
had keep people from killing the mud with badly designed scripts.
These builders are not programmers and they need all the help we can
give them.

--Angus


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



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