PDA

View Full Version : bind within proximity


nilbog
06-29-2009, 07:43 PM
Not sure if this is still the way it is on live, but classically you could bind at the gypsy camp in north karana.

Here's a script I made to allow binding to happen around gypsies.

I made an invisible man in the middle of the gypsies and it is named 1466.

player.pl for nk
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)
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);
}
}
}
}
}

The one issue with it is that it will give the message to the player "You cannot seem to develop an affinity for this place. Try a city." It still works though, not quite sure how to get rid of message :D

Hope it helps someone!

ChaosSlayerZ
06-29-2009, 08:27 PM
you simply add extra message right after that "but Divine force intervines and bind you anyway" :D