i got error
i got error
Hello everyone. As long as the bot doesn't take damage, the party heals properly. but whenever the helaer gets damaged it gives the following error. Does anyone have an idea on how I can fix it. Or is there anyone who can share a party helaer profile that works without problems?
Knowledge is power. Learning is empowerment.
- Administrator
- Site Admin
- Posts: 5318
- Joined: Sat Jan 05, 2008 4:21 pm
Re: i got error
I was not able to reproduce the issue but I made a minor fix that might help you out. Please update your scripts and try again.
Re: i got error
Code: Select all
<onSkillCast>
-- Additional Lua code to execute when casting a skill
-- Note: arg1 contains the skill being used.
-- i.e. arg1.Name will be the name of the skill being cast
-- e.g.:
if( 15 > player.HP/player.MaxHP*100 ) then
player:cast("PRIEST_SOUL_SOURCE");
elseif( 25 > player.HP/player.MaxHP*100 ) then
player:cast("PRIEST_HOLY_AURA");
player:cast("PRIEST_URGENT_HEAL");
player:cast("PRIEST_URGENT_HEAL");
</onSkillCast>
How can I get the priest to use heal skills for himself?
Knowledge is power. Learning is empowerment.
- Administrator
- Site Admin
- Posts: 5318
- Joined: Sat Jan 05, 2008 4:21 pm
Re: i got error
You are missing an 'end' statement there. All 'if' statements need to finish with an 'end'.
Code: Select all
if( 15 > player.HP/player.MaxHP*100 ) then
player:cast("PRIEST_SOUL_SOURCE");
elseif( 25 > player.HP/player.MaxHP*100 ) then
player:cast("PRIEST_HOLY_AURA");
player:cast("PRIEST_URGENT_HEAL");
player:cast("PRIEST_URGENT_HEAL");
end
Re: i got error
Was it just because of an end?. Programming is not fair at all .. For now, it didn't give an error on startup. Anyway, I'll try it tonight, let's see if the bot stop problem will continue. Thank you for your interest.
Knowledge is power. Learning is empowerment.
Re: i got error
yes, the bot doesn't stop anymore. Now it's time to perfect the profile... I'll look into how to use Buff Foods and Drinks.
Knowledge is power. Learning is empowerment.
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests