Lineage 2 Tower Forum

Full Version: Mp Script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm using this script for mp but some times it just uses an mp pot when I'm on 60percent or 80percent generally it uses the pot when it shouldnt, I'm using this code is there anything wrong with it?

Quote:repeat
if (GetMe():GetMpPercent() < 20) then
repeat
UseItem(728);
Sleep(30000);
until (GetMe():GetMpPercent() > 30);
end;
until false;
try

    LUA Programming
repeat
if (GetMe():GetMpPercent() > 20) and (GetMe():GetMpPercent() < 30) then -- use mp from 20 to 30 percent
	UseItem(728);
	Sleep(30*1000); -- 30 sec
end;
Sleep(1000);
until false;



mby i dont get ur idea
Reference URL's