the spell code looks reasonable, assuming that the ztype field is correctly populated in the database. If you confirm that this is in fact set correctly, I will put this code into cvs.
On the other hand, I disagree with you about disabling LOS for outdoor zones... theres a lot of reasons that you would not want to disable LOS. Such as buildings like the crypts in oasis, mountains, etc...
|