Lineage 2 Tower Forum

Full Version: SCRIPT NUKE ATTACK FEOH WIZARD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Bom dia! Estou precisando saber se alguem tem um script de nuke attack, irei usar no meu feoh wizard, pois quando configurado na opção de nuke attack ele só ataca uma vez e depois para.
Tentei o seguinte script e não deu erto:


repeat
command ("/useshortcut 1 1");
command ("/useshortcut 1 2");
command ("/useshortcut 1 3");

until false;



Se alguem puder me passar eu agradeceria.

Desde já, agradeço.
Aguardo retorno e ajuda de todos.
Usa o Search ae cara.

Nos outros tópicos aqui mesmo tem dois scripts sobre Feoh.
Eu usei cara, achei alguns scipts sim, so que não rodaram e também não deram mensagem de erro, simplesmente não executavam.

Segue alguns que achei.


===================nuke 1========

function OnMagicSkillUse(user, target, skillId, skillvl, skillHitTime, skillReuse)
if user:IsMe() then
if (GetTarget() ~= nil) then
if (GetTarget():IsAlikeDeath() == false) then
if skillId == 11026 then -- Elemental Destruction ID
Command("/useskill Elemental Spike");
elseif skillId == 11014 then --Elemental Spike ID
Command("/useskill Elemental Crash");
elseif skillId == 11020 then --Elemental crash ID
Command("/useskill Elemental Destruction");
end;
end;
end;
end;
end;

==================================================
============nuke 2================================
function Cast(id)
if id then
skill = GetSkills():FindById(id)
if skill and skill:CanBeUsed() then
UseSkillRaw(id,false,false)
return true
end
end
return false
end

function GetSkillIdByName(name)
skills = GetSkills()
for s in skills.list do
if s.name == name then
return s.skillId
end
end
end
EB = GetSkillIdByName("Elemental Blast")
EC = GetSkillIdByName("Elemental Crash")
ES = GetSkillIdByName("Elemental Spike")

function FeohNuke()
if
Cast(EB) or
Cast(EC) or
Cast(ES)
then return
end
end
repeat
tar = GetTarget()
if not GetMe():IsBlocked(true) and
tar and
tar:IsEnemy() and
tar:GetDistance() < 900 and
tar:CanSeeMe() then
FeohNuke()
end
Sleep(200)
until false

===================================================
=================nuke 3============================
function GetSkillByName(Cname)
skillList = GetSkills();
for skill in skillList.list do
if skill.name == Cname then
return skill;
end;
end;
return nil;
end;

-- CONFIG STARTS HERE
Skill1Name = "Elemental Crash";
Skill2Name = "Elemental Spike";
-- CONFIG ENDS HERE

Skill1 = GetSkillByName(Skill1Name);
Skill2 = GetSkillByName(Skill2Name);
Current = 1;
stop = false;
repeat
if ( Skill1 == nil) then ShowToClient('Skill1','Skill 1 name is not found'); end;
if ( Skill2 == nil) then ShowToClient('Skill2','Skill 2 name is not found'); end;
if ( Skill1 ~= nil) and (Skill2 ~= nil) then
if (GetTarget() ~= nil) and (GetMe():IsUsingMagic() == false) and (GetTarget():IsAlikeDeath() == false) then
if (Current == 1) and (GetTarget():IsAlikeDeath() == false) then
if (Skill1:IsSkillAvailable() == true) then
if (GetMe():GetRangeTo(GetTarget()) > Skill1.castRange) then
MoveTo(GetTarget():GetLocation(),Skill1.castRange);
else
if (UseSkill(Skill1.skillId,true,true) == true) then
Current = 2;
end;
end;
end;
end;
if (Current == 2) and (GetTarget():IsAlikeDeath() == false) then
if (Skill2:IsSkillAvailable() == true) then
if (GetMe():GetRangeTo(GetTarget()) > Skill2.castRange) then
MoveTo(GetTarget():GetLocation(),Skill2.castRange);
else
if (UseSkill(Skill2.skillId,true,true) == true) then
Current = 1;
end;
end;
end;
end;

end;
end;
Sleep(500);
until stop == true;
==========================================================================
E como que faz pra rodar. Fiz os passos que tem na pagina.

Coloquei na pasta plugin
Digitei /addnuke
executei as skills
digitei /addnuke (para salvar as skills)
Configurei o resto do bot sem configurar o NUKE ATTACK

mas ai não acontece nada, esta faltando algo/;
Reference URL's