ID:1697088
 
Can someone help me with creating a event that the npc Fight and time when it start?
I'M NOT Sure I understand your question.
mob/NPC
New()//Called when the object is created.
spawn() src.SearchOponent()//Now NPC start search oponent.
proc/SearchOponent()//proc try search oponent
while(src)//if NPC is
if(var/mob/M in oview(src,3))//Now all mobs in oview will be attacked by NPC.
src.Fight(M)
break
sleep(5)
proc/Fight(var/mob/M)//Proc to attack.
world<<"[src] attack [M]!"
Just want to know how to create a event about fighting