L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Thread Closed 
 
Thread Rating:
  • 9 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use HP POT at 50% of HP and MP POT at 40% of MP
Author Message
anipomonos Offline
Elpy
*

Posts: 3
Joined: Jun 2012
Reputation: 0
Version: 1.4.1.112
Post: #1
Use HP POT at 50% of HP and MP POT at 40% of MP

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 18:54 PM
Find all posts by this user
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #2
RE: Use HP POT at 50% of HP and MP POT at 40% of MP


Heart
06-07-2012 19:17 PM
Visit this user's website Find all posts by this user
anipomonos Offline
Elpy
*

Posts: 3
Joined: Jun 2012
Reputation: 0
Version: 1.4.1.112
Post: #3
RE: 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?
(This post was last modified: 06-07-2012 20:26 PM by anipomonos.)
06-07-2012 20:24 PM
Find all posts by this user
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #4
RE: Use HP POT at 50% of HP and MP POT at 40% of MP

Search again all the questions are answerd on the forum allready Sad

Heart
06-07-2012 20:28 PM
Visit this user's website Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #5
RE: Use HP POT at 50% of HP and MP POT at 40% of MP

/xcfg?
06-07-2012 21:41 PM
Find all posts by this user
Hebdzik Offline
Tester

Posts: 1,235
Joined: Aug 2011
Reputation: 265
Version: 1.4.3.143
Post: #6
RE: Use HP POT at 50% of HP and MP POT at 40% of MP

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
(This post was last modified: 06-09-2012 16:01 PM by Hebdzik.)
06-09-2012 16:00 PM
Find all posts by this user
Thread Closed 




User(s) browsing this thread: