L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scrip ERTHIA
Author Message
alku Offline
Amber Basilisk
*

Posts: 35
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #1
Big Grin scrip ERTHIA

alguna scrip para la raza nueva ( maga ) ,
graciasssShy
08-24-2014 19:23 PM
Find all posts by this user Quote this message in a reply
rodritonic Offline
Elpy
*

Posts: 1
Joined: Aug 2014
Reputation: 0
Version: 1.4.2.131
Post: #2
RE: scrip ERTHIA

me sumo al post!!

alguien tendra la script del fighter??? :C
08-25-2014 00:59 AM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #3
RE: scrip ERTHIA

(08-25-2014 00:59 AM)rodritonic Wrote:  me sumo al post!!

alguien tendra la script del fighter??? :C

El de maga ertheia esta por todos lados, incluso en el post de referencia esta el enlace fiajte arrriba entre los temas pinchados.


El de Fighter no lo vi funcionando. En los scripts que revise, solo toma en cuenta que los skills se han armado dentro de funciones para controlar las distancias entre vos y el objetivo, y si son masivos ver el tema de otros personajes flag a tu alrededor... fuera eso...

UseSkillRaw (idskillfighter,false,false);


Saludos.

(08-24-2014 19:23 PM)alku Wrote:  alguna scrip para la raza nueva ( maga ) ,
graciasssShy


Aqui tienes un ejemplo basico de magas Ertheia. Ya he visto Scripts super complejos para Ertheias de mucho nivel... pero de eso tendras tiempo luego.

    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;

(This post was last modified: 08-26-2014 00:46 AM by rORUMI.)
08-26-2014 00:39 AM
Find all posts by this user Quote this message in a reply
 Reputed by : alku(+1)
alku Offline
Amber Basilisk
*

Posts: 35
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #4
RE: scrip ERTHIA

muchas gracias , funciona bien . una cosita porfis , como quito el pickup ?
08-26-2014 12:04 PM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #5
RE: scrip ERTHIA

(08-26-2014 12:04 PM)alku Wrote:  muchas gracias , funciona bien . una cosita porfis , como quito el pickup ?


Lo mas facil es setear -1 pickup range

RangePickup = -1;

Sino
Comentale las lineas de pickup para que te quede asi:

    LUA Programming
-- MoveToItem(PickItem);
-- Command('/pickup');



y tambien dentro del main() elimina lo subrayado.. pero mas facil.. ponele range -1

if (target ~= nil) and (target:IsAttacking()) or not Pickup (RangePickup) then
(This post was last modified: 08-26-2014 20:45 PM by rORUMI.)
08-26-2014 20:40 PM
Find all posts by this user Quote this message in a reply
 Reputed by : alku(+1)
alku Offline
Amber Basilisk
*

Posts: 35
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #6
RE: scrip ERTHIA

muchas gracias
08-27-2014 00:22 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  scrip arjmaj 1 683 06-08-2024 15:56 PM
Last Post: JennaDeh
Big Grin Ayudita con un scrip de auto farm lucasdrag 1 2,764 04-25-2016 04:58 AM
Last Post: either
Heart Scrip artoinvite pt Petas 2 2,374 12-11-2015 16:32 PM
Last Post: Petas
  Scrip Para healer !!!! arrowfly 5 4,130 06-22-2015 03:53 AM
Last Post: alberyan
  Problema con Scrip sodapop 2 2,209 01-19-2015 23:49 PM
Last Post: kingshava
  SCRIP DE MENTOR erickalisetc 1 1,670 01-19-2015 18:40 PM
Last Post: knutoz
  scrip para revivir ,dar buf en Aden y regresar a la zona de boteo erickalisetc 3 2,839 01-19-2015 01:48 AM
Last Post: hevertg
  algun scrip para armar y aceptar party automaticamente??? mardukx 0 2,615 05-11-2014 18:33 PM
Last Post: mardukx
Information Scrip Raid bostas 2 2,531 05-07-2014 03:16 AM
Last Post: caramelito1980
  Ayuda Scrip PAra interlude Argument.... mula22 6 6,835 01-01-2014 15:43 PM
Last Post: Petas



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