Lineage 2 Tower Forum

Full Version: Res Script stop work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
only me have this problem? if i start res script.. and char die in next 5-10min aeore start res 1time.. but then he stop..

i use both: once with "getplayerlist" & with Name 1/2/3/...

same problem on both
Post the script so we can take a look
ShowToClient("SYS","Script Ress Party Started");
ResSkillId = 11784; -- Aeore Blessed Resurrection = 11784; Iss Angel's Resurrection = 11564;
-----------------------------------------------------------
PlayerList = GetPlayerList();
ResSkill = GetSkills():FindById(ResSkillId);
repeat
if (GetMe():IsAlikeDeath() == true)then
ShowToClient("SYS","Your char is dead, w8ing for res");
Sleep(10000)
repeat
Sleep(1000);
until (GetMe():IsAlikeDeath() == false);
ShowToClient("SYS","Your char is now alive");
end;
for user in PlayerList.list do
if(user:IsMyPartyMember() == true)then
if (user:IsMyPartyMember()) and (user:IsAlikeDeath() == true)and(ResSkill ~= nil) and(ResSkill:CanBeUsed()) then
Target(user);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);
end;
end;
end;
Sleep(5000)
until false;

same problem with both

CharName1 = ""; -- Char Name who must Be Ressed
CharName2 = ""; -- Char Name who must Be Ressed
CharName3 = ""; -- Char Name who must Be Ressed
CharName4 = ""; -- Char Name who must Be Ressed
CharName5 = ""; -- Char Name who must Be Ressed
CharName6 = ""; -- Char Name who must Be Ressed

ResSkillId = 11784; -- 11784 Blessed Resurrection

ResSkill = GetSkills():FindById(ResSkillId);

repeat
if (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName1):IsAlikeDeath() == true) then

Target(CharName1);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);


elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName2):IsAlikeDeath() == true) then

Target(CharName2);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);


elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName3):IsAlikeDeath() == true) then

Target(CharName3);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);

elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName4):IsAlikeDeath() == true) then

Target(CharName4);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);


elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName5):IsAlikeDeath() == true) then

Target(CharName5);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);

elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName6):IsAlikeDeath() == true) then

Target(CharName6);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);



end;
Sleep(500);
until false;
so have many ppl in u res list? if < then 6, delete some lines here^
Code:
CharName1 = ""; -- Char Name who must Be Ressed
CharName2 = ""; -- Char Name who must Be Ressed
CharName3 = ""; -- Char Name who must Be Ressed
CharName4 = ""; -- Char Name who must Be Ressed
CharName5 = ""; -- Char Name who must Be Ressed
CharName6 = ""; -- Char Name who must Be Ressed
and here
Code:
elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName5):IsAlikeDeath() == true) then

Target(CharName5);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);

elseif (ResSkill ~= nil) and (ResSkill:CanBeUsed()) and (GetUserByName(CharName6):IsAlikeDeath() == true) then

Target(CharName6);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);
(06-28-2013 07:04 AM)EnvyObscene Wrote: [ -> ]only me have this problem? if i start res script.. and char die in next 5-10min aeore start res 1time.. but then he stop..

i use both: once with "getplayerlist" & with Name 1/2/3/...

same problem on both

Same problem since lindvior update... I test all ISS OOP finded in this forum and noone works
@vota thats ofc not the problem.. i run full pt.. so yeah i need it for 6ppl..

but still same sh1t here.. script work for the first ~ 1-2h, then stop

or example: i was spicula - tank/dd died - healer used res. -> they died again -> script stop to work
Reference URL's