View Single Post
  #3  
Old 12-02-2014, 08:36 PM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

I am unsure if things have changed to where it is located in the DB now, but this used to be handled in the script because if you clicked the tower pedestal and didn't have the ring the gargoyles attacked, same with the lightning pedestal for Aggy.

Check the bot folder under the player.pl. There should be a section for EVENT_CLICKDOOR

If you do not have this, then I anticipate this is the reason nothing works correctly.

I went through some old quest folders (since my server uses pure custom, so I deleted all PEQ) and found this. Perhaps it will be of some use.

Code:
sub EVENT_CLICKDOOR {
  if($doorid == 51) { #Agnarr Tower
    if($client->KeyRingCheck(9433) || ($status > 79)) {
      quest::movegrp(209,-765,-1735,1270);
    } 
	elsif(plugin::check_hasitem($client, 9433)) { #Symbol of Torden
	  $client->KeyRingAdd(9433);
      quest::movegrp(209,-765,-1735,1270);
    }
    else { #Send gargoyles to attack
      my @npc_list = $entity_list->GetNPCList();
      foreach $npc (@npc_list) {
        if($npc->GetNPCTypeID() == 209024) {
          $npc->AddToHateList($client, 1);
        }
      }
    }
  }
  if($doorid == 61) { # tower
    if($client->KeyRingCheck(9425) || ($status > 79)) {
      quest::movegrp(209, 85, 145, 635);
    } 
	elsif(plugin::check_hasitem($client, 9425)) {
      $client->KeyRingAdd(9425);
      quest::movegrp(209, 85, 145, 635);
    }
  }
  if($doorid == 63) { # tower
    if($client->KeyRingCheck(9425) || ($status > 79)) {
      quest::movegrp(209, -830, -865, 1375);
    } 
	elsif(plugin::check_hasitem($client, 9425)) {
      $client->KeyRingAdd(9425);
      quest::movegrp(209, -830, -865, 1375);
    }
  }
  if($doorid == 65) { # tower
    if($client->KeyRingCheck(9425) || ($status > 79)) {
      quest::movegrp(209, -350, -2200, 1955);
    } 
	elsif(plugin::check_hasitem($client, 9425)) {
      $client->KeyRingAdd(9425);
      quest::movegrp(209, -350, -2200, 1955);
    }
  }
  if($doorid == 67) { # tower
    if($client->KeyRingCheck(9425) || ($status > 79)) {
      quest::movegrp(209, 150, -1220, 1120);
    } 
	elsif(plugin::check_hasitem($client, 9425)) {
      $client->KeyRingAdd(9425);
      quest::movegrp(209, 150, -1220, 1120);
    }
  }
}
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
Reply With Quote