PDA

View Full Version : Adding ^petremove command for other bots with pets


phantomghost
07-03-2019, 08:40 PM
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
uint16 class_mask = (PLAYER_CLASS_DRUID_BIT | PLAYER_CLASS_NECROMANCER_BIT | PLAYER_CLASS_ENCHANTER_BIT);

Change to:

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.

Uleat
07-03-2019, 10:00 PM
https://github.com/EQEmu/Server/commit/6c73fee075d81ff8442c2f666e0af938b91ac142

^petremove still sticks to charmed (temporary) pets.

^petgetlost removes all summoned types (mage, enchanter, beastlord, dragon fang summons, etc...)

phantomghost
07-03-2019, 10:47 PM
Ahh... just needed to update the server. Thanks.

Uleat
07-03-2019, 11:38 PM
Thanks for posting that! :)

It was just blind luck that I added that when I did.

GM Ash
08-27-2019, 01:09 AM
https://github.com/EQEmu/Server/commit/6c73fee075d81ff8442c2f666e0af938b91ac142

^petremove still sticks to charmed (temporary) pets.

^petgetlost removes all summoned types (mage, enchanter, beastlord, dragon fang summons, etc...)

Undocumented command?

Meant to suggest ^petrelease, ^release for charmed pets

Then ^petremove, ^remove, ^petgetlost or just ^getlost could be aliases for forcing bots to resummon (presumably highest level pet available to them)

Also meant to inquire if level 51+ (or level 60+) Mage bots could have "epic" type pet in addition to earth, fire, air and water.

Thanks for reading

Uleat
08-27-2019, 01:43 AM
Not sure what you mean by Undocumented command?