Question about healing
Question about healing
I'm running KS script right now and my character is a R/D. What kind of code do you have to put in to make your character fully heal himself before moving onto the next waypoint? I don't want my character to die, but he is always low health and when he casts recover, he is doing it while moving, which doesn't cast, or when he is fighting, which casts sometimes but not always.
And maybe how to heal oneself more often when in a boss fight?
Any help will be appreciated. Thanks in advance
And maybe how to heal oneself more often when in a boss fight?
Any help will be appreciated. Thanks in advance
Re: Question about healing
This has kept me alive in ks with m/d. I trimmed that little just to leave only my healing codes.
Code: Select all
<onSkillCast>
if (not player:hasBuff("Blossoming Life") and (90 > player.HP/player.MaxHP*100)) then
player:cast("DRUID_BLOSSOMING_LIFE");
end
if (not player:hasBuff("Recover") and (60 > player.HP/player.MaxHP*100)) then
player:cast("DRUID_RECOVER");
yrest(2200);
end
</onSkillCast>
Re: Question about healing
thanks a lot giram, i didn't know what code to write in the onskillscast, but this worked great. thanks
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: Question about healing
I'm probably missing something here, but why not just up the hpper number for the skills in the skills section? Or add an onLoad event to the waypoint file to change hpper or hprest numbers?
Re: Question about healing
OnSkillCast will be checked after each skill. Skills that have been assigned with priority will be cast one by one and then it might be too late for healing. This is just my theory.
Re: Question about healing
Well I did put my hpper to 90 before doing the oncastskills, but it was not enough heals to survive the boss. And what do you mean add an onload event to the wapoint file? I'm kind of interested because I die maybe once out of every 3 or 4 times and it'd be great if I didn't die at allI'm probably missing something here, but why not just up the hpper number for the skills in the skills section? Or add an onLoad event to the waypoint file to change hpper or hprest numbers?
Re: Question about healing
Got another one. This one will heal you until your hp is above 50%. Hope you can tinker from these the kind of healing system you want. I wonder why i got different healing codes for each class...
Code: Select all
while (50 > player.HP/player.MaxHP*100) do
player:cast("DRUID_RECOVER");
yrest(2500);
end
Re: Question about healing
oh cool. so can you add 2 or 3 while's to the oncastskills section at like hp<20 or 30 or 40?
And the yrest(2500) is the code for healing? I always wondered what that was. how did you get the code?
And the yrest(2500) is the code for healing? I always wondered what that was. how did you get the code?
Re: Question about healing
yrest() is waiting function that takes milliseconds as arguments or something.adonisz wrote:oh cool. so can you add 2 or 3 while's to the oncastskills section at like hp<20 or 30 or 40?
And the yrest(2500) is the code for healing?
yrest(2500) is just for waiting time for skill. 2.5 seconds as there might be lag or something to get it started or finished. Otherwise bot will start casting and then will continue to next waypoint and casting will be interrupted. And yes, you can add more than one. Can't remember for sure but i think DRUID_BLOSSOMING_LIFE was instant cast and won't need yrest.
I coded these some time ago. As these are just functions of the bot that can be found from forums or wiki.adonisz wrote:how did you get the code?
Re: Question about healing
I think I added a fix not long ago so it doesn't start moving until it stops casting so you shouldn't need to yrest after casting anymore.
- 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
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: Question about healing
And it seems like a pretty solid theory... I figured I was missing something. =)Giram wrote:OnSkillCast will be checked after each skill. Skills that have been assigned with priority will be cast one by one and then it might be too late for healing. This is just my theory.
Before your first waypoint, put something like;adonisz wrote:And what do you mean add an onload event to the wapoint file?
Code: Select all
<onLoad>
changeProfileSkill("DRUID_BLOSSOMING_LIFE", "hpper", 90)
changeProfileSkill("DRUID_RECOVER", "hpper", 70)
changeProfileOption("HP_REST", 65)
</onLoad>
This is correct.Giram wrote:Can't remember for sure but i think DRUID_BLOSSOMING_LIFE was instant cast and won't need yrest.
I have a rest after Recover as well. Without it, it seems to be hit or miss as to whether or not bot stays still.rock5 wrote:I think I added a fix not long ago so it doesn't start moving until it stops casting so you shouldn't need to yrest after casting anymore.
Re: Question about healing
Actually, it was a very recent version, version 603. Have you upgraded to that version? Or is it "hit and miss" with an older version?Mushroomstamp wrote:I have a rest after Recover as well. Without it, it seems to be hit or miss as to whether or not bot stays still.rock5 wrote:I think I added a fix not long ago so it doesn't start moving until it stops casting so you shouldn't need to yrest after casting anymore.
- 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
-
- Posts: 210
- Joined: Wed Oct 27, 2010 11:34 am
Re: Question about healing
Been at 603 since it became available, though I can't positively remember the last time I had the issue since I haven't been playing that character much. I'll remove the rest when I use him next & see what happens. *thumbup*
EDIT:
Tried it last night - no good. Still need the rest after calling the skill or bot moves before the heal is casted, unless it's in battle.
EDIT:
Tried it last night - no good. Still need the rest after calling the skill or bot moves before the heal is casted, unless it's in battle.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest