Lineage 2 Tower Forum

Full Version: Use HP POT at 50% of HP and MP POT at 40% of MP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How i can do that with the tower?

Use HP POT at 50% of HP and MP POT at 40% of MP ??
(06-07-2012 19:17 PM)Fox Wrote: [ -> ]Search or die!

Www://forum.l2tower.eu/showthread.php?ti...ing+potion

i see that.. but i do not know how to use the scripts.. i know that i have to write it.. and save it.. but after how i can load it? and where i can find the ITEM IDS?
Search again all the questions are answerd on the forum allready Sad
/xcfg?
use
/xcfg you can sell all what you need in l2tower
if what use script
    LUA Programming
HpPotId = 1061;
SmallHpPotId = 1060;
GreaterHpPotId = 1062;
HpForGreaterPotions = 15.0;
HpForBigPotions = 25.0;
HpForSmallPotions = 50.0;
--------------------------------------------
repeat
	if(GetMe():GotBuff(1217) == false) and (GetMe():GotBuff(92) == false) and (GetMe():GotBuff(4075) == false)then
		if (GetMe():GetHpPercent() < HpForSmallPotions) then
			if(GetMe():GetHpPercent() > HpForBigPotions) and ((GetQuestManager():GetQuestItemCount(SmallHpPotId) >= 1))then
				UseItem(SmallHpPotId);
				Sleep(15000);
			elseif((GetMe():GetHpPercent() > HpForGreaterPotions)and ((GetQuestManager():GetQuestItemCount(HpPotId) >= 1)))then
				UseItem(HpPotId);
				Sleep(15000);
			elseif(GetQuestManager():GetQuestItemCount(GreaterHpPotId) >= 1)then
				UseItem(GreaterHpPotId);
				Sleep(15000);			
			end;
		end;
		Sleep(500);
	end;
	Sleep(500);
until GetMe():IsAlikeDeath() == true;



works for preimum users because it use premium functions
Reference URL's