Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2009, 11:37 AM
Capheus
Hill Giant
 
Join Date: Apr 2008
Location: Milwaukee
Posts: 141
Default List players by name and loc in a zone

Always was frustrated by trying to find and get to players in a zone. Tracking only works so good so I took some scriptwork that Kayen did for AE Rampage and Trevius' Thanksgiving event. I assigned this to my bot and it outputs all players in the zone with their locations.

Code:
#list Players by name and location in the zone

sub EVENT_SAY {

  if($text=~/client/i) {
	quest::settimer("pc",2);
	quest::say("Working on it.....");
	}
}

sub EVENT_TIMER {

  if ($timer eq "pc") {
   
  my $list_check = 0;

  for ($list_check = 0; $list_check < 2000; $list_check++) {

  $client_search = $entity_list->GetClientByID($list_check);
     
    if ($client_search) {
    	my $cx = int($client_search->GetX());
        my $cy = int($client_search->GetY());
        my $cz = int($client_search->GetZ());
	$person = $client_search->GetCleanName();
	quest::say("$person is at___$cx,___$cy,___$cz");
    }
    }
    }
	quest::stoptimer("pc");
}
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:43 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3