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
pick up herb
Author Message
bogdanel Offline
Expired VIP Member
**

Posts: 89
Joined: Jul 2013
Reputation: 1
Version: 1.4.2.138
Post: #1
pick up herb

hello again.i have a new questionBig Grin can i set tower to pick mp herb when my mp is on x%?Big Grin
03-30-2014 11:47 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: pick up herb

make script Tongue

script for whole pickup or for tower settings, premium cab do it

PUSH [Image: knUu53] IF HELPED
03-30-2014 14:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
CoolAsIce Offline
WTS Healer 99/97/80/80 @Bartz
**

Posts: 57
Joined: Dec 2011
Reputation: 11
Version: 1.4.2.141
Post: #3
RE: pick up herb

yea, this is interesting thing Big Grin
if you manage it share with us
03-30-2014 14:57 PM
Find all posts by this user Quote this message in a reply
bogdanel Offline
Expired VIP Member
**

Posts: 89
Joined: Jul 2013
Reputation: 1
Version: 1.4.2.138
Post: #4
RE: pick up herb

if you believe me idk hot to start on scriptBig Grin
03-30-2014 15:09 PM
Find all posts by this user Quote this message in a reply
knutoz Offline
Expired VIP Member
**

Posts: 283
Joined: Aug 2013
Reputation: 17
Version: 1.4.2.133
Post: #5
RE: pick up herb

(03-30-2014 15:09 PM)bogdanel Wrote:  if you believe me idk hot to start on scriptBig Grin

make a script to pick Herb and add:
Code:
mpforpick = x
    if GetMe:GetMpPercent() < mpforpick then
         return true
    end
    return false
GL
(This post was last modified: 03-30-2014 15:21 PM by knutoz.)
03-30-2014 15: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: #6
RE: pick up herb

any1 can test ?

btw just for premium

    LUA Programming
SCONFIG = L2TConfig.GetConfig(); -- Getting config
 
potPickup = false; -- checking, to not spam all time settings
repeat -- repeat
	if (GetMe():GetMpPercent() < 50)  then --getting mp in percent, doing if less then 50
		if potPickup == false then
 
		SCONFIG.pickup.userPickup.pickupRange = 300; -- range
		SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_BEFORE; -- picking before
 
 
		potPickup = true; -- we enabled pickup
		end;
 
	elseif (GetMe():GetMpPercent() > 50) then -- more than 50% mp
		if potPickup then
			SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_OFFLINE; -- disabling pickup
			potPickup = false; -- to not spam disabling
 
		end;
	end;
 
until false; -- 4 ever


PUSH [Image: knUu53] IF HELPED
03-31-2014 02:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bogdanel Offline
Expired VIP Member
**

Posts: 89
Joined: Jul 2013
Reputation: 1
Version: 1.4.2.138
Post: #7
RE: pick up herb

(03-31-2014 02:48 AM)TheQQmaster Wrote:  any1 can test ?

btw just for premium

    LUA Programming
SCONFIG = L2TConfig.GetConfig(); -- Getting config
 
potPickup = false; -- checking, to not spam all time settings
repeat -- repeat
	if (GetMe():GetMpPercent() < 50) then --getting mp in percent, doing if less then 50
 if potPickup == false then
 
 SCONFIG.pickup.userPickup.pickupRange = 300; -- range
 SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_BEFORE; -- picking before
 
 
 potPickup = true; -- we enabled pickup
 end;
 
	elseif (GetMe():GetMpPercent() > 50) then -- more than 50% mp
 if potPickup then
 SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_OFFLINE; -- disabling pickup
 potPickup = false; -- to not spam disabling
 
 end;
	end;
 
until false; -- 4 ever

i get disconectBig Grin
03-31-2014 15:53 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: #8
RE: pick up herb

forgot to add sleep Big Grin


    LUA Programming
SCONFIG = L2TConfig.GetConfig(); -- Getting config
 
potPickup = false; -- checking, to not spam all time settings
ShowToClient("Pickup","ON");
 
repeat -- repeat
	if (GetMe():GetMpPercent() < 50) then --getting mp in percent, doing if less then 50
 if potPickup == false then
 ShowToClient("Pickup","Less MP than 50%");
 
 SCONFIG.pickup.userPickup.pickupRange = 300; -- range
 SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_BEFORE; -- picking before
 
 
 potPickup = true; -- we enabled pickup
 
Sleep(1*1000);
 end;
 
	elseif (GetMe():GetMpPercent() > 50) then -- more than 50% mp
 if potPickup then
 ShowToClient("Pickup","More MP than 50%");
 
 SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_OFFLINE; -- disabling pickup
 potPickup = false; -- to not spam disabling
Sleep(1*1000);
 
 end;
	end;
Sleep(4*1000);
 
until false; -- 4 ever



worked for me btw Tongue tested Tongue

PUSH [Image: knUu53] IF HELPED
(This post was last modified: 03-31-2014 22:31 PM by TheQQmaster.)
03-31-2014 22:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bogdanel Offline
Expired VIP Member
**

Posts: 89
Joined: Jul 2013
Reputation: 1
Version: 1.4.2.138
Post: #9
RE: pick up herb

(03-31-2014 22:24 PM)TheQQmaster Wrote:  forgot to add sleep Big Grin


    LUA Programming
SCONFIG = L2TConfig.GetConfig(); -- Getting config
 
potPickup = false; -- checking, to not spam all time settings
ShowToClient("Pickup","ON");
 
repeat -- repeat
	if (GetMe():GetMpPercent() < 50) then --getting mp in percent, doing if less then 50
 if potPickup == false then
 ShowToClient("Pickup","Less MP than 50%");
 
 SCONFIG.pickup.userPickup.pickupRange = 300; -- range
 SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_BEFORE; -- picking before
 
 
 potPickup = true; -- we enabled pickup
 
Sleep(1*1000);
 end;
 
	elseif (GetMe():GetMpPercent() > 50) then -- more than 50% mp
 if potPickup then
 ShowToClient("Pickup","More MP than 50%");
 
 SCONFIG.pickup.userPickup.mode = L2TConfig.EPickupMode.PICKUP_OFFLINE; -- disabling pickup
 potPickup = false; -- to not spam disabling
Sleep(1*1000);
 
 end;
	end;
Sleep(4*1000);
 
until false; -- 4 ever



worked for me btw Tongue tested Tongue
this should be best pick up script for nuker untill lvl 85.thx dudeSmile
04-04-2014 04:20 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  a weird pick up question.... soul2eat 3 3,204 01-07-2015 13:48 PM
Last Post: knutoz
  pick up still not working Cttdav 12 7,423 08-01-2014 20:18 PM
Last Post: capucine
  pick plugin/script Arabaico 3 6,485 06-24-2014 12:20 PM
Last Post: BabyGotBoobs
  Bot Wont pick up adena dfeser 1 3,329 06-12-2014 23:20 PM
Last Post: Fox
Lightbulb About pick up Bans My8os 4 4,423 12-22-2013 19:54 PM
Last Post: capucine
  official - Problem with pick up after update mardukx 11 8,888 11-28-2013 21:39 PM
Last Post: TheQQmaster
  Pick up toon Cttdav 2 2,842 10-04-2013 09:49 AM
Last Post: 13dk13
  PICK UP stamos1991 1 2,362 09-21-2013 09:52 AM
Last Post: thewizzie
  Pick up configuration warhawk 2 4,027 07-03-2013 08:35 AM
Last Post: natherlog
  Wynn summoner - how to pick up only mana herb Zigardo 2 5,369 06-05-2013 10:48 AM
Last Post: Zigardo



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