RE: SCRIPT NUKE ATTACK FEOH WIZARD
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;
==========================================================================
|