Page 1 of 1

doesnt stop healing

Posted: Sat Mar 30, 2013 9:16 am
by ograso
Hey guys,

I have a problem about healing.

My character is an M/P and everything is goingon perfectly except healing himself.

the char lose lots of HP and using to skill "PRIEST_URGENT_HEAL" and he succeded. When the falling down after complete to autosell from pancer. But he never stop healing himself and ofcourse waiting there :(

And also; script continue if I pause and continue(press END and DELETE keys) to script.
<skills_mage>
<skill name="MAGE_LIGHTNING" hotkey="MACRO" priority="80" />
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="80" />
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="80" />
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="100" />
<skill name="MAGE_THUNDERSTORM" hotkey="MACRO" priority="100" inbattle="false" mobcount="1"/>
<skill name="MAGE_ESSENCE_OF_MAGIC" hotkey="MACRO" priority="30" />
<skill name="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="100" hpper="60" />
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="100" hpper="80" />
<skill name="MAGE_ENERGY_INFLUX" hotkey="MACRO" priority="30" inbattle="true" />
<skill name="MAGE_ENERGY_WELL" hotkey="MACRO" priority="30" inbattle="true" />
<skill name="PRIEST_HOLY_AURA" hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="MACRO" priority="30" inbattle="true" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
<skill name="MAGE_FLAME" hotkey="MACRO" priority="60" />
<skill name="MAGE_FIREBALL" hotkey="MACRO" priority="70" />
</skills_mage>

KS.XML

Code: Select all

	<!-- # 218 --><waypoint x="-16650" z="11463" type="TRAVEL" tag="toKS">	</waypoint>
	<!-- # 219 --><waypoint x="-16836" z="11573" type="TRAVEL">	</waypoint>
	<!-- # 220 --><waypoint x="-17141" z="11250" type="TRAVEL">	</waypoint>
	<!-- # 221 --><waypoint x="-17448" z="10703" type="TRAVEL">	</waypoint>
	<!-- # 222 --><waypoint x="-17668" z="10680" type="TRAVEL">	
	if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("PRIEST_URGENT_HEAL");
			yrest(300);
		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
	</waypoint>

Re: doesnt stop healing

Posted: Sat Mar 30, 2013 9:24 am
by lisa
add a player update

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(300);
         player:update()
      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);
         player:update()
      end
   end

Re: doesnt stop healing

Posted: Sat Mar 30, 2013 9:42 am
by ograso
Now he never try to use ergent_heal?

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(300);
			player:update();
		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);
			player:update();
		end
	end

Re: doesnt stop healing

Posted: Sat Mar 30, 2013 10:05 am
by ograso
Yeah now fixed. removed ";" from player=update()

Thank you so much.

Re: doesnt stop healing

Posted: Sat Mar 30, 2013 11:20 am
by rock5
That was not the problem. ';' does absolutely nothing. You probably just had a hiccup and it fixed itself.