![]() |
#1 |
Member
Join Date: May 2002
Location: Mississippi USA
Posts: 142
![]() |
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? |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: May 2002
Posts: 140
![]() |
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. |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: May 2002
Location: Mississippi USA
Posts: 142
![]() |
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.
|
![]() |
![]() |
![]() |
#4 |
Member
Join Date: Apr 2002
Location: Brisbane Australia
Posts: 74
![]() |
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 |
![]() |
![]() |
![]() |
#5 |
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.) |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Furniture in Achaea! | the_logos | Advertising for Players | 107 | 03-26-2005 09:59 PM |
|
|