View Single Post
  #1  
Old 07-03-2019, 08:40 PM
phantomghost
Hill Giant
 
Join Date: May 2015
Posts: 126
Default Adding ^petremove command for other bots with pets

Not sure if anybody would want this, but I have been meaning to do this for awhile, so figured I would post it in the event someone else had any interest.

Eventually, bots (shamans and beastlord etc.) as they level, they do not re-summon a new pet, they keep it until the zone is #repop or you have the bot run and die with the pet.


Without knowing much of what needs to be changed, the existing ^petremove command can be easily added to other classes.

Line 7432 of bot_command.cpp
Code:
uint16 class_mask = (PLAYER_CLASS_DRUID_BIT | PLAYER_CLASS_NECROMANCER_BIT | PLAYER_CLASS_ENCHANTER_BIT);
Change to:

Code:
uint16 class_mask = (PLAYER_CLASS_DRUID_BIT | PLAYER_CLASS_NECROMANCER_BIT | PLAYER_CLASS_BEASTLORD_BIT | PLAYER_CLASS_SHAMAN_BIT | PLAYER_CLASS_ENCHANTER_BIT);
Recompile and it should allow ^petremove command to work for other classes.

Bst and sham in this case would be able to kill their pet, then just ^camp the bot and invite again and they will re-summon the higher level spell.

Necro, enchanter and druid always had this option. Mage you can add to as well, but setting their pet type will force them to re-summon anyway.
Reply With Quote