Lineage 2 Tower Forum

Full Version: Often Client Crashes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(10-24-2012 12:28 PM)Fox Wrote: [ -> ]You need to do some tests

my ram stays always below 50% usage. so must be smh else.
any pluggins? in not... the scripts are probably killing your client
(10-24-2012 14:46 PM)Fox Wrote: [ -> ]any pluggins? in not... the scripts are probably killing your client

no plugins.. just 2 scripts
i use theze 2 scripts only:
CharName = "xxx"; -- Char Name who must me Ressed
ResItemId = 3936; -- Scroll of Res ID
HP = 15000;
HP1 = 10000;
HP2 = 7000;
HP3 = 8000;
CPWAR = 1000;
CP = 13000;
------------------------------------------

repeat
local TheChosenOne = GetUserByName(CharName);
if GetMe():GetHp() < HP3 and GetMe():GetCp() > CP then
ShowToClient("System Script", "Healing 1 Potion ...");
Command("/useshortcut 1 1");
Sleep(500);
end;
if (TheChosenOne ~= nil) and (TheChosenOne:GetHp() < HP) then
--Sleep(1000);
--Target(CharName);
--Sleep(1000);
Command("/useshortcut 3 9");
Sleep(500);
end;
if (TheChosenOne ~= nil) and (TheChosenOne:GetHp() < HP1) then
--Sleep(1000);
--Target(CharName);
--Sleep(1000);
Command("/useshortcut 3 8");
Sleep(500);
end;
if (TheChosenOne ~= nil) and (TheChosenOne:GetHp() < HP2) then
--Sleep(1000);
--Target(CharName);
--Sleep(1000);
Command("/useshortcut 3 6");
Sleep(500);
end;
if (TheChosenOne ~= nil) and (TheChosenOne:GetCp() < CPWAR) then
Command("/useshortcut 4 9");
Sleep(3000);
Command("/useshortcut 1 1");
Sleep(500);
Command("/useshortcut 1 1");
end;
Sleep(500);
until false;

and 2nd:

range = 950;
NpcName = "Large Cocoon";
--------------------------------------------------------------------------------
NpcL = GetNpcList();
repeat
--if(GetTarget() == nil)then
for user in NpcL.list do
if(GetMe():GetRangeTo(user) < range)then
if(user:GetName() == NpcName)then
Target(user:GetId());
--UseSkill(10763, false, true);
Command("/attackforce");
Sleep(2000);
ClearTargets();
Sleep(5000);
end;
Sleep(500);
end;
end;
Sleep(500);
--end;
--if(GetTarget()~= nil)then
-- if(GetTarget():IsAlikeDeath() == true)then
-- ClearTargets();
-- CancelTarget(true);
-- Sleep(500);
-- end;
--end;
Sleep(20000);
until false;
Pages: 1 2
Reference URL's