Nahh, you don't need to make the function outside the @targon_item trigger, only if you will use this function in another place too.
Try this one...
PHP Code:
on=@TargOn_Item
REF1 <SRC.TARG>
IF (<REF1.TYPE> == T_CORPSE) && STRMATCH(*WEAPON*,<TYPE>) // if this is a corpse and is being carved using a sharped weapon
IF (<SRC.DISTANCE <REF1> > 2)
SRC.SYSMESSAGE You must be near the corpse to carve it.
RETURN 1
ENDIF
IF <REF1.TIMESTAMP>
REF1.TIMESTAMP 0
SRC.ANIM 11
SERV.NEWITEM { i_blood_2 1 i_blood_smear 1 }
NEW.P <REF1>
NEW.TIMER 60
NEW.FIX
SERV.NEWITEM i_blood_pool_large
NEW.P <REF1>
NEW.TIMER 60*3
NEW.FIX
RETURN 1
ELSE
SRC.SYSMESSAGE This body is already carved.
RETURN 1
ENDIF
ENDIF
About the world cup, we brazilian are not very happy with it.
We have a lot of social problems, our health and security system is poor.
We have people dieing in hospitals without assistance or things to help the pacients, our doctors are very responsibles to cure people without the right medicines and tools.
There are the bandits who kills cops, kids stealing and killing, but they don't go to jail because they are "young".
Our govern is going communist, they made a harbor in Cuba using our money, and here in Brazil we don't have a harbor like that one.
They willing to make a coup and turn it in a dictatorship...
In october we have the election and something will happen.
In 12th June I'd be with my gf watching this circe