[committed] StandardMobBrain Aggro VS GamePet

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[committed] StandardMobBrain Aggro VS GamePet

Postby Shursan » Fri Feb 26, 2010 3:21 am

normally GameNPC don't attack a GamePet if the mob is gray for pet owner, if i'm right.

This patch is tested and work.
Attachments
Mob aggro.patch
(949 Bytes) Downloaded 19 times
Origins/Genesis Administrator
Shursan
Server Representative
 
Posts: 376
Joined: Mon Jun 22, 2009 8:25 pm
Location: France

Re: StandardMobBrain Aggro VS GamePet

Postby Graveen » Fri Feb 26, 2010 9:58 am

Thank you Ysia ! :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: StandardMobBrain Aggro VS GamePet

Postby Tolakram » Fri Feb 26, 2010 1:17 pm

This mod may need to be expanded to include charmed mobs, which are not game pets. Could you do the check for Controlled brain instead?

I wish this was consistent, but the way charm works there is no way to turn a charmed NPC into a game pet and then back to an NPC when released. If someone has a better idea please chime in!
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: StandardMobBrain Aggro VS GamePet

Postby Shursan » Fri Feb 26, 2010 1:39 pm

Yes ok, i'll test to expand it and recreate the patch.

Edit :
In fact i have tested with charmed pets (sorcerer) and all is ok, gray mobs don't aggro them.

Can you please test this patch and give me the feedback if there's any problems with your Charmed Pets?
Origins/Genesis Administrator
Shursan
Server Representative
 
Posts: 376
Joined: Mon Jun 22, 2009 8:25 pm
Location: France

Re: StandardMobBrain Aggro VS GamePet

Postby Oxydean » Fri Feb 26, 2010 1:57 pm

Excellent idea and work Ysia , thanks a bunch


Oxy ;-)
Image
User avatar
Oxydean
Server Team
 
Posts: 272
Joined: Fri Mar 06, 2009 9:11 pm
Location: Deutschland/Germany

Re: StandardMobBrain Aggro VS GamePet

Postby Tolakram » Fri Feb 26, 2010 2:04 pm

Yes ok, i'll test to expand it and recreate the patch.

Edit :
In fact i have tested with charmed pets (sorcerer) and all is ok, gray mobs don't aggro them.

Can you please test this patch and give me the feedback if there's any problems with your Charmed Pets?
Excellent, there must be code in there already to handle it. I trust your testing.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: StandardMobBrain Aggro VS GamePet

Postby Graveen » Fri Feb 26, 2010 5:49 pm

Accepted, Soon in SVN - i have to commit, thank you :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 0 guests