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

Thread Closed 
 
Thread Rating:
  • 11 Vote(s) - 1.36 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use other items from inventory?
Author Message
mehipsta19 Offline
Goblin Grave Robber
*

Posts: 11
Joined: Jan 2012
Reputation: 0
Version: 1.4.1.89
Post: #1
How to use other items from inventory?

Is there a script to use buffs scrolls(event) every 29 minutes before they expire?
01-22-2012 08:57 AM
Find all posts by this user
yumi22 Offline
Goblin Grave Robber
*

Posts: 14
Joined: Jan 2012
Reputation: 0
Version: 1.4.1.78
Post: #2
RE: How to use other items from inventory?

(01-22-2012 08:57 AM)mehipsta19 Wrote:  Is there a script to use buffs scrolls(event) every 29 minutes before they expire?

same problem with me ! please help us
01-24-2012 07:02 AM
Find all posts by this user
satanou Offline
Expired VIP Member
**

Posts: 43
Joined: Nov 2011
Reputation: 1
Version: 1.4.3.143
Post: #3
RE: How to use other items from inventory?

01-24-2012 07:08 AM
Find all posts by this user
yumi22 Offline
Goblin Grave Robber
*

Posts: 14
Joined: Jan 2012
Reputation: 0
Version: 1.4.1.78
Post: #4
RE: How to use other items from inventory?

(01-24-2012 07:08 AM)satanou Wrote:  http://forum.l2tower.eu/showthread.php?tid=2420

This will help

Just wanna ask if Sleep(1000*60*60); = 1 hour , what is the command for 29 minutes or 30 minutes only?im trying to follow the guide above but im really confuse and dont know the command for 29 minutes or 30 minutes only ,, sorry for bad english
01-24-2012 07:46 AM
Find all posts by this user
satanou Offline
Expired VIP Member
**

Posts: 43
Joined: Nov 2011
Reputation: 1
Version: 1.4.3.143
Post: #5
RE: How to use other items from inventory?

i dont know much about coding lua scripts but i guess the command for 30 mins will be (1000*30*30) test it Smile
01-24-2012 08:25 AM
Find all posts by this user
yumi22 Offline
Goblin Grave Robber
*

Posts: 14
Joined: Jan 2012
Reputation: 0
Version: 1.4.1.78
Post: #6
RE: How to use other items from inventory?

(01-24-2012 08:25 AM)satanou Wrote:  i dont know much about coding lua scripts but i guess the command for 30 mins will be (1000*30*30) test it Smile

i thought its (1000*60*30) , anyway i will try it later when the magmeld server is up , sadly the server is down now ! i just hope (1000*30*30) or (1000*60*30) will work...anyway thanks bro
01-24-2012 09:07 AM
Find all posts by this user
satanou Offline
Expired VIP Member
**

Posts: 43
Joined: Nov 2011
Reputation: 1
Version: 1.4.3.143
Post: #7
RE: How to use other items from inventory?

Yes you might be right (1000*60*30) sounds more likely
GOGO server up! :PPP
(This post was last modified: 01-24-2012 09:45 AM by satanou.)
01-24-2012 09:44 AM
Find all posts by this user
CoolAsIce Offline
WTS Healer 99/97/80/80 @Bartz
**

Posts: 57
Joined: Dec 2011
Reputation: 11
Version: 1.4.2.141
Post: #8
RE: How to use other items from inventory?

the scripts are counting mili-second
1000 mili-second = 1 second

so

30 min is 30*60 sec and is 30*60*1000 mili-sec, or 1800000 mili-sec

Code:
repeat
UseItem(ItemId);
Sleep(1800000);
until false;
01-24-2012 11:25 AM
Find all posts by this user
ursuhack2 Offline
Amber Basilisk
*

Posts: 39
Joined: Dec 2011
Reputation: 0
Version: 1.4.1.73
Post: #9
RE: How to use other items from inventory?

I was looking for the same thing but i made it BETTEr, it's with autodetect the buff scroll uses the right scroll, so no need for 29 minutes.
    LUA Programming
repeat
	if(GetMe():GetBuffsCount()  < 4) then
		ShowToClient("Buffs:","DOWN time to use scrol");
		if (GetMe():GotBuff(9200) == false) then
UseItem(34006);
end;
		if (GetMe():GotBuff(9203) == false) then
UseItem(34007);
end;
		if (GetMe():GotBuff(9199) == false) then
UseItem(34008);
end;
		if (GetMe():GotBuff(9199) == false) then
UseItem(34009);
end;
		if (GetMe():GotBuff(9202) == false) then
UseItem(34010);
end;
		if (GetMe():GotBuff(9199) == false) then
UseItem(34011);
end;
	end;
until false;


(01-24-2012 13:44 PM)ursuhack2 Wrote:  I was looking for the same thing but i made it BETTEr, it's with autodetect the buff scroll uses the right scroll, so no need for 29 minutes.
    LUA Programming
repeat
	if(GetMe():GetBuffsCount()  < 4) then
		ShowToClient("Buffs:","DOWN time to use scrol");
		if (GetMe():GotBuff(9200) == false) then
UseItem(34006);
end;
		if (GetMe():GotBuff(9203) == false) then
UseItem(34007);
end;
		if (GetMe():GotBuff(9199) == false) then
UseItem(34008);
end;
		if (GetMe():GotBuff(9199) == false) then
UseItem(34009);
end;
		if (GetMe():GotBuff(9202) == false) then
UseItem(34010);
end;
		if (GetMe():GotBuff(9199) == false) then
UseItem(34011);
end;
	end;
until false;

The only bad thing is it spamm's the chat, and i dunno what to do.
(This post was last modified: 01-24-2012 13:45 PM by ursuhack2.)
01-24-2012 13:44 PM
Find all posts by this user
amiroooo Offline
Beta Tester

Posts: 1,270
Joined: Sep 2011
Reputation: 412
Version: 1.4.2.142
Post: #10
RE: How to use other items from inventory?

lol you included ShowToClient in repeat without any conditions so yeah it supposed to be spammed like hell.
add
Sleep(1000);
before until false; and everything should look great.
tho remember people wanted the other way(time based) because they dont want their chars look like bot that keep rebuffing everytime it loses buffs (if gm plays with ur buff bar)
(This post was last modified: 01-24-2012 14:04 PM by amiroooo.)
01-24-2012 13:51 PM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information Dark items CP lf HEAL / ISS !! FreeXi 6 4,713 03-20-2015 21:37 PM
Last Post: FreeXi
  Open Inventory tuxevil 1 3,013 09-25-2014 21:55 PM
Last Post: kerberos464
Information Careful new wave of invisible items tuxevil 6 4,635 08-03-2014 22:48 PM
Last Post: inouext
  Favor about invisible items/mobs james21 0 2,115 03-16-2014 20:27 PM
Last Post: james21
  Meshless items - official Forsakendeamon 3 3,336 01-28-2013 16:01 PM
Last Post: amiroooo
  Use items- CP erawind 0 2,151 11-28-2012 23:33 PM
Last Post: erawind
  Invisible Items Scabies 3 3,941 04-09-2012 16:11 PM
Last Post: Scabies
  No skills no spoil no buff no items use(with dump file) Kretsman 9 6,573 03-14-2012 17:50 PM
Last Post: Kretsman
  Ignore Pickup Items (Filter) spygr 15 19,317 01-24-2012 22:21 PM
Last Post: Hebdzik



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