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

Thread Closed 
 
Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Radiant purge for me and pt
Author Message
Arabaico Offline
VIP Member
***

Posts: 38
Joined: May 2013
Reputation: 6
Version: 1.4.3.143
Post: #1
Radiant purge for me and pt

I m lookin script/plugin for left debuff from my healer and other pt member with purg skill...some help?
THANKS!!!!!

(07-08-2013 16:26 PM)Arabaico Wrote:  I m lookin script/plugin for left debuff from my healer and other pt member with purg skill...some help?
THANKS!!!!!

*with Radiant purge skill
(This post was last modified: 07-08-2013 16:27 PM by Arabaico.)
07-08-2013 16:26 PM
Find all posts by this user
Grond Offline
The Wolf's Head
**

Posts: 90
Joined: Sep 2011
Reputation: 65
Version: 1.4.2.142
Post: #2
RE: Radiant purge for me and pt

Search would have helped...

    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;


+2 me if I helped you.

Successful trade with:
DK1

Death of L2
07-08-2013 18:28 PM
Find all posts by this user
 Reputed by : Arabaico(+2) , lightgrenade(+1)
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Exclamation Cleanse o Radiant Purge Healer lord_knox 4 3,562 02-18-2015 15:15 PM
Last Post: lord_knox



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