10-15-2013, 00:39 AM
Pages: 1 2
01-27-2014, 21:40 PM
+1
01-27-2014, 21:49 PM
weapid = 1;
objid = 1;
Disarmlist = {794,485,877,5260};
--funkcje
function GetWeaponId()
invList = GetInventory();
for item in invList.list do
if item.ItemType == 0 and item.IsEquipped then
objid= item.objectId ;
weapid= item.displayId ;
end;
end;
end;
function IsEquipped()
item = GetInventory():FindById(objid);
if item ~= nil then
if item.IsEquipped then
return true;
else
return false;
end;
else
weapid = 1;
objid = 1;
return true;
end;
end;
function checkDisarm()
local me=GetMe();
for k,w in pairs(Disarmlist) do
if me:GotBuff(w) == true then
return w;
end;
end;
return 1;
end;
--end funkcje
--loop start
repeat
GetWeaponId();
if weapid ~=1 and objid ~= 1 then
if IsEquipped() == false then
if GetMe():GotBuff(checkDisarm()) then
Sleep(GetMe():GetBuff(checkDisarm()).endTime - GetTime() + 250);
if UseItem(weapid,objid)==false then
weapid = 1;
objid = 1;
end;
else
if UseItem(weapid,objid)==false then
weapid = 1;
objid = 1;
end;
end;
Sleep(1500);
end;
end;
Sleep(200);
until false
objid = 1;
Disarmlist = {794,485,877,5260};
--funkcje
function GetWeaponId()
invList = GetInventory();
for item in invList.list do
if item.ItemType == 0 and item.IsEquipped then
objid= item.objectId ;
weapid= item.displayId ;
end;
end;
end;
function IsEquipped()
item = GetInventory():FindById(objid);
if item ~= nil then
if item.IsEquipped then
return true;
else
return false;
end;
else
weapid = 1;
objid = 1;
return true;
end;
end;
function checkDisarm()
local me=GetMe();
for k,w in pairs(Disarmlist) do
if me:GotBuff(w) == true then
return w;
end;
end;
return 1;
end;
--end funkcje
--loop start
repeat
GetWeaponId();
if weapid ~=1 and objid ~= 1 then
if IsEquipped() == false then
if GetMe():GotBuff(checkDisarm()) then
Sleep(GetMe():GetBuff(checkDisarm()).endTime - GetTime() + 250);
if UseItem(weapid,objid)==false then
weapid = 1;
objid = 1;
end;
else
if UseItem(weapid,objid)==false then
weapid = 1;
objid = 1;
end;
end;
Sleep(1500);
end;
end;
Sleep(200);
until false
01-28-2014, 14:57 PM
Thanks finally I found that post
02-06-2014, 14:43 PM
Hi, thank you for your hard work.
Is this a plugin, or script?
Is this a plugin, or script?
02-06-2014, 14:48 PM
It's a script. I'm using it for about 1 yr now and still works fine !
Thx to the person who wrote it and shared !!
Thx to the person who wrote it and shared !!
03-10-2014, 13:20 PM
It is a script , cool , how can I add it on my l2tower? Do I need to open the l2towerscript , paste it and then save it?
03-10-2014, 14:01 PM
yes
03-10-2014, 14:55 PM
thanks , gonna try it
06-16-2014, 13:27 PM
Guys if you can help me with the script... i take it as it is and make a new script? Do i change anythink?? Cause like that isn't working!!
Pages: 1 2