Lineage 2 Tower Forum

Full Version: ertheia attak
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi

today i go 85 lvl 1 char ertheia wen i xp at 0-85 char work good with nuke attak now after 85 nuke attak stop working ..


any help...?


char is sayhas seer..
Can be the same "old" problem as Feoh? ...try searching for feoh scripts and arrange them with your charecter's skills
(08-05-2014 22:17 PM)claudineiconde Wrote: [ -> ]New Ertheria Mage Skill Add Pick up items

    LUA Programming
AirRushID = 30012;
HydroAttackID = 30001;
HydroFlareID = 30003;
StormSignID = 30002; -- Storm Sign
HydroDrainID = 30007;
SayhasWordID = 30019;
ThreateningWindID = 30011;
 
----------Config-------------
RangePickup = 300; --Range to pick items defalt 300 set -1 to not pick items
-----------------------------
 
-----------------------------
 
 
function AirRush()
	local mySkills = GetSkills();
	local shadow = mySkills:FindById(AirRushID);
	if (shadow ~= nil) and (shadow:IsSkillAvailable()) and (shadow:CanBeUsed()) then
 local myTarget = GetTarget();
 if (CheckTargetCanBeUsedSkill(myTarget)) then
 if ((myTarget:IsAlikeDeath() == false) and (myTarget:GetRangeTo(me) > 200)) then
 UseSkill(AirRushID);
 end;
 end;
	end;
end;
 
 
function HydroFlare()
	local mySkills = GetSkills();
	local Hydro = mySkills:FindById(HydroFlareID);
	local Drain = mySkills:FindById(HydroDrainID);
	local me = GetMe();
	local myTarget = GetTarget();
	if (CheckTargetCanBeUsedSkill(myTarget)) and (myTarget:GotBuff(StormSignID)) then
	if (Hydro ~= nil) and(Hydro:IsSkillAvailable())and (Hydro:CanBeUsed()) or (Drain ~= nil) and(Hydro:IsSkillAvailable()) and (Drain:CanBeUsed()) then
	if (me:GetHpPercent()<= 80) or (me:GetMpPercent()<= 50)then
 UseSkill(HydroDrainID);
	else
 UseSkill(HydroFlareID);
 end;
 end;
 end;
end;
 
 
 
function UseSkill(skillID)	
	local myTarget = GetTarget();
	local mySkills = GetSkills();
	if (CheckTargetCanBeUsedSkill(myTarget)) then
 local Skill = mySkills:FindById(skillID);
 if (Skill ~= nil) and (Skill:IsSkillAvailable()) and (Skill:CanBeUsed()) then 
 UseSkillRaw(skillID, false, false);
 Sleep(500);
 end;
	end;
end;
 
 
function CheckTargetCanBeUsedSkill(target)
	if (target~=nil) and not (target:IsMe()) and (target:IsMonster()) and not (target:IsAlikeDeath()) and not (target:IsPlayer()) then
 return true;
	else
 return false;
	end;
end;
 
function UseBuff()
	if (me ~= nil) and not (me:IsAlikeDeath()) then
 if not me:GotBuff(30017) then
 UseSkillRaw(30017,false,false);
 Sleep(1000);
 end;
	end;
end;
 
 
ShowToClient("SYS","Etheria skills Start.");
 
 
function Pickup(range)
 local ItemsCount = GetItemManager():GetCount();
 if ItemsCount>0 then
 for i=1, ItemsCount do
 item = GetItemManager():GetByIdx(i);
 PickItem = item;
 if item~=nil and item:GetRangeTo(GetMe()) <= range then
 return true;
 end
 end
	end
 
 return false;
end;
-----------------------------------------
function MoveToItem(Item)
	loc = Item:GetLocation();
	lX = loc.X;
	lY = loc.Y;
	MoveToNoWait(lX, lY, loc.Z);
end;
------------------------------------------
 
------------------------------------------
function Main()
target = GetTarget();
	me = GetMe(); 
	MySkills = GetSkills(); 
	if (target ~= nil) and (target:IsAttacking()) or not Pickup (RangePickup) then
	if (me ~= nil) and not (me:IsAlikeDeath()) then
 
 UseBuff();
 AirRush();
 HydroFlare();
-- UseSkill (ThreateningWindID);
 UseSkill (SayhasWordID);
 UseSkill (HydroAttackID);
 end;
 else
 MoveToItem(PickItem);
 Command('/pickup');
	end;
end;
 
 
repeat
	if not IsPaused() then
 
 Main();
 Sleep(1000);
end;
until false;


how turn off pick up ???
(08-25-2014 18:04 PM)alku Wrote: [ -> ]how turn off pick up ???

Try by yourself!

Open the script, go at the end, find the command that does the pickup and delete the lines or put -- in front of the line... SAVE and test!

Dont expect ppl to do everything u !
ty , i was try by myself and scrip stop work . is why i ask for help
cant doin ( , stop work the scrip
Reference URL's