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

Post Reply 
 
Thread Rating:
  • 82 Vote(s) - 2.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Samples
Author Message
Hebdzik Offline
Tester

Posts: 1,235
Joined: Aug 2011
Reputation: 265
Version: 1.4.3.143
Post: #3
RE: Samples

Script witch will summon Beast Soulshots if number of them get lower than 1k

    LUA Programming
name = "Beast Soulshot";
repeat
invList = GetInventory();
i=0;
for item in invList.list do
	if (item.Name==name) then
		i=item.ItemNum;
		if (i < 1000) then
			UseItem(10515); -- ID of Item - Beast Soulshot Compressed Pack
			Sleep(1000);
		end;
	end;
end;
Sleep(60*1000);
until false



oj petli zapomnialem. Ale juz dziala Big Grin
(This post was last modified: 09-07-2011 15:03 PM by Hebdzik.)
08-31-2011 20:16 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Samples - ClockMan - 04-01-2011, 18:54 PM
RE: Samples - Sakaszli - 08-27-2011, 12:38 PM
RE: Samples - Hebdzik - 08-31-2011 20:16 PM
RE: Samples - Daczu - 09-07-2011, 09:57 AM
RE: Samples - davidavyd - 01-02-2012, 18:22 PM
RE: Samples - Sakaszli - 01-02-2012, 18:30 PM
RE: Samples - pwnage - 01-19-2012, 00:54 AM
RE: Samples - Pretendent - 03-30-2012, 13:55 PM



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