nilbog |
04-20-2010 03:22 PM |
The way bind works in eqemu is that its either turned On or Off for a particular zone.
North Karana.. casters should be able to bind affinity themselves, but not others, unless they are in the range of the gypsy camp.
If anyone wants to take a stab at this, by all means. Here's the last work I did on it.
I made an invisible man in the middle of the gypsies and it is named 1466.
player.pl for nk
Code:
sub EVENT_CAST {
if $spell_id == 35) {
quest::signalwith(1466,0,0); ## 1466 is the invisible man
}
}
script for invisible man (1466 in my example)
Code:
sub EVENT_SIGNAL {
if($signal == 0) {
my $list_check = 0;
for ($list_check = 0; $list_check < 2000; $list_check++) {
$client_search = $entity_list->GetClientByID($list_check);
if ($client_search) {
my $distanceCHK = $client_search->CalculateDistance($x, $y, $z);
my $PLTarget = $npc->GetTarget();
my $TargID = $PLTarget->GetID();
my $ClID = $client_search->GetID();
my $client_target = $TargID->GetTarget();
if (($distanceCHK <= 100) && ($TargID = $ClID)) {
$npc->CastSpell(35,$client_target);
}
}
}
}
}
|