EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   #bot saveraid (https://www.eqemulator.org/forums/showthread.php?t=27671)

Congdar 03-15-2009 04:10 PM

#bot saveraid
 
I just uploaded some new commands that are kind of a mixed blessing.
On the one hand you can save a current spawned bot raid and then load that same raid without having to hit a macro key for each and every bot.
On the other hand these commands are very database/cpu intensive and might LD you on lower end systems.

#bot saveraid - Save your current group(s) of bots.
#bot spawnraid - Spawns your saved bots.
#bot groupraid - Groups your spawned bots.

I recommend your hotkey for these new commands look something like this:

#bot raid disband
/pause 20
#bot spawnraid
/pause 20
#bot groupraid

nosfentora 05-04-2009 04:21 PM

Once again I'd like to say awesome job!

Wanted to point out something that I found in Rev461 (only tried it in 461 though)

I created a group of 6 (me + 5 bots) and did a #bot saveraid (said it saved)

i disbanded each of the bots (#bot group remove) and did as you suggested
Code:

#bot raid disband
/pause 20
#bot spawnraid
/pause 20
#bot groupraid

however it only spawned / grouped 2 of the 5 bots.

i just noticed as i was writing this, that in the db (botgroups) that it doesn't seem to update the charid correctly if you use the same bots with multiple characters.

just thought you'd like to know.

but still an awesome time-saving (and hotkey saving) feature!

Congdar 05-04-2009 04:58 PM

It's probably because I used the botid as the table key. Maybe should've created and used table entry id. Not sure how tough that would be to alter the table.

nosfentora 05-05-2009 08:48 AM

looking at the table, if you leave it as is and only update based on charid?
on a #bot saveraid
delete * from botgroups where charid=<current charid>
then save the new raid info

the on a #bot spawnraid pull data based on the current char id.

the sql to change the table is pretty simple
Code:

alter table botgroups drop primary key
if you really want to have a primary key somewhere you could do
Code:

alter table botgroups add column `entry` int(11) not null  auto_increment primary key
it won't add it at the beginning (couldn't figure out how/why) but it'll be there.

Congdar 05-05-2009 03:11 PM

the saveraid code does currently delete all groups by charid and then save by charid. I think the bug is somewhere else. until i can figure it out, after you do a saveraid, zone before you do a spawnraid.

nosfentora 05-05-2009 03:16 PM

10-4 and again - outstanding work!


All times are GMT -4. The time now is 04:16 AM.

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