Page 1 of 1

xp&tp pots

Posted: Thu Aug 18, 2011 3:29 am
by berzer
hi,
is there script for using tp&xp pots when farming,
so that can be activated every hour?

Re: xp&tp pots

Posted: Thu Aug 18, 2011 3:56 am
by cheater
make your own ;-)
take the pots and get the buff id with this:

Code: Select all

/script i=1 while UnitBuff("player",i) ~= nil do nn,__,__,ii = UnitBuff("player",i) SendSystemChat(nn..", "..ii) i = i+1 end
and than
get the itemid (u can find it in http://de.runesdatabase.com/)
and the lua code

Code: Select all

if (not player:hasBuff("BUFFID")) then
inventory:useItem(ITEMID);
end
post the lua code between waypoint tags, as usual. u can post it in your profile, too. for example between the "<onLeaveCombat>" tag so the bots checks after every combat if the buff is active, and otherwise, he will take the potion.

Re: xp&tp pots

Posted: Thu Aug 18, 2011 5:28 pm
by sdude13
use JDuarteDJ & Giram userfunction_useGoodie_universal.lua (find it in the forum here)
then in the profile:
useGoodie("nameofTPorXP");