View Single Post
  #11  
Old 06-21-2013, 08:20 AM
Dunge0nMastr
Hill Giant
 
Join Date: Oct 2002
Location: Rockville, MD
Posts: 124
Default

while we didnt have this issue with seb, we had it within HS for the doors and the keys in there. Since we dont have any corpses on the server, i found that it was the bit within the plugin::check_hasitem(); calling on corpse checking that was causing crashes.

Not sure regarding seb, since it doesnt appear to be handled through a player.pl (at least on my server) but it may be related?

Either way i cut out this bit of code from the serverfolder\plugins\check_hasitem.pl

Code:
#Check corpses
  if ($body_count > 0) {
    for ($i=1; $i<=$body_count; $i++) {
      $body_id = $client->GetCorpseID($i);
      for ($slot1=0; $slot1<=30; $slot1++) {
        $itemid1 = $client->GetCorpseItemAt($body_id, $slot1);
        if ($itemid1 == $itmchk) {
          return 1;
        }
      }
      for ($slot1=251; $slot1<=340; $slot1++) {
        $itemid1 = $client->GetCorpseItemAt($body_id, $slot1);
        if ($itemid1 == $itmchk) {
          return 1;
        }
      }
    }
  }
and that seemed to do the trick - if your server leaves corpses not really sure from there, but seemd to fix up NL on the crashes related to doors an keys.

(basically any zone where a player.pl handled the key checks, 75% of the time when a player clicked a door/zoneline, it would crash the zone)
__________________
Bront -Server Admin/Owner and Lead Quest Dev for Kildrukaun's Prophecy
http://kpemu.com/
Reply With Quote