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: 153
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: 153
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: 153
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: 153
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
  Begin along with your target market’s finest demanding situations priya1322 0 363 10-22-2019 09:54 AM
Last Post: priya1322
  Dermatin Moisturizer:-Remove the acne, pimple marks LisahsdThomsen 0 872 10-18-2019 12:36 PM
Last Post: LisahsdThomsen
  Full Spectrum CBD Oil :Help remove tumor cells from the body torrentoanna 0 2,009 10-04-2019 12:27 PM
Last Post: torrentoanna
  Full Spectrum CBD Oil: Help remove tumor cells from the body ViolaMosl 0 1,870 10-01-2019 12:25 PM
Last Post: ViolaMosl
  Bionatrol Keto Burn:-Remove oxidative stress and free radicals KathleenRoache 0 224 09-24-2019 12:30 PM
Last Post: KathleenRoache
  Alkatone Keto:-Remove dead cells and regulate the blood circulation TonyaHernand 0 252 08-02-2019 09:12 AM
Last Post: TonyaHernand
  bot will target but not attack. elvis8925 3 1,630 04-09-2018 00:19 AM
Last Post: elvis8925
Information How to get 'PARTY MEMBER TARGET'? Caaioc 9 2,843 01-24-2016 09:57 AM
Last Post: TheQQmaster
  target for self buff manuel16007 1 1,746 01-22-2016 16:31 PM
Last Post: TheQQmaster
Rainbow Help to cancel target budarox 8 2,602 08-14-2015 06:31 AM
Last Post: budarox



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