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
Need Mana Potion script
Author Message
aa300598 Offline
Expired VIP Member
**

Posts: 26
Joined: Feb 2016
Reputation: 0
Version: 1.4.3.143
Post: #1
Need Mana Potion script

I tried t use the builtin use item/mana potion but it keep spamming my mana potion in 1 second interval. My 1000 mana potion are gone in 10 minutes.

Please share the mana potion script for use in Dragon network server/H5
02-06-2016 08:43 AM
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: Need Mana Potion script

    LUA Programming
ShowToClient(tostring(os.date("%X")),"MP pots");
 
PN = "manapotname"; -- edit pot name (Large Mana Potion is not equal to large mana potion), so type it correct
percentouse = 80; -- percent to stsrt use MP pots
 
 
function GetItemAmountByName(name) -- getting id of pot to use them
local invList = GetInventory();
	for item in invList.list do
		if (item.Name == name) then
			PNID = item.displayId;
			return item.ItemNum;
		end;
	end;
 
return 0;
end; 
 
 
repeat
	if(GetMe():GetMpPercent() < percentouse) and (GetItemAmountByName(PN) > 0) then -- percent to use and we got items
		UseItem(PNID); 
		Sleep(250);
	end;
	Sleep(200);
 
until false;


PUSH [Image: knUu53] IF HELPED
02-06-2016 08:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
aa300598 Offline
Expired VIP Member
**

Posts: 26
Joined: Feb 2016
Reputation: 0
Version: 1.4.3.143
Post: #3
RE: Need Mana Potion script

Thanks Smile

BTW, how do you make the auto spoil work?
(This post was last modified: 02-06-2016 09:26 AM by aa300598.)
02-06-2016 09:01 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  mana recharge while cafting without stand up sysleo78 2 2,778 01-05-2017 18:58 PM
Last Post: sysleo78
  CP/Mana Stop Working Crnogorac 3 4,041 04-08-2016 10:36 AM
Last Post: TheQQmaster
  need mana script shizzel 7 8,023 11-11-2014 02:06 AM
Last Post: eustach3
  use custom potion mark1975 20 16,528 11-10-2014 23:33 PM
Last Post: TheQQmaster
Information NEED SCRIPT MANA POTION FOR ES-L2 c1powstyle 6 5,702 09-07-2014 23:51 PM
Last Post: sirblackhole
  Mana pots reuse k0kos 0 2,224 08-20-2014 04:54 AM
Last Post: k0kos
  Recharge mana without pt Skiinsiss 4 3,953 08-08-2014 08:17 AM
Last Post: michal9077
  Wynn summoner - how to pick up only mana herb Zigardo 2 5,401 06-05-2013 10:48 AM
Last Post: Zigardo
  Mana Drug instead of Mana Pots Helltharin 2 3,319 03-11-2013 13:02 PM
Last Post: Helltharin
  Mana Potion Stop Atack ferreir4 0 2,642 02-02-2013 01:54 AM
Last Post: ferreir4



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