07-15-2012, 21:43 PM
07-16-2012, 07:47 AM
did you try something like this?
this is simple version, not tested
this is simple version, not tested
LUA Programming
repeat
PlayerList = GetPlayerList();
for user in PlayerList.list do
if(user:IsMyPartyMember() == true) and (GetMe():GetRangeTo(user) < 900)then
Target(user);
Sleep(500);
UseItem(737); -- Scroll of Resurrection
end
end;
Sleep(1000);
until false;
08-21-2012, 18:07 PM
not work, somebody will repair this?
all time its "Inwalid Target"
all time its "Inwalid Target"
08-21-2012, 18:42 PM
first of all there is already a script posted few days ago by me (but it uses aero's skill not scroll)
second : mmh, he missed to write the condition when party member is death....
second : mmh, he missed to write the condition when party member is death....
LUA Programming
repeat
PlayerList = GetPlayerList();
for user in PlayerList.list do
if(user:IsMyPartyMember() == true) and
(user:IsAlikeDeath() == true) and
(GetMe():GetRangeTo(user) < 900) then
Sleep(800);
Target(user);
Sleep(900);
UseItem(737); -- Scroll of Resurrection
end
end;
Sleep(1000);
until false;
08-21-2012, 19:18 PM
thanks, pet too ressurection?
08-21-2012, 19:18 PM
no...
08-21-2012, 19:22 PM
how to add to this pet ressurection?
PlayerList = GetPlayerList(); and GetPetList(); ?
PlayerList = GetPlayerList(); and GetPetList(); ?
08-21-2012, 19:23 PM
it is kinda useless becouse you will need to accept the ress (like when your char die) (maybe there is an option to accept pet ress too, i don't remember now..)
08-21-2012, 19:28 PM
in menu of l2tower /cfg its Ressurection section and here its option AutoAccept ON
maybe this working too for pets?
maybe this working too for pets?
08-21-2012, 19:31 PM
i don't think, check if there is same option but with "pet" word
try this,and don't forget ++++
----- now works
LUA Programming
repeat
PetList = GetPetList();
for pet in PetList.list do
if(pet:IsPet() == true) and
(pet:IsAlikeDeath() == true) and
(GetMe():GetRangeTo(pet) < 800) then
Sleep(800);
Target(pet);
Sleep(900);
UseItem(737); -- Scroll of Resurrection
end
end;
Sleep(1000);
until false;
try this,and don't forget ++++
----- now works