View Single Post
  #1  
Old 05-06-2002, 10:16 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default Oddity with source

I'm trying to add in Feign Death compability. So far, I've added the function in client_cpp, with two separate, working functions (GetFeigned, SetFeigned).

Now, I'm modifying NPC ai. I've gotten ignore feigned people when determining who to aggro working, HOWEVER, in NPC::Process (npcai.cpp):

if (hate_list.GetTop()->CastToClient()->GetFeigned() == 1) {
RemoveFromHateList(GetHateTop());
}

This compiles just fine, but whenever someone logs into a zone with mobs, the zone crashes. If I remove it, everything runs smoothly.

Second question:

Where in source is sitting defined? Aka hitting the "sit" button. It's for turning FD off.
Reply With Quote