View Single Post
  #2  
Old 10-07-2010, 08:16 AM
Hargael
Fire Beetle
 
Join Date: Aug 2010
Location: France
Posts: 5
Default

Hello

Here are some news from my testing :

- Enchanter : I added some spells in the npc_spells_entries table for mez (I am currently 55 so I added spells 1691, 1692, 3341 and 3358 ), and now my enchanter bot mez ! But he has lots of trouble finding a target to mez (LoS problems), I think I will check how he should find one and perhaps modify some code. Btw he still casts too many runes, I will remove them from table, and use the runeme command.

- Cleric : now I known why my cleric bot never sees me engaged. My hate list is always empty. In AddToHateList (attack.cpp) the test
Code:
if(IsClient() && !IsAIControlled())
is always true for me (me = client and not AI controlled), so nothing in hate_list, so IsEngaged() returns false ... I put this test in comment, and now my bot sees me engaged, and change his heal spell.

I also still have the problem of no heal for a certain range of hps (in fact it's the result of the GetBestBotSpellForRegularSingleTargetHeal function). Maybe I will check the table for missing heals, or check the way this function find one.

To be continued ...
Reply With Quote