PDA

View Full Version : Automatic usage


Weis
08-09-2006, 01:53 PM
People,

i've got the following lines of code in my mod:

function useItem(bag, slot)
print("Use item in bag "..bag.." slot "..slot);
UseContainerItem(bag, slot);
end

If this function is called by the Slashhandler (i.e. by typing a command within the chat window) it works fine.

If the same function is called by another function - automation of potion usage while within battler - it DOES NOT work!

Any clues?

Cheers
Matt

freeri
08-09-2006, 01:58 PM
UseContainerItem and functions that are affecting your character database on the WoW-severs in any way requires a keypress to run the function.

This is to prevent too much automation and bot-usage.

Weis
08-09-2006, 06:30 PM
Thanks!

Is there are Work-Around like using the Chat-Window? If so, how do you create a CR within the Chat so that the quoted line gets executed?

freeri
08-09-2006, 09:06 PM
There is no legal workaround.

What is a CR?

Weis
08-09-2006, 09:12 PM
There is no legal workaround.

What is a CR?


Ok - so there IS a workaround :wink: Wonder how could one learn about it?!

CR = Carriage Return

freeri
09-09-2006, 12:09 AM
You can use thirdparty utilities, like bot-programs and stuff like that.

It is either safe to use, as you might get banned for using it, or safe to use as you might get keylogged by the leachers.

With just the World of Warcraft API there is no way to do this.