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

Thread Closed 
 
Thread Rating:
  • 9 Vote(s) - 3.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
debufs - aeore heler
Author Message
amiroooo Offline
Beta Tester

Posts: 1,270
Joined: Sep 2011
Reputation: 412
Version: 1.4.2.142
Post: #11
RE: debufs - aeore heler

    LUA Programming
cleanseskillid = 11763; -- put here the cleanse skill Id atm its Radiant Purge.
DebuffList = {15116, 92, 102} ; -- put here the Debuff Skill Ids
 
 
 
function NeedCleanse(Tehuser) -- for long debuff list better this way so we wont ask GotBuff from l2 tower many times.
	local MyBuffs = {} ;
	for x=1,50 do
		local value = nil;
		value = Tehuser:GetBuffByIdx(x);
		if value ~= nil then
			MyBuffs[#MyBuffs+1] = value.skillId;
		end;
	end;
	for x=1,#DebuffList do
		for t=1,#MyBuffs do
			if (MyBuffs ~= nil) and (MyBuffs[t] == DebuffList[x]) then
				return true;
			end;
		end;
	end;
	return false;	
end;
 
repeat
	me = GetMe();
	if (me ~= nil) then
		myptlist = GetPartyList();
		for PMember in myptlist.list do
			if NeedCleanse(PMember) then
				if not PMember:IsAlikeDeath() and (PMember:GetDistance() < 1000) then
					if (me:GetTarget() ~= PMember:GetId()) then
						ClearTargets();
						TargetRaw(PMember:GetId());
					else
						UseSkillRaw(cleanseskillid,false,false);
					end;
					break;
				end;
			end;
		end;
	end;
	Sleep(2000);
until false;

06-22-2012 18:34 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,887
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #12
RE: debufs - aeore heler

You wrote TehUser... Is it a mistake? Or it is correct
06-22-2012 19:13 PM
Find all posts by this user
amiroooo Offline
Beta Tester

Posts: 1,270
Joined: Sep 2011
Reputation: 412
Version: 1.4.2.142
Post: #13
RE: debufs - aeore heler

yes i wrote it its not mistake
06-22-2012 19:19 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,887
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #14
RE: debufs - aeore heler

Ook
06-22-2012 19:32 PM
Find all posts by this user
lwcdr Away
Lord Vamp
***

Posts: 218
Joined: Jan 2012
Reputation: 15
Version: 1.4.2.137
Post: #15
RE: debufs - aeore heler

so i need change TheUser for name of the char ?
06-22-2012 20:09 PM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  LF PLUGIN ONLY: AEORE AUTO RES mujiduka07 13 10,245 02-27-2014 08:17 AM
Last Post: mujiduka07
WTS WTS Aeore Healer LVL 91 SHILEN elmakis 0 1,517 10-16-2013 10:33 AM
Last Post: elmakis
  Need Heal Aeore Healer + Wynn sc2love 5 5,530 05-13-2013 00:05 AM
Last Post: sc2love
  Aeore Healer and Tank Script helderbugado 1 6,315 01-05-2013 22:55 PM
Last Post: TheBl4ckPhoenix
  FEOH WIZ + ISS + AEORE HEALER DKDKDK 10 7,262 04-18-2012 19:21 PM
Last Post: TheBl4ckPhoenix



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