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
Weapon
Author Message
Immortal1910 Offline
Elpy
*

Posts: 4
Joined: Jan 2012
Reputation: 0
Version: 1.4.3.143
Post: #1
Exclamation Weapon

Hello
I need command in scrypt to remove weapon then rebuff and to put weapon again. Please helpSmile
08-25-2015 13:34 PM
Find all posts by this user Quote this message in a reply
snapit Offline
Expired VIP Member
**

Posts: 79
Joined: Jul 2015
Reputation: 18
Version: 1.4.2.133
Post: #2
RE: Weapon

To equip a weapon u can simply put it on the skill bar and use Command("/useshortcut x y");
08-25-2015 13:53 PM
Find all posts by this user Quote this message in a reply
Immortal1910 Offline
Elpy
*

Posts: 4
Joined: Jan 2012
Reputation: 0
Version: 1.4.3.143
Post: #3
RE: Weapon

oh right, i have it on F12 so /useshortcut F12
?

i want to use it on interlude
(This post was last modified: 08-25-2015 17:23 PM by Immortal1910.)
08-25-2015 17:10 PM
Find all posts by this user Quote this message in a reply
snapit Offline
Expired VIP Member
**

Posts: 79
Joined: Jul 2015
Reputation: 18
Version: 1.4.2.133
Post: #4
RE: Weapon

("/useshortcut 1 12") id say
08-25-2015 20:21 PM
Find all posts by this user Quote this message in a reply
Immortal1910 Offline
Elpy
*

Posts: 4
Joined: Jan 2012
Reputation: 0
Version: 1.4.3.143
Post: #5
RE: Weapon

ok thanks mate

hmmm, next problem in which position have i put ("/use shortcut 1 12") ?Tongue

SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\test.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
moveDistance = 30;
UseItem(9516); -- Buff Book
Talk();
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=266243#9516", "Shield");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=271874#9516", "Berserker Spirit");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=273411#9516", "Might");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=275715#9516", "Focus");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=308226#9516", "Wind Walk");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=324612#9516", "Vampiric Rage");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=265218#9516", "Magic Barrier");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=267526#9516", "Blessed Body");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=278018#9516", "Haste");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=317443#9516", "Guidance");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=317955#9516", "Death Whisper");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=264964#9516", "Mental Shield");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=355331#9516", "Greater Might");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=2631425#9516", "Chant of Victory");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=70145#9516", "Dance of Fire");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=68353#9516", "Song of Warding");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=68609#9516", "Song of Wind");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=68865#9516", "Song of Hunter");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=69377#9516", "Dance of Warrior");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=70401#9516", "Dance of Fury");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=79361#9516", "Dance of Vampire");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=77825#9516", "Song of Vitality");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=67585#9516", "Song of Earth");

L2TConfig.LoadConfig(SCONFIG_FILE);

its dark screamer focus +10 Smile
(This post was last modified: 08-25-2015 21:30 PM by Immortal1910.)
08-25-2015 21:23 PM
Find all posts by this user Quote this message in a reply
snapit Offline
Expired VIP Member
**

Posts: 79
Joined: Jul 2015
Reputation: 18
Version: 1.4.2.133
Post: #6
RE: Weapon

The commented part is there to show u how to setup it so it rebuffs every 55 mins on its own, all u need to add is a some sort of "move to safe spot and clear mobs" function or if mobs are not aggressive u can just use SetPause(true); and Sleep.

    LUA Programming
function CurrentWeapon()
invList = GetInventory();
for item in invList.list do
if item.ItemType == 0 and item.IsEquipped then
return item.displayId;
end;
end;
end;
 
function Buff()
UseItem(9516); -- Buff Book
Talk();
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=266243#9516", "Shield");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=271874#9516", "Berserker Spirit");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=273411#9516", "Might");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=275715#9516", "Focus");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=308226#9516", "Wind Walk");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=324612#9516", "Vampiric Rage");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=265218#9516", "Magic Barrier");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=267526#9516", "Blessed Body");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=278018#9516", "Haste");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=317443#9516", "Guidance");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=317955#9516", "Death Whisper");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=264964#9516", "Mental Shield");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=355331#9516", "Greater Might");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_1.htm#9516");
Click("sb_r_b_p?id=2631425#9516", "Chant of Victory");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=70145#9516", "Dance of Fire");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=68353#9516", "Song of Warding");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=68609#9516", "Song of Wind");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=68865#9516", "Song of Hunter");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=69377#9516", "Dance of Warrior");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=70401#9516", "Dance of Fury");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=79361#9516", "Dance of Vampire");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=77825#9516", "Song of Vitality");
UseItem(9516); -- Buff Book
ClickLinkAndWait("buff_book_2.htm#9516");
Click("sb_r_b_p?id=67585#9516", "Song of Earth");
end;
--BuffTimeStamp = GetTime();
--DelayTime = 1000 * 60 * 55;
current=233;
if CurrentWeapon()~=nil then
current=CurrentWeapon();
UseItem(current);
end;
Buff();
Sleep(1000);
if CurrentWeapon()==nil then
UseItem(current);
end;
--repeat
--if( BuffTimeStamp + DelayTime < GetTime()) then
---BuffTimeStamp = GetTime();
--if CurrentWeapon()~=nil then
--current=CurrentWeapon();
--UseItem(current);
--end;
--Buff();
--Sleep(1000);
--if CurrentWeapon()==nil then
--UseItem(current);
--end;
--end;
--Sleep(5000);
--until false;

(This post was last modified: 08-26-2015 10:47 AM by snapit.)
08-26-2015 10:25 AM
Find all posts by this user Quote this message in a reply
Immortal1910 Offline
Elpy
*

Posts: 4
Joined: Jan 2012
Reputation: 0
Version: 1.4.3.143
Post: #7
RE: Weapon

i exp in monastery of silence so i just need to remove weapon

its for my black magic Big Grin its new for me experience
(This post was last modified: 08-26-2015 15:31 PM by Immortal1910.)
08-26-2015 15:24 PM
Find all posts by this user Quote this message in a reply
skaywalker Offline
Gremlin
*

Posts: 6
Joined: Feb 2014
Reputation: 0
Version: 1.4.2.133
Post: #8
RE: Weapon

Hello, i have a question, i was whatching the script from the top and y have a question i need the opossit, i need an iscript for equip weapon when mobs cast diarm. Plese could you help me ???

i am realy neew making scripts. Thanks a lot !!!
11-17-2018 16:11 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Scrip for Equipe Weapon skaywalker 0 1,468 11-17-2018 13:53 PM
Last Post: skaywalker
  weapon for summoner for best pve dps? drake182 3 6,329 06-28-2015 16:39 PM
Last Post: drake182
  Autoequip weapon alitisisback 12 10,770 01-28-2015 20:51 PM
Last Post: haxorwannabe
  Changing shadow weapon FzN 1 2,374 09-15-2014 13:47 PM
Last Post: FzN
Exclamation check weapon/gear KristalSystem 4 3,574 07-06-2014 00:10 AM
Last Post: KristalSystem



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