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

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mp Script
Author Message
nolanriot193 Offline
Gremlin
*

Posts: 6
Joined: Apr 2013
Reputation: 0
Version: 1.4.2.133
Post: #1
Mp Script

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;
07-08-2015 14:20 PM
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #2
RE: Mp Script

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

PUSH [Image: knUu53] IF HELPED
(This post was last modified: 07-08-2015 15:52 PM by TheQQmaster.)
07-08-2015 15:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : nolanriot193(+1)
Post Reply 




User(s) browsing this thread: 1 Guest(s)