View Single Post
  #11  
Old 05-18-2004, 05:54 AM
blastoma
Sarnak
 
Join Date: May 2004
Location: Canada
Posts: 69
Default

I was kinda bored last night and started adding ac to mobs in the database. After pulling all my hair out, I figured I'd do it the lazy way (and probably the wrong way... my C++ knowlage is pretty gimp).

Anyhow, I used some randomish number based on the level of the npc to auto-give ac if the ac in the db was 0. I dont know if it works correctly or not... either way... it does show the ac in #showstats.

At line 189ish in mob.cpp I used:

Code:
 	if(in_ac == 0)
		AC  = ((level*level)/1.75) + 15;
	else
		AC  = in_ac;
Numbers are just rough... Hope it helps.
Reply With Quote