Jump to content

Use item at hotspot and wait?


Ruinit

Recommended Posts

Is there any way to use an item at a hotspot or on a target and then wait for a set amount of time before casting use item again? I need to use item and wait and everything I try just has the bot using the item over and over in a loop.

Thanks

 

Link to comment
Share on other sites

Hello, use quest type UseScriptOn and use c# code like 

ItemsManager.UseItem(1234);
Usefuls.WaitIsCasting();
Thread.Sleep(1000 * 10);

(replace 1234 by your item id and replace 10 by number of secondes to wait)

Link to comment
Share on other sites

Tried using this and all I get is tons of errors in wow? 

ItemsManager.UseItem(58165);
Usefuls.WaitIsCasting();
Thread.Sleep(1000 * 10);

1005x [string "aiHwKuiCDT.lua"]:1: attempt to index global 'ItemsManager' (a nil value)
[string "aiHwKuiCDT.lua"]:1: in main chunk

I did usescripton and added hotspots did I miss something?

Link to comment
Share on other sites

On 02/12/2017 at 6:17 PM, Ruinit said:

Tried using this and all I get is tons of errors in wow? 

ItemsManager.UseItem(58165);
Usefuls.WaitIsCasting();
Thread.Sleep(1000 * 10);

1005x [string "aiHwKuiCDT.lua"]:1: attempt to index global 'ItemsManager' (a nil value)
[string "aiHwKuiCDT.lua"]:1: in main chunk

I did usescripton and added hotspots did I miss something?

Check "Is c#..." option

Link to comment
Share on other sites

  • 3 months later...
On 11/26/2017 at 11:19 AM, Droidz said:

Hello, use quest type UseScriptOn and use c# code like 


ItemsManager.UseItem(1234);
Usefuls.WaitIsCasting();
Thread.Sleep(1000 * 10);

(replace 1234 by your item id and replace 10 by number of secondes to wait)

This worked well but I need it to attack  id 3475. How can i incorporate this id in the script you posted?

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...