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;
u should check if target is alive
(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;
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)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)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 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)