View Single Post
  #2  
Old 08-10-2013, 09:18 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

I did this to Check_Hasitem plugin to fix that issue ...



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;
#        }
#      }
#    }
#  }
  return 0;
Made it no longer check corpses
Reply With Quote