Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 10-29-2003, 06:06 PM   #1
Iluvatar
Member
 
Join Date: May 2002
Location: Mississippi USA
Posts: 142
Iluvatar is on a distinguished road
In Circle 3.0, we zedit load furniture to exist in a room and the process is pretty standard as first remove object, independently load obj so there’s no repetitive loading and multiplication. The problem arises when someone is occupying the furniture since it changes status whenever connected to an active player and it won’t remove then reload on zreset.

Does anyone know of a fix for this or suggest a fix?
Iluvatar is offline   Reply With Quote
Old 10-30-2003, 02:12 AM   #2
Amnon
Member
 
Join Date: May 2002
Posts: 140
Amnon is on a distinguished road
Yeah - Don't remove it.
When you load the furniture, instead of clearing it all out of the room, just scroll through it to see if it's already there.
Amnon is offline   Reply With Quote
Old 10-30-2003, 04:16 AM   #3
Iluvatar
Member
 
Join Date: May 2002
Location: Mississippi USA
Posts: 142
Iluvatar is on a distinguished road
Umm, no. The process is automatic in a circle zonal reset. In this case there are three benches removed, then three are loaded. The problem is they aren't benches anymore from the code perspective if someone is sitting on one, so it doesn't purge and creates a new bench.
Iluvatar is offline   Reply With Quote
Old 11-03-2003, 01:13 AM   #4
karlan
Member
 
Join Date: Apr 2002
Location: Brisbane Australia
Posts: 74
karlan is on a distinguished road
Have a look at reset_zone(....) in db.c.

I would suggest adding a value to obj you will need to add a check to the [R]emove case. to check if the object being removed is furniture, check if occupied. you will also need to do some checking to only load an object if needed (ie one was also deleted)

Best I can come up with for now
karlan is offline   Reply With Quote
Old 11-03-2003, 01:28 AM   #5
erdos
 
Posts: n/a
I have no experience with circle, being a SMAUG brat, but if it's doing what I think you're saying it's doing-- removing things completely before resetting them-- then that has to be the biggest waste of CPU time i've ever heard of! If this is the case, I'd totally rewrite your reset code from scratch so that it does like Amnon said, just check if it's already there before resetting it...

As for your weird polymorphing furniture, what's the point of having it change when someone sits on it? sounds like a very bandaid-ish solution to the problem of having only 1 person per chair... sounds very much like a crude snippet. (Note the redundancy. most every snippet is crude.)
  Reply With Quote
Reply


Thread Tools


Any Help for Furniture Loads? - Similar Threads
Thread Thread Starter Forum Replies Last Post
Furniture in Achaea! the_logos Advertising for Players 107 03-26-2005 10:59 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 04:21 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2014