Page 1 of 1

[Exploit] Aggro occurs but the npc does not chase [Resolved]

Posted: Sun Dec 06, 2009 9:39 am
by bolly
If you cast a long distance spell on a target the npc will aggro the player but will not run to them until they get close to them.

Perhaps something to do with aggro radius i'm not sure, hate is definately being added as their animation changes to combat mode

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 06, 2009 7:05 pm
by John Adams
There was actually a bug about this reported long ago when Alfa and I went into VP and tried to piss off some big dragon. He was so huge, we could stand next to him and aggro but his "center" would never arrive before he turned and went and laid back down.

Who was that sleepy dragon?

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 06, 2009 7:41 pm
by bolly
the prophet and once sickly big bad boy himself, mr trakanon

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 06, 2009 7:58 pm
by ZexisStryfe
Sleepy dragon is Xygoz.

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 06, 2009 8:13 pm
by bolly
isnt xygoz a sarnak?!

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 06, 2009 9:23 pm
by ZexisStryfe
Thats Xalgoz, the Vampire Sarnak in Karnors :P

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Mon Dec 07, 2009 6:31 am
by John Adams
ZexisStryfe wrote:Sleepy dragon is Xygoz.
That's him!! Doesn't he have little Z's coming up from his snout too? Or maybe I was dreaming that ;)

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Mon Dec 07, 2009 11:02 am
by ZexisStryfe
They are Zzzz's but in the Draconic font.

Image

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Mon Dec 07, 2009 4:48 pm
by John Adams
I love that guy. Narcoleptic dragon.

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 13, 2009 6:56 am
by bolly
I think i might be right but maybe not

in function: NPC_AI::MoveCloser

npc->AddRunningLocation(target->GetX(), target->GetY(), target->GetZ(), target->GetSpeed(), distance);

Should that be npc->GetSpeed()?

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 13, 2009 7:01 am
by LethalEncounter
bolly wrote:I think i might be right but maybe not

in function: NPC_AI::MoveCloser

npc->AddRunningLocation(target->GetX(), target->GetY(), target->GetZ(), target->GetSpeed(), distance);

Should that be npc->GetSpeed()?

Lol, yes it should be.

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 13, 2009 7:02 am
by LethalEncounter
I'm checking the change into public svn (along with the /spawn details problem) and a crash fix in the next 5 minutes. Could you check it out and see if it has been fixed?

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 13, 2009 8:17 am
by bolly
looking good for both, cheers bro :-)

can you take that printf("The ID of this thread is: %u\n", (unsigned int)pthread_self()); out of net.cpp?

Re: [Exploit] Aggro occurs but the npc does not chase

Posted: Sun Dec 13, 2009 2:46 pm
by LethalEncounter
bolly wrote:looking good for both, cheers bro :-)

can you take that printf("The ID of this thread is: %u\n", (unsigned int)pthread_self()); out of net.cpp?

Oops, that shouldn't have been checked in.