Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Yahoo!

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Building » Unique items
Forum Rules | Mark all | Recent Posts

Unique items
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 3, 2002, 10:10 pm
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

I have a quick question, I would like to create an object ie,armour or weapon. that when worn or wielded will give the user a bonus to his stats. This part is simple.

The part that I am having probs with is that I want that item to be absolutely unique - ie only 1 of those in the game at any one time if the user drops it and does not pick it up soon enough it departs his presense. (maybe crumbles into dust or something) and it will stay gone till the mud is rebooted

however the user cannot save it on his presence when he leaves, but can give it to another user/or sell it.

If any of you have an idea of how I may do this - or which help files to look at - please let me know.


Thank you
Kilroy
       
Post is unread #2 May 3, 2002, 11:17 pm
Go to the top of the page
Go to the bottom of the page

Cam

GroupAFKMud Team
Posts61
JoinedJan 1, 2002

Ok...as for the crumbling into dust thing, I'm not sure how to mess with that..that sounds like something that could be possibly done through code. I know certain flags that would do it, but it'd be instant

As far as the uniqueness, make it's limit 1 (which is all I would have to do to limit the loading amount). Now this won't stop it from loading if it's disappeared and the mob has been killed and reset, just keep there from being more than one in the game.

The leaving with it is really simple. Make the rent amount -1, this will cause it to disappear when trying to rent with it, same as with keys, etc.

Hope this helps some
       
Post is unread #3 May 4, 2002, 11:51 am
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

Absolutely

Thank you very much - what flags would cause it to crumble to dust/die immediately

I mean that they will only be stupid enough to drop it once right

hehe

Kilroy
       
Post is unread #4 May 4, 2002, 3:24 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The groundrot item flag would do this, but you'd have to do some tweaking to get the object to have a timer value. Would be a fairly simple addition to the do_drop code to have it set the object timer to something like 10 when the person drops it if the item meets your limit setting. Once that's done, any item dropped with that flag will decay until destroyed. The shorter the timer value, the sooner it happens. But a timer value of 0 won't decay, so if you want it to be virtually instant, set the timer to 1.

Alternately, you could tweak do_drop to vaporize a groundrot item immediately. A bit easier to do, and would be a truly vicious shock to the player doing it

Either way, this is going to require some sort of code tweakage since it's not normal for any object to get a timer value by default, at least not that I recall.
       
Pages:<< prev 1 next >>