I'm currently working on the Charmspell Handler...
Was really badly written and did not follow core coding rules (ugly IF statement for BodyType Checking)
but honestly I get to a point where my "Live Knowledge" is not enough to properly finish this code...
Why is there a check for Named mobs inside Charm Handler to prevent spell to land ? I have seen a lot of "Charm" Guides that report using Named mobs as pets... (and some mobs could have an Upper case letter not on the first letter... like "daughter of
Medb" !)
- Code: Select all
if (target.Name != target.Name.ToLower())
{
//Needs livelike message
MessageToCaster("This monster can't be charmed!", eChatType.CT_SpellResisted);
return;
}
I want to remove this part as, for me, the GOOD way to prevent a mob from being charmed is to set his BodyType to 0 !(None)
Talking about bodytype, I couldn't find any data about Reptile/Plant being included in Minstrel/Mentalist Pusling chants ? There is description about them charming Humanoid, Animal, Insect, Magical, Undead, and finally ALL, I wonder if these class aren't meant to charm Plant or Reptile before last charm spell ?
Hunter has a specific "Reptile" (as well as Animal and Insect) Charm spell, and I think permanent charm (Sorcerer/SpiritMaster) can target any bodytype (maybe a bonus to the fact they can't charm above caster level, at game release Sorcerer could only charm humanoid all the way !)
I checked some old Charm guides :
http://charm.enygma.net/petguide.html
Hibernia guide reports "Moss Sheerie" and "Rock Sprite" as being good pets, but these are Elementals according to Allkhazam, Hibernia can't charm these until last level charm ! (or Elemental is Inside Magical Type ?)
The Same with "Faerie Drake" being reported as Drake, about level 20-22 shouldn't be charm-able until later level
I can't get my mind clear, as this could be coop server reports...
I would like the level 3 charm (Human, Animal, Insect) to charm Reptile too, and level 4 (+Magical) to charm Plant and Elemental (Trees moving, if it's not magic what is it !?)
That would leaves Demon, Dragon, Giant for the last level of these pulsing charms (even if I could put Dragon in Animal or Reptile/Insect levels, Giant in Magic, and only Demon gained from later level)
I want to be as live-like as possible, but prevent that players can't find anything to charm due to strong restrictions and mobs templating errors...