User Name:


Forgot your password?
Vote for Us!
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online

Members: 0
Guests: 16
Newest Member
Today's Birthdays
Evoru (33)
Related Links
» SmaugMuds.org » General » Coding » making object levels permanen...
Forum Rules | Mark all | Recent Posts

making object levels permanent on objects
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 23, 2003, 3:48 am
Go to the top of the page
Go to the bottom of the page


JoinedApr 13, 2003

I've been looking into making object levels a fixed level rather than being dependant on the level of the mob or the area. Looking through the SML archives I found many threads on this topic but most seem outdated when it comes to getting it to work in afkmud.

I did run across this snippet but it doesn't seem to work for me or I'm just doing it wrong. I also wasn't sure if afkmud was using value[5]. I think it was using it for projectile weapons, but I couldn't get it to work with armor either.

Anyway, has anyone updated this snippet for afkmud or can help me figure out what I can do to get object levels to stay fixed at what I set them as.
Post is unread #2 Sep 23, 2003, 7:59 am
Go to the top of the page
Go to the bottom of the page

Black Hand
JoinedJan 1, 2002

His snippet took the wrong approach. As you've noticed, it makes the leap of faith that value[5] is not used. In AFKMud and any other Smaug that uses the weapon profficiencies patch, value[5] is for projectile data.

What should really be done is to alter fold_area and load_objects to be able to load those settings from the area file. The level is already part of the object index data.

Problem with this comes from having to alter numerous uses of the create_object function to set the level appropriately since they usually take that as an arbitrary value. It wouldn't be a difficult process, just time consuming.

If I get a chance later I'll see about writing up how to do that in a snippet for AFKMud.
Pages:<< prev 1 next >>