Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 08-19-2007, 01:18 AM
Magoth78
Discordant
 
Join Date: Jun 2003
Posts: 345
Default

To be sure that it's loading your spells, target your bot and do "#ai spellslist 600".
__________________
User's projects:
-- Original EMPIRE I/II and Factions! servers
-- Web GM Portal
-- EQoffline/bots
  #2  
Old 08-20-2007, 04:36 AM
drakelord
Hill Giant
 
Join Date: Nov 2002
Location: NC, USA
Posts: 182
Default

Sweet, it worked.

Now, next couple things, :3; First off, is there a way to get a bot to cast DoT's before it casts it's direct damage spells?

Also, how can I increase the casting rate in the source code?
  #3  
Old 08-20-2007, 11:15 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Might require some manual effort on your part, but I believe the npc_spell_entries table has a "priority" field. If it does what I think, the NPC should cast it's spells in the order of priority. I haven't tested this, but it would make sense.

You know how some NPCs pop, and immediately start buffing themselves or summon pets... I think this is what controls that.
  #4  
Old 08-20-2007, 12:19 PM
Zengez
Hill Giant
 
Join Date: Nov 2004
Posts: 160
Default

I May be totally off target but I thought I read somewhere that that field governed some weird idea about how many times the npc casts that in a given amount of time... i.e. if priority is 5 then the npc casts that spell 5 times per however long that time period is...

That could be dating myself though and not have been true since the dawn of time, but I remember that from somewhere if it matters... My server is down though so no ability to test it unfortunately.
  #5  
Old 08-20-2007, 01:28 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I wouldn't be the least bit surprised if a field aptly named "priority" ended up having nothing whatsoever to do with prioritizing what order to cast, but quantities of casts.

Considering I am still wrestling with understanding conditional spawns...
  #6  
Old 08-20-2007, 03:25 PM
sonicvt
Fire Beetle
 
Join Date: Jul 2007
Posts: 22
Default

Mag,

I'm having a terrible time with your raid commands. I created 6 warrior bots (named War_Raid1 through War_Raid6) and 6 cleric bots (named Cleric_Raid1 through Cleric_Raid6). I can invite the bots to be leaders of their own raid groups but I can't add other bots to their group. I'm telling them the corret name of the bot as I can tell which one is the leader (#bot raid info) but they won't join the raid group. Is my naming convention messing up your commands?
  #7  
Old 08-20-2007, 08:43 PM
Magoth78
Discordant
 
Join Date: Jun 2003
Posts: 345
Default

sonicvt>
The method to create a raid is the following one :

1/ Create your group and invite your bots.
2/ Once your group is full, create a raid: #bot raid create. That will show you "Your raid is created".
3/ Then, spawn your 2nd group. You want to make War_Raid1 the leader of the 2nd group, target War_Raid1 and type #bot raid group create.
4/ invite bots in the second group: target bot and type #bot raid invite bot <Group leader name>. In your case, you have to type #bot raid invite bot War_Raid1.
5/ Ok you have created your raid, created groups and invited bots in the raid's groups. If you want to have infos on your raid, type #bot raid info.
6/ Now, you want to give orders to your raid. Note that you can only give order to the group and not to the entire raid. If you want to give an attack order to group1 so it attacks a certain target , target the mob that you want the group attacks and type: #bot raid order tasks attack War_Raid1. The War_Raid1's group will attack your target.
7/ There are other tasks commands : For example, if you that War_Raid1's follow your group, type #bot raid order task follow War_Raid1 sonicvt supposing that sonicvt is your character's name and that you are the group leader.
If you want to give a guard order (stop moving) to War_Raid1's group, type #bot raid order task guard War_Raid1.

----
drakelord>
"Also, how can I increase the casting rate in the source code?"

The bot AI codes is in the BotAI.cpp file. If you want to make custom code, do it at your own risk. Now if you notice that the casting's rate is not right, we can discuss on it and I will make the changes if they are really needed.

Talking about spells, I'd like to make a special npc_spells entrie for any bot caster class. This entrie should contain the same spells at the same level that a player. Yes, because some important spells are missing or they re not the in the right level range actually... that's a lot of work, but I think it worths it.

Mag
__________________
User's projects:
-- Original EMPIRE I/II and Factions! servers
-- Web GM Portal
-- EQoffline/bots
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:31 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3