Page 1 of 1
Disable self Healing
Posted: Thu Aug 04, 2011 3:22 am
by mschmitd
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
Re: Disable self Healing
Posted: Thu Aug 04, 2011 5:55 am
by rock5
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>
Re: Disable self Healing
Posted: Thu Aug 04, 2011 6:43 am
by mschmitd
@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
Re: Disable self Healing
Posted: Thu Aug 04, 2011 6:58 am
by rock5
Is the waypoint type travel?
Re: Disable self Healing
Posted: Thu Aug 04, 2011 7:09 am
by mschmitd
@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
Re: Disable self Healing
Posted: Thu Aug 04, 2011 9:27 am
by lisa
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
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.
Re: Disable self Healing
Posted: Thu Aug 04, 2011 10:23 am
by mschmitd
@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