BBot - The best bot of the world
Use id(item) on yourself - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: Use id(item) on yourself (/thread-20498.html)



Use id(item) on yourself - Kingzael - 01-19-2017

I need a macro that uses an item on itself. Item id = 3156.


RE: Use id(item) on yourself - zarize - 01-19-2017

(01-19-2017, 12:52 AM)Kingzael Wrote: I need a macro that uses an item on itself. Item id = 3156.

Quote:target:=Creature.Self()
Creature.ShootOn(!target!, 3156)



RE: Use id(item) on yourself - Kingzael - 01-19-2017

(01-19-2017, 01:28 AM)zarize Wrote:
(01-19-2017, 12:52 AM)Kingzael Wrote: I need a macro that uses an item on itself. Item id = 3156.

Quote:target:=Creature.Self()
Creature.ShootOn(!target!, 3156)

Thx bro. It worked Big Grin


RE: Use id(item) on yourself - Freitas - 01-19-2017

You can place the item for use at any time. (Ex: 1:00 pm. after 5:00 pm)????


RE: Use id(item) on yourself - Catar - 01-19-2017

(01-19-2017, 03:41 AM)Freitas Wrote: You can place the item for use at any time. (Ex: 1:00 pm. after 5:00 pm)????

yes you can, (but why you use Wild growth rune on yourself? ;d )

Here is two macros for you:
this would use exacly at 13:02:20

[macro]400 {3156self}
Misc.SystemTime.Hour()==13
Misc.SystemTime.Minute()==2
Misc.SystemTime.Second()==20

target:=Creature.Self()
Creature.ShootOn(!target!, 3156)
[/macro]

Of course your system clock must be correct ;d

And if you want to use second time, for example 13:02:20 and lets say, 17:01:35 use this

[macro]400 {3156self}
target:=Creature.Self()
Misc.SystemTime.Hour()==13 [time]
Misc.SystemTime.Minute()==2
Misc.SystemTime.Second()==20
Creature.ShootOn(!target!, 3156)
exit()
{time}
Misc.SystemTime.Hour()==17
Misc.SystemTime.Minute()==1
Misc.SystemTime.Second()==35
Creature.ShootOn(!target!, 3156)
exit()
[/macro]