Hello there everybody!
I'm trying to make my Santa Claus NPC work with
, the NPC work just perfect.
My problem is that it also use the same storage to christmas outfit.
When I do manually set this storage to 1, player can use christimas outfit, if this value is greater than 1 (2 for example), player cannot use the oufit.
With
the 'value' of this storage will always be a timestamp number, always bigger than just 1.
Any ideas on how to change this storage == 1 to storage >=1 to use outfit?
Where can I edit it, or any other ideas?
Many thanks in advance!!
This can be an important information, because it would free us to select for how much time or how outfits would be using during events like halloween or christmas itself.
I use
into some NPC's, I can suppose that it would help in order to make a more complex script of onlogin, that would delete player storage that have completed 30 days with selected outfit.
I'm trying to make my Santa Claus NPC work with
Lua:
exhaustion.set()
My problem is that it also use the same storage to christmas outfit.
When I do manually set this storage to 1, player can use christimas outfit, if this value is greater than 1 (2 for example), player cannot use the oufit.
With
Lua:
exhaustion.set(cid, storage, time)
Any ideas on how to change this storage == 1 to storage >=1 to use outfit?
Where can I edit it, or any other ideas?
Many thanks in advance!!
This can be an important information, because it would free us to select for how much time or how outfits would be using during events like halloween or christmas itself.
I use
Lua:
doCreatureEraseStorage(cid, storage)