Here is the Full Script... just incase its confusing..
TRAKANON
Code:
sub EVENT_SPAWN {
my $x = $npc->GetX();
my $y = $npc->GetY();
my $range = 210;
quest::set_proximity($x - $range, $x + $range, $y - $range, $y + $range);
}
sub EVENT_ENTER
{
if (quest::istaskactivityactive(500,0)) {
$client->Message(4, "Quest Item Added To Loot Table");
quest::addloot(3233,1);
}
}
sub EVENT_EXIT
{
if (quest::istaskactivityactive(500,0)) {
$client->Message(4, "signal sent");
quest::signalwith(999456,10,1); #Signal to questloot_trigger to send signal back
}
}
sub EVENT_SIGNAL {
if($signal == 11) && (plugin::check_hasitem($npc, 3233)) {
$npc->NukeItem(3233);
quest::shout("got signal from trigger, removing 1 heart");
}
}
QUESTLOOT_TRIGGER
Code:
sub EVENT_SIGNAL {
if($signal == 10) {
quest::shout("TRIGGER RECIEVED GO AHEAD");
quest::signalwith(89154,11,1); #Signal for trakky to remove the item
}
}
I Originally had it just try to remove the item when they EVENT_EXIT, but i think its not really sure who $npc is... Sorry im not very good with the quest objects yet; does it need to be defined somewhere?