cameri / tibiatekbot

Automatically exported from code.google.com/p/tibiatekbot
1 stars 0 forks source link

Autoheal casts at wrong mana #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version and/or svn revision of TibiaTek Bot are you using?
TibiaTekBot_2.3.1_r347.rar

What operating system are you using?
Windows XP SP2 Pro

Do you have .NET Framework 2.0 or 3.5 installed?
Yes

Is the problem experienced on official servers or OT servers?
OT

Please provide any additional information below.
<Spell Name="Intense Healing"       Words="exura gran"      
    ManaPoints="40"     SoulPoints="0"  Kind="Healing"/>
Edited ManaPoints from 120 to 40 (because it's 40 on this OT), tried 
reloading configuration, tried reopening TTB but it still casts Exura Gran 
only when I have 120 mana

Original issue reported on code.google.com by Zaoshi.K...@gmail.com on 13 Mar 2008 at 6:10

GoogleCodeExporter commented 9 years ago
Found a fix for this

In Kernel 'Auto Healer Timer' changed

If ManaPoints < Spells.GetSpellMana(HealSpell.Name) Then Exit Sub
to
If ManaPoints < Spells.GetSpellMana(HealSpell.Words) Then Exit Sub

And in Fuction GetSpellMana added
                If String.Compare(Name, Spell.Words, True) = 0 Then
                    Return Spell.ManaPoints
                End If

It was checking by spell name, not it's work. In the XML file "Intense Healing" 
is 
healing spell and rune. When checking if enough mana it was taking rune mana, 
but 
was casting healing words. Changing from Name to Words fixed it. Another Fix is 
to 
Add Rune word at end of each rune

Original comment by Zaoshi.K...@gmail.com on 13 Mar 2008 at 1:17

GoogleCodeExporter commented 9 years ago
Thank's for the info! :) If every bug report was like that world would be much 
better place to live! :)

Original comment by Oskari.V...@gmail.com on 13 Mar 2008 at 5:40

GoogleCodeExporter commented 9 years ago
Thanks for the info, this issue is now *Fixed*.

Original comment by cameri2...@gmail.com on 24 Mar 2008 at 2:35