Disable self Healing

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Disable self Healing

#1 Post by mschmitd » Thu Aug 04, 2011 3:22 am

Hi

I will travel to the KS-Ini without leave the Mount
but all the time the bot jump down the mountain
and the character is in the Valley he leave the mount
for self healing

Is there a possibility to switch on or off the self healing
in the Waypoint script ??


Mike


sry for my bad English

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Disable self Healing

#2 Post by rock5 » Thu Aug 04, 2011 5:55 am

Actually I'm surprised we don't have an option for that. It might be as simple as adding a check "if you are in travel mode and mounted then done cast".

You could do it using the <onPreSkillCast> section of your profile. Just add

Code: Select all

<onPreSkillCast>
if __WPL.Type == WPT_TRAVEL and player.Mounted then
    return false
else
    return true
end
</onPreSkillCast>
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Re: Disable self Healing

#3 Post by mschmitd » Thu Aug 04, 2011 6:43 am

@rock5

I have insert the Code in my Profile but it don't work

Code: Select all

<skills_druid>
		<skill name="DRUID_RECOVER"        modifier="" hotkey="VK_2" priority="90" hpper="30" />
		<skill name="DRUID_EARTH_ARROW"    modifier="" hotkey="VK_3" priority="80" />
</skills_druid>

<onPreSkillCast>
    if __WPL.Type == WPT_TRAVEL and player.Mounted then
        return false
    else
        return true
    end
</onPreSkillCast>

<onLoad><![CDATA[
		-- Additional Lua code to execute after loading the profile
		-- and before the bot starts. e.g. You could overwrite profile settings here
		-- like: changeProfileOption("HP_REST", 60);
	]]></onLoad>

Mike

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Disable self Healing

#4 Post by rock5 » Thu Aug 04, 2011 6:58 am

Is the waypoint type travel?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Re: Disable self Healing

#5 Post by mschmitd » Thu Aug 04, 2011 7:09 am

@rock5

This is the Waypoint snippet from Merchant Pancer to the Ini

Code: Select all



	<!-- # 214 --><waypoint x="-16650" z="11463" type="TRAVEL" tag="toKS">  </waypoint>
	<!-- # 215 --><waypoint x="-16836" z="11573" type="TRAVEL">  </waypoint>
	<!-- # 216 --><waypoint x="-17141" z="11250" type="TRAVEL">  </waypoint>
	<!-- # 217 --><waypoint x="-17448" z="10703" type="TRAVEL"> </waypoint>
	<!-- # 218 --><waypoint x="-17668" z="10680" type="TRAVEL">	
         
         RoMScript("SendChatMessage(\"I'am in the Valley\",\"PARTY\",0,\"CharName\")")
         player:update();
         </waypoint>

	<!-- # 219 --><waypoint x="-17936" z="10586" type="TRAVEL"> </waypoint>
	<!-- # 220 --><waypoint x="-18160" z="10707" type="TRAVEL"> </waypoint>
	<!-- # 221 --><waypoint x="-18288" z="11068" type="TRAVEL"> </waypoint>
	<!-- # 222 --><waypoint x="-18416" z="11681" type="TRAVEL"> </waypoint>
	<!-- # 223 --><waypoint x="-18546" z="12468" type="TRAVEL"> </waypoint>
	<!-- # 224 --><waypoint x="-18549" z="12522" type="TRAVEL">	
        
        changeProfileOption("MAX_TARGET_DIST", 90);	
        player:update();
        yrest(15000);
        player:update();
       
        </waypoint>

Perhaps i need this ??

Code: Select all

<onPreSkillCast><![CDATA[
    if __WPL.Type == WPT_TRAVEL and player.Mounted then
                return false
     else
                return true
     end
]]></onPreSkillCast>

Mike

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Disable self Healing

#6 Post by lisa » Thu Aug 04, 2011 9:27 am

If you mean the WP posted here
I think you will find he added in the heal code I suguested for after you jump off the cliff.

So look for that code and just remove it if you don't want to get healed.
look for

Code: Select all

if player.Class2 == 
and just remove all code between the > </
> remove code from here </waypoint>

If it was me I'd just add in a player:mount() after the code so you mount again after hp is full.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Re: Disable self Healing

#7 Post by mschmitd » Thu Aug 04, 2011 10:23 am

@Lisa

In my Script I have remove this part of Code. But my char leave the Mount and heal self

Code: Select all

        if player.Class1 == 5 or player.Class2 == 5 then -- priest
	
	while (80 > player.HP/player.MaxHP*100) do                            
			player:cast("PRIEST_URGENT_HEAL");
			yrest(2300);                                                           
	           end

	end

	if player.Class1 == 8 or player.Class2 == 8 then -- druid
	
	while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
        	end

     end

And sometimes you have the Problem Mobs follow you, and you need to fight and to Heal at the same time.
I think this is not necessary if your char don leave the mount you travel to the Ini and you can heal at
the Start-Position inside KS


Mike


sry for my bad English

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest