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
Remove Target
Author Message
canaldextiger Offline
Goblin Grave Robber
*

Posts: 12
Joined: Aug 2015
Reputation: 0
Version: 1.4.2.133
Post: #1
Star Remove Target

Hello, I have a Plugin that makes my char use the Skills as long as I want (I put Delay 0 to use all the time, since Tower's Nuke Attack is a bit buggy). However, when I kill a mob, it continues with Target on the dead mob, forcing my char to use the Spells on Target, making it impossible for him to walk. What I want I think is quite simple, a Plugin that removes Target after I kill some mob!

I'm waiting! Thank you.

My Plugin (Spellsinger):

Code:
repeat
    Command("/useskill Hydro Blast");
    Sleep(100)
    until false;
02-07-2018 03:56 AM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #2
RE: Remove Target

u should check if target is alive
02-08-2018 14:05 PM
Find all posts by this user Quote this message in a reply
canaldextiger Offline
Goblin Grave Robber
*

Posts: 12
Joined: Aug 2015
Reputation: 0
Version: 1.4.2.133
Post: #3
RE: Remove Target

(02-08-2018 14:05 PM)schubbel2208 Wrote:  u should check if target is alive

Buddy, I want a Plugin that sees if the mob is dead and cancel Target if it's dead.
02-08-2018 14:17 PM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #4
RE: Remove Target

(02-08-2018 14:17 PM)canaldextiger Wrote:  
(02-08-2018 14:05 PM)schubbel2208 Wrote:  u should check if target is alive

Buddy, I want a Plugin that sees if the mob is dead and cancel Target if it's dead.

    LUA Programming
repeat
 
if (GetTarget() ~= nil) then
			if (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
				Command("/useskill Hydro Blast");
			elseif (GetTarget():IsAlikeDeath() == true) then
				ClearTargets();
				CancelTarget(false);
				CancelTarget(false);
				CancelTarget(false);
			Sleep(100);
			end;
		end;	
until false;

02-08-2018 17:04 PM
Find all posts by this user Quote this message in a reply
canaldextiger Offline
Goblin Grave Robber
*

Posts: 12
Joined: Aug 2015
Reputation: 0
Version: 1.4.2.133
Post: #5
RE: Remove Target

    LUA Programming
repeat
 
if (GetTarget() ~= nil) then
			if (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
				Command("/useskill Hydro Blast");
			elseif (GetTarget():IsAlikeDeath() == true) then
				ClearTargets();
				CancelTarget(false);
				CancelTarget(false);
				CancelTarget(false);
			Sleep(100);
			end;
		end;	
until false;



Should I save to a .lua file as Script or Plugin?
And can I add more Skills to other Delays? Example: Vampiric Claw with 1000 milliseconds. What lines should I change?

Sorry for so many questions but I'm starting with .lua files
02-09-2018 00:52 AM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #6
RE: Remove Target

(02-09-2018 00:52 AM)canaldextiger Wrote:  
    LUA Programming
repeat
 
if (GetTarget() ~= nil) then
			if (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
				Command("/useskill Hydro Blast");
			elseif (GetTarget():IsAlikeDeath() == true) then
				ClearTargets();
				CancelTarget(false);
				CancelTarget(false);
				CancelTarget(false);
			Sleep(100);
			end;
		end;	
until false;



Should I save to a .lua file as Script or Plugin?
And can I add more Skills to other Delays? Example: Vampiric Claw with 1000 milliseconds. What lines should I change?

Sorry for so many questions but I'm starting with .lua files

its a script and und u can add more
02-09-2018 13:39 PM
Find all posts by this user Quote this message in a reply
canaldextiger Offline
Goblin Grave Robber
*

Posts: 12
Joined: Aug 2015
Reputation: 0
Version: 1.4.2.133
Post: #7
RE: Remove Target

(02-09-2018 13:39 PM)schubbel2208 Wrote:  
(02-09-2018 00:52 AM)canaldextiger Wrote:  
    LUA Programming
repeat
 
if (GetTarget() ~= nil) then
			if (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
				Command("/useskill Hydro Blast");
			elseif (GetTarget():IsAlikeDeath() == true) then
				ClearTargets();
				CancelTarget(false);
				CancelTarget(false);
				CancelTarget(false);
			Sleep(100);
			end;
		end;	
until false;



Should I save to a .lua file as Script or Plugin?
And can I add more Skills to other Delays? Example: Vampiric Claw with 1000 milliseconds. What lines should I change?

Sorry for so many questions but I'm starting with .lua files

its a script and und u can add more

If it is not too uncomfortable, could you send me again by adding the skill "Death Spike"? Just for me to see which lines change and where the delay is.
02-10-2018 03:32 AM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #8
RE: Remove Target

    LUA Programming
repeat
 
  me = GetMe();
 
  if (me:IsAlikeDeath() == false) and (me:IsSiting() == false) then
    if (GetTarget() ~= nil) then
      if (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
        Command("/useskill Hydro Blast");
        Sleep(3000); -- Change too lower value if needed
      elseif (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
        Command("/useskill Death Spike");
        Sleep(3000); -- Change too lower value if needed
      elseif (GetTarget():IsAlikeDeath() == true) then
        ClearTargets();
        CancelTarget(false);
        CancelTarget(false);
        CancelTarget(false);
      end;
    end;
  end;
  Sleep(1000);
until false;



what server ure playing?
02-10-2018 17:27 PM
Find all posts by this user Quote this message in a reply
canaldextiger Offline
Goblin Grave Robber
*

Posts: 12
Joined: Aug 2015
Reputation: 0
Version: 1.4.2.133
Post: #9
RE: Remove Target

(02-10-2018 17:27 PM)schubbel2208 Wrote:  
    LUA Programming
repeat
 
  me = GetMe();
 
  if (me:IsAlikeDeath() == false) and (me:IsSiting() == false) then
    if (GetTarget() ~= nil) then
      if (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
        Command("/useskill Hydro Blast");
        Sleep(3000); -- Change too lower value if needed
      elseif (GetTarget():GetId() ~= 0) and (GetTarget():IsMonster() == true)  and (GetTarget():IsAlikeDeath() == false) then
        Command("/useskill Death Spike");
        Sleep(3000); -- Change too lower value if needed
      elseif (GetTarget():IsAlikeDeath() == true) then
        ClearTargets();
        CancelTarget(false);
        CancelTarget(false);
        CancelTarget(false);
      end;
    end;
  end;
  Sleep(1000);
until false;



what server ure playing?

Thanks Bro and i play in L2Peniel.com (PvP Server)
02-10-2018 22:19 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  GetTarget() don't return monsters target ID Xerovator 3 170 11-16-2024 20:00 PM
Last Post: JennaDeh
  bot will target but not attack. elvis8925 3 3,803 04-09-2018 00:19 AM
Last Post: elvis8925
Information How to get 'PARTY MEMBER TARGET'? Caaioc 9 6,826 01-24-2016 09:57 AM
Last Post: TheQQmaster
  target for self buff manuel16007 1 3,272 01-22-2016 16:31 PM
Last Post: TheQQmaster
Rainbow Help to cancel target budarox 8 6,021 08-14-2015 06:31 AM
Last Post: budarox
  Change title to user's target vaskouf 4 4,264 06-28-2015 09:25 AM
Last Post: Vinter
  Clear target after kill mobs astalavista 0 2,981 06-07-2015 18:46 PM
Last Post: astalavista
  Target fix MoonSeed 5 7,461 03-23-2015 09:51 AM
Last Post: Fox
  How to remove the hold target? supera 5 4,380 12-26-2014 21:13 PM
Last Post: supera
  Fix target Tornet 6 5,232 11-22-2014 00:55 AM
Last Post: soul2eat



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