Notes |
|
|
There is s Sphere.ini flag for this already:
// How many minutes are criminals flagged for
CriminalTimer=3 |
|
|
(0001551)
|
Coruja
|
03-05-13 21:29
|
|
sure, but there's "2 types" of criminal and this setting is used only by "type 1", the idea is create another setting to control "type 2" too
type 1: criminal to everyone
-ref: criminal memory item (LAYER 43 /layer_flag_criminal) equipped on attacker
-here the timer is defined by SERV.CriminalTimer and it works fine
type 2: criminal/gray just to someone specific
-ref: memory_harmedby equipped on char defending/attacked
-here the timer will always be 300 (hardcoded) and there's no way to customize it. So it will be nice a new setting to customize this, or at least make it use the SERV.CriminalTimer too |
|
|
(0001559)
|
xwerswoodx
|
18-06-13 13:12
(edited on: 18-06-13 13:14) |
|
You can check the item with @HIT trigger.
If he has and its timer >= 181
OBJ=<itemuid>
OBJ.TIMER=180
endif
Or
On=@HIT
timerf 1,src.ctimer <src.memoryfindtype.memory_harmedby.uid>
[Function ctimer]
OBJ=<args>
if <OBJ.TIMER> > 180
OBJ.TIMER 180
ENDIF
|
|