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, Yahoo!, Yandex, Bing

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
Evoru (32)
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,868
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 >>