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


This is a discussion on "Any Help for Furniture Loads?" in the Top Mud Sites MUD Coding forum :

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?...



You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today!

If you have any problems with the registration process or your account login, please contact us.

If you are a registered member of the old TMS forums, please click here
Reply
 
LinkBack Thread Tools
Old 10-29-2003, 05: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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2003, 01: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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2003, 03: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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2003, 12: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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-03-2003, 12: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.)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 09: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
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 10:26 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Style based on a design by Essilor
Copyright Top Mud Sites.com 2007