User Name:


Forgot your password?
Vote for Us!
adding a new stat to OSET
Mar 18, 2018, 6:02 pm
By joeyfogas
alias snippet fix-like hack
Mar 17, 2018, 6:14 pm
By Vladaar
help with debug?
Mar 17, 2018, 5:52 pm
By joeyfogas
features of a good MUD
Mar 17, 2018, 1:06 am
By GatewaySysop
All skills to a class?
Mar 15, 2018, 11:43 pm
By joeyfogas
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
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Google, DotBot, Yandex

Members: 0
Guests: 12
Newest Member
Today's Birthdays
There are no member birthdays today.
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 >>