Makeing an item only last a few day.

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Hi i have an npc & it will give you an item but i would like the item to be removed after a few days from the player it it posibail or could i make it so the item got delted when they loged off?
 

mazz

Dedicated Member
Dedicated Member
Aug 6, 2008
193
2
45
a simple solution would be give it a dur of 0 would only last so long other then that
you could prob make a npc that checks time and checks what items are equip
example

[@main]
#if dayofweek sun then | dayofweek could be used with sun mon tue ect...
#ACT
checkitem PearlRing |Check if its in your bag
#ACT
checkitemw PearlRing 2 |checks for items equiped the 2 is to look for 2 rings
#ACT
takecheckitem |Takes all items that were checked
#Say
Sorry I need these back \\


this should work
but the only problem is it would only check for the item when you click the npc
the only way i could think that it could work is if you use a quest command and i haven't read into that yet

anyway I hope this helps some
 
Last edited:
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
do that in qmanage for the @login thing. So when u log in it checks :P
 
Upvote 0

samhag

Dedicated Member
Dedicated Member
Jul 31, 2008
213
0
42
also dont forget to check the store as well or you could store the item before logging off.
 
Upvote 0