Charming

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

Charming

Postby Etaew » Wed Feb 14, 2007 5:12 pm

Some NPC's aren't charmable, like named mobs, and non mobs i.e. merchants.

What do you think the best way to resolve this is?

I see two options:

a) We add a new IsCharmable field to the mob table, and manually set it for each mob we don't want to be charmed.
b) We add some automatic detection based on case of the name, and perhaps it's spell and ability lists.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Postby Schaf » Wed Feb 14, 2007 5:29 pm

Charming works with the use of bodyclass and name on live.
For example hunter charms can only charm bodyclass=5=ANIMAL or something, who have a lowercase name and are no boss mobs etc.
Schaf
Inactive Staff Member
 
Posts: 172
Joined: Sun Feb 29, 2004 1:35 am
ICQ: 103003434

Postby Etaew » Wed Feb 14, 2007 6:01 pm

Some normal mobs have uppercase names to start with though.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Postby Etaew » Sun Feb 25, 2007 4:03 pm

Ok, until I'm told a better idea, instead of an entirely new field for mobs to determine if the mob is charmable, I will set it so you cannot charm a mob with any part of the name upper case.
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest