EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   Adding ^petremove command for other bots with pets (https://www.eqemulator.org/forums/showthread.php?t=42517)

phantomghost 07-03-2019 08:40 PM

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.

Uleat 07-03-2019 10:00 PM

https://github.com/EQEmu/Server/comm...0af938b91ac142

^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

Quote:

Originally Posted by Uleat (Post 262949)
https://github.com/EQEmu/Server/comm...0af938b91ac142

^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
Quote:

Undocumented command?


All times are GMT -4. The time now is 02:08 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.