i did, thanks...
i have a bit more complex issue...
i have this but the item is not created or equipped and after a while a get a console error,
ERROR:GC: 8 unplaced object deleted
ERROR:UID=040017400, id=046ee 'Item memory', Invalid code=3202 (Object not placed in the world)
ERROR:UID=04001740b, id=046ee 'Item memory', Invalid code=3202 (Object not placed in the world)
ERROR:UID=040017424, id=046ee 'Item memory', Invalid code=3202 (Object not placed in the world)
ERROR:UID=04001742e, id=046ee 'Item memory', Invalid code=3202 (Object not placed in the world)
this is the script:
PHP Code:
ON=@Timer
REF1 <LINK>
REF2 <UID>
IF (<ref1.tag0.mytag> == 4)
FORCLIENTS 5 // <r3,5>
flags += 08
SERV.NEWITEM i_memitem // <----- this item is not created or equipped :S dunno why:
NEW.ATTR 082
EQUIP <NEW>
ENDFOR
ENDIF
REF1.tag0.mytag =
ENDIF
[itemdef i_memitem]
id=i_gold
name=Item memory
type=t_eq_script
LAYER=LAYER_SPECIAL
TEVENTS=t_equipitem
on=@create
REGENHITS = 60
REGENSTAM = 15
REGENMANA = 20
Attr=attr_invis|attr_decay
on=@equiptest
IF (<src.findid.i_memitem>)
src.findid.i_memitem.remove
ENDIF
on=@Equip
// LINK = <src.uid>
SRC.SYSMESSAGE YOU HAVE EQUIPPED <NAME>
timer 1
ok i noticed its not placed because of the TEVENTS=t_equipitem
but it's weird because i ve seen it working before