Lineage 2 Tower Forum

Full Version: Send Ressurection to Party.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
@lwcdr
i know, but even with that error, the script works so who care?

@darkpd

add CleanTargets() in the script after itemuse...
and one more problem, ressurection is 2x ;/ in res im lost 2 scrolls? maybe to small sleeps?
    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(10000);
until false;

error CleanTargets() a nil value
(08-21-2012 22:57 PM)TheBl4ckPhoenix Wrote: [ -> ]
    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
 Sleep(1000);
 ClearTargets();
end;
	end;
	Sleep(10000);
until false;

thanks Smile works, and its possible piority first kill monster on screen after ressurection?
??
Pages: 1 2 3
Reference URL's