BBot - The Best Bot of the World - Forums
Use id(item) on yourself - Printable Version

+- BBot - The Best Bot of the World - Forums (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forumdisplay.php?fid=29)
+--- Forum: Requests (https://forums.bmega.net/forumdisplay.php?fid=26)
+--- Thread: Use id(item) on yourself (/showthread.php?tid=27988)



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]