Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 Couple bugs
Yesterday, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
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
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Google, Yahoo!

Members: 0
Guests: 9
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Building » Checking time of worn object.
Forum Rules | Mark all | Recent Posts

Checking time of worn object.
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Oct 24, 2009, 7:56 am
Go to the top of the page
Go to the bottom of the page

Lucif
Fledgling
GroupMembers
Posts10
JoinedSep 13, 2009

Hello, first I write what I want to do:
I have object "Crown of Pain" given by some quest mob, and I want it to be worn about a week after which quest is completed.
Now is the question ;-) - is there any way to check whether this item has been worn for a week?
Item cannot be drop etc.
So my mobprog need to check how long it has been worn
I'm using LOP1.38.
       
Post is unread #2 Oct 24, 2009, 8:08 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

Well there isnt anything that lets it know when the object was put on so it has no way to know when the week is up. You said that it is an object that you want them to have to wear for 1 week and I assume after that time you want it to vanish off them? or just allow it then to be removed dropped etc...

Well there are of course lots of different things you could go about doing code wise to make it work, anyway it goes you will need to add some timer for when the object was worn and then compare it later to see when it should be allowed to be removed. etc...
       
Post is unread #3 Oct 24, 2009, 9:57 am   Last edited Oct 24, 2009, 10:31 am by Lucif
Go to the top of the page
Go to the bottom of the page

Lucif
Fledgling
GroupMembers
Posts10
JoinedSep 13, 2009

Ok thanks Remcon. I'll think later about some changes in player files so maybe I put there something...
All my job is to tweak quest :-D
       
Pages:<< prev 1 next >>