Quote:
Originally Posted by Gregk
Nevermind. I changed the "/Port to/ part to KEI. Worked like a charm. Thanks again. Now I just need to slow down the shout spam. Wouldn't be so bad if the zone were populated... Awesome script!
|
If you want to prevent a lot of spam, I would suggest using direct messages to the client, instead of chat spam, just like there is in parts of the script (but not all?). It is much more clean for everyone around.
IE:
Code:
sub EVENT_SAY {
$client->Message(7, " ");
my $NPCName = $npc->GetCleanName();
if ($text=~/hail/i) {
$client->Message(315, "$NPCName whispers to you '...nice and quite, $name.'");
}
}
Also, instead of shouting on a timer... why not put it on a proximity trigger when the player gets within X distance of the NPC?