Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
stamina refill item Macro
05-23-2016, 05:04 PM (This post was last modified: 03-24-2018 03:51 AM by Catar.)
Post: #1
stamina refill item Macro
Hey guys!

I need help to create a macro automatically using "Stamina Refiller" below 41hours.

Can anybody help me ? Thank you!
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
05-24-2016, 09:45 AM (This post was last modified: 07-09-2016 08:42 PM by Catar.)
Post: #2
RE: Macro
whats ID of that item, and why below 41 hours? - how much stamina it recovers

stamrefil (auto: 10000ms)
10000 {stamrefil}
stamID:=put ID of that item here
Self.StaminaMins()<2460
Hotkey.Use(!stamID!)

Give Reputation to this user

Before you PM me, READ THIS [Image: KHCf9l2.png]

[Image: naLmyGH.png]

My Scripts, Macros and Tutorials
Find all posts by this user
Quote this message in a reply
03-23-2018, 12:36 AM
Post: #3
RE: Macro
Ok so this is the first macro i am trying to use but it simply doesn't use the item.

These are the prints of the code being used and the debug window

https://imgur.com/a/2kkvn
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
03-23-2018, 12:49 PM (This post was last modified: 03-23-2018 12:50 PM by Catar.)
Post: #4
RE: Macro
Maybe your character was spamming potions at the same time. Try lower ms


Also check if that item ID is even in bbot item list
Give Reputation to this user

Before you PM me, READ THIS [Image: KHCf9l2.png]

[Image: naLmyGH.png]

My Scripts, Macros and Tutorials
Find all posts by this user
Quote this message in a reply
03-23-2018, 06:20 PM (This post was last modified: 03-23-2018 06:22 PM by Kazan.)
Post: #5
RE: Macro
(03-23-2018 12:49 PM)Catar Wrote:  Maybe your character was spamming potions at the same time. Try lower ms


Also check if that item ID is even in bbot item list

This item don't need to be on item list... He's doing something wrong or he don't understand correctly how this item works on server he's playing.

I was using this kind of macro's with items from HoD before i added ID's to item list and it was working well
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
03-24-2018, 02:17 AM
Post: #6
RE: Macro
(03-23-2018 06:20 PM)Kazan Wrote:  
(03-23-2018 12:49 PM)Catar Wrote:  Maybe your character was spamming potions at the same time. Try lower ms


Also check if that item ID is even in bbot item list

This item don't need to be on item list... He's doing something wrong or he don't understand correctly how this item works on server he's playing.

I was using this kind of macro's with items from HoD before i added ID's to item list and it was working well

The item is "Use With..." kind of item. On xenobot, i used this script and it worked perfectly

Code:
Module.New('Say', function()

local staminaId = 20138

if (Self.Stamina() < 2400)
    then

        Self.UseItemWithMe(staminaId)

        end

end)

Give Reputation to this user
Find all posts by this user
Quote this message in a reply
03-24-2018, 03:49 AM (This post was last modified: 03-24-2018 03:51 AM by Catar.)
Post: #7
Stamina refill
as you can clearly assume by looking at command (hotkeyuse), it uses item with hotkey, works with items that u only have to right click once (food, counting gold coins...).
If your stamina item works like RUNE or Potion, you should've just start with that when making this post...

Creature.ShootOn(:SelfID, !stamID)
Give Reputation to this user

Before you PM me, READ THIS [Image: KHCf9l2.png]

[Image: naLmyGH.png]

My Scripts, Macros and Tutorials
Find all posts by this user
Quote this message in a reply
03-25-2018, 12:13 AM
Post: #8
RE: stamina refill item Macro
(03-24-2018 03:49 AM)Catar Wrote:  as you can clearly assume by looking at command (hotkeyuse), it uses item with hotkey, works with items that u only have to right click once (food, counting gold coins...).
If your stamina item works like RUNE or Potion, you should've just start with that when making this post...

Creature.ShootOn(:SelfID, !stamID)

I told you he made something wrong xDDD
Give Reputation to this user
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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