EVENT_COMBAT Glitch?
FatherNitwit: added EVENT_COMBAT triggered when an NPC engages any form of
FatherNitwit: combat and when combat is over. $combat_state signals which. Here's a simple pl I plan for the guards; Code:
#npc - Gfaydark Guard Protectors I wonder if this is just something needs to be fixed, or there's a way to get him not to repeat himself? |
Maybe he's just really zealous?
|
sub EVENT_COMBAT is triggered at combat start and end. use the variable mentioned at the log that should fix it ($combat_state)
|
Quote:
|
sub EVENT_COMBAT {
if($combat_state == 1) { quest::say("For the defense of Kelethin!!"); quest::say("For the protection of all Fier'Dal, there shall be no mercy for your kind."); } } |
Sorry to nitpick, but the guards say
"For the protection of all Fier'Dal, there shall be no mercy for your kind." after they have successfully killed something, not when they start combat. An easy mistake to make, since they rarely need more than one swing to dispatch that decaying skeleton... |
Quote:
|
try $combat_state == 1 for your attacking message
and $combat_state == 0 for the npc's message for it's opponent's death and see if that does the trick. |
All times are GMT -4. The time now is 01:44 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.