i got error

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
devrimist
Posts: 24
Joined: Mon Nov 18, 2019 4:25 am

i got error

#1 Post by devrimist » Sun May 22, 2022 11:57 am

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? :roll: :?
err.png
Knowledge is power. Learning is empowerment.

User avatar
Administrator
Site Admin
Posts: 5259
Joined: Sat Jan 05, 2008 4:21 pm

Re: i got error

#2 Post by Administrator » Mon May 23, 2022 9:09 am

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.

User avatar
devrimist
Posts: 24
Joined: Mon Nov 18, 2019 4:25 am

Re: i got error

#3 Post by devrimist » Mon May 23, 2022 9:24 am

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>
I'm trying to use it like this, but I'm having trouble. Below is the profile file I'm trying to use, if you have time, could you review it and tell me where I made a mistake.
How can I get the priest to use heal skills for himself?
Knowledge is power. Learning is empowerment.

User avatar
Administrator
Site Admin
Posts: 5259
Joined: Sat Jan 05, 2008 4:21 pm

Re: i got error

#4 Post by Administrator » Mon May 23, 2022 9:34 am

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		    

User avatar
devrimist
Posts: 24
Joined: Mon Nov 18, 2019 4:25 am

Re: i got error

#5 Post by devrimist » Mon May 23, 2022 10:32 am

Was it just because of an end?. Programming is not fair at all :D .. :shock: 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. :ugeek:
Knowledge is power. Learning is empowerment.

User avatar
devrimist
Posts: 24
Joined: Mon Nov 18, 2019 4:25 am

Re: i got error

#6 Post by devrimist » Mon May 23, 2022 12:26 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests