SphereCommunity
Help item decay - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Help item decay (/Thread-Help-item-decay)



Help item decay - darksoulfe - 02-01-2018 04:21 AM

Good afternoon folks
I need some help from you.

1- I would like to know if there is any way I can add the decay time of the item within this menu. And when he plays on the floor inside the menu appears the time falling until arriving at the time of decay.

If we do not have the first solution now comes the second

2- I need to know how to make an event that when I click once on the item on the floor an item message appears saying "The decay time is x minutes and seconds"

Thank you and I am waiting for your help.


RE: Help item decay - darksun84 - 02-01-2018 05:34 AM

For the second one, add a general event in EventItem in the sphere.ini

In this event use the @DropON_Ground trigger and make the items say his timer property by using say <argn1>

See:
http://wiki.spherecommunity.net/index.php?title=@DropOn_Ground


RE: Help item decay - azmanomer - 02-01-2018 06:09 AM

but if some items with timers can be exploited so be carefull. For example u have some item which has 1hour cooldown and u handle it with timer so they can drop it on ground and take back to change timer.