EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   baraguj szuul problem (https://www.eqemulator.org/forums/showthread.php?t=33962)

Criimson 08-04-2011 09:32 AM

baraguj szuul problem
 
Can someone try to run this event.

I have tried 4 times and each time I engage baraguj szuul I get ported to the stomach but the zone crashes immediately.

Script error: qst207028::EVENT_ATTACK - Perl runtime error: client is not of type Client at quests/potorment/Baraguj_Szuul.pl line 7.

IS the error and I don't know enough perl to debug it.

Thank you
Criimson

Congdar 08-04-2011 09:57 AM

It's likely that a Bot is triggering the EVENT_ATTACK and since a bot is not a client it fails. Try a quick test. Add a check in NPC::Damage() where EVENT_ATTACK is triggered
Code:

        if(attacked_timer.Check())
        {
                mlog(COMBAT__HITS, "Triggering EVENT_ATTACK due to attack by %s", other->GetName());

#ifdef BOTS
                if(other->IsBot())
                        parse->EventNPC(EVENT_ATTACK, this, other->CastToBot()->GetBotOwner(), "", 0);
                else
#endif //BOTS

                parse->EventNPC(EVENT_ATTACK, this, other, "", 0);
        }


Criimson 08-04-2011 10:09 AM

Quote:

Originally Posted by Congdar (Post 202029)
It's likely that a Bot is triggering the EVENT_ATTACK and since a bot is not a client it fails. Try a quick test. Add a check in NPC::Damage() where EVENT_ATTACK is triggered
Code:

        if(attacked_timer.Check())
        {
                mlog(COMBAT__HITS, "Triggering EVENT_ATTACK due to attack by %s", other->GetName());

#ifdef BOTS
                if(other->IsBot())
                        parse->EventNPC(EVENT_ATTACK, this, other->CastToBot()->GetBotOwner(), "", 0);
                else
#endif //BOTS

                parse->EventNPC(EVENT_ATTACK, this, other, "", 0);
        }


Thank you

Actually I just removed the check since it looks like no matter what you get ported.

Another thing about this zone I noticed. The Ravager that spawns over first bridge casts mana rend and then I get hit for 11k damage. Unsure why as mana rend isnt a DD. Even tried it on a gm character with the same result. Warrior regular char and bard GM char.

And it isnt a bot triggering or at least it shouldnt be. I had the bots attack and they killed it without triggering event - while I watched against wall.


All times are GMT -4. The time now is 07:03 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.