L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autoequip weapon
Author Message
alitisisback Offline
Elpy
*

Posts: 1
Joined: Aug 2013
Reputation: 0
Version: 1.4.3.143
Post: #1
Autoequip weapon

When a mob disarm my weapon how can i make it autoequip it.Do i need a script or can i make it via editor....thanks in advance
10-15-2013 00:39 AM
Find all posts by this user Quote this message in a reply
kgnz Offline
Expired VIP Member
**

Posts: 5
Joined: Dec 2013
Reputation: 0
Version: 1.4.1.118
Post: #2
RE: Autoequip weapon

+1
01-27-2014 21:40 PM
Find all posts by this user Quote this message in a reply
EnvyObscene Offline
VIP Member
***

Posts: 81
Joined: Jan 2013
Reputation: 14
Version: 1.4.3.143
Post: #3
RE: Autoequip weapon

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
01-27-2014 21:49 PM
Find all posts by this user Quote this message in a reply
 Reputed by : Cttdav(+2) , hcetigol(+2)
kgnz Offline
Expired VIP Member
**

Posts: 5
Joined: Dec 2013
Reputation: 0
Version: 1.4.1.118
Post: #4
RE: Autoequip weapon

Thanks finally I found that post Smile
(This post was last modified: 01-28-2014 14:57 PM by kgnz.)
01-28-2014 14:57 PM
Find all posts by this user Quote this message in a reply
Cttdav Offline
Expired VIP Member
**

Posts: 129
Joined: Jul 2013
Reputation: 13
Version: 1.4.2.138
Post: #5
RE: Autoequip weapon

Hi, thank you for your hard work.
Is this a plugin, or script?
02-06-2014 14:43 PM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #6
RE: Autoequip weapon

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 !!
02-06-2014 14:48 PM
Find all posts by this user Quote this message in a reply
Equin Offline
Gremlin
*

Posts: 9
Joined: Jan 2014
Reputation: 0
Version: 1.4.1.123
Post: #7
RE: Autoequip weapon

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 13:20 PM
Find all posts by this user Quote this message in a reply
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #8
RE: Autoequip weapon

yes
03-10-2014 14:01 PM
Find all posts by this user Quote this message in a reply
Equin Offline
Gremlin
*

Posts: 9
Joined: Jan 2014
Reputation: 0
Version: 1.4.1.123
Post: #9
RE: Autoequip weapon

thanks , gonna try it
03-10-2014 14:55 PM
Find all posts by this user Quote this message in a reply
hayatebot Offline
Elpy
*

Posts: 2
Joined: Nov 2012
Reputation: 0
Version: 1.4.2.133
Post: #10
RE: Autoequip weapon

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!!
06-16-2014 13:27 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Exclamation Weapon Immortal1910 7 4,508 11-17-2018 16:11 PM
Last Post: skaywalker
  Scrip for Equipe Weapon skaywalker 0 1,443 11-17-2018 13:53 PM
Last Post: skaywalker
  weapon for summoner for best pve dps? drake182 3 6,262 06-28-2015 16:39 PM
Last Post: drake182
  Changing shadow weapon FzN 1 2,324 09-15-2014 13:47 PM
Last Post: FzN
Exclamation check weapon/gear KristalSystem 4 3,499 07-06-2014 00:10 AM
Last Post: KristalSystem



User(s) browsing this thread: 1 Guest(s)