Today in school I had another idea. What if I made a new room flag called no_weapons and made it so characters could only fist fight in rooms marked that..and they couldn't wield weapons in those zones...the guards would only make them remove the weapons...not take them. So then if the mud crashed, the weapon would be in the char's inventory.... How hard is declaring a new room flag? all I want to do is make it impossible to wield a weapon in certain rooms...flagged such... anthony - newbie highschool coder that never does homework Richard Glover wrote: > The only problem I see is you having to add a variable to the object data. > An idnum to represent who's object is who's. You can check if the weapon is > wielded (look in do_remove) and have them remove it, then have them give it > to the guard (do_give), then the guard puts it in a chest (do_put). But in > the interum you will have to assign the idnum of the player to the object > (which can be found in house.c or mail.c). And then you have to worry about > the mud crashing and the players losing their weapons... > > You may want to put more thought into the project, it is much larger than a > newbie should be tackling. > > Rick > > -----Original Message----- > From: anthony benjamin <benjamin@POWERWEB.NET> > To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca> > Date: Sunday, February 21, 1999 10:31 PM > Subject: [code][idea][newbie]Special Guards > > >I need help writing and assigning a special proc to some city > >guards...what I would like to do is run a check on any character that > >enters the same room as these guards...and then if the characters have > >weapons wielded..the guards make them unwield them and the guards take > >them and put them in a chest or thier inventory until the character gets > >out...I have absoulutely no idea how to write this...except somehow I > >need to look at GET_EQ(ch,ITEM_WIELDED) and check if the character even > >has a weapon...after I do get this written...with your guys' help. I > >will also need assistance assigning it..I have the basic idea, but > >sometimes I get some pretty strange errors... > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | > +------------------------------------------------------------+ +------------------------------------------------------------+ | 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