11-18-2014, 04:57 AM
Hello!
I create GM sphere, this gm sphere can set time of live any item:
But after time left, the items not removed and i got error:
![[Image: ztd8jc.jpg]](http://i58.tinypic.com/ztd8jc.jpg)
I create GM sphere, this gm sphere can set time of live any item:
Code:
[ITEMDEF I_GM_ITEM_TIMER_SPHERE]
NAME=Set timer on item sphere
ID=I_CRYSTAL_BALL
ON=@CREATE
COLOR=0BAE
ATTR=ATTR_NEWBIE
ON=@DCLICK
TARGET
RETURN 1
ON=@TARGON_ITEM
SRC.DIALOGCLOSE D_GM_SET_TIMER
SRC.DIALOG D_GM_SET_TIMER
RETURN 1
[DIALOG D_GM_SET_TIMER]
...
[DIALOG D_GM_SET_TIMER BUTTON]
...
ONBUTTON=1
SRC.TARG.TIMER=<ARGTXT[0]>
SRC.TARG.TIMERF=<ARGTXT[0]>
SRC.TARG.ATTR=ATTR_CAN_DECAY
SRC.DIALOGCLOSE D_GM_SET_TIMER
SRC.SYSMESSAGE @0486,,1 Seconds left: <SRC.TARG.TIMER>
RETURN 1![[Image: ztd8jc.jpg]](http://i58.tinypic.com/ztd8jc.jpg)