Still having trouble with it I guess. Worked once, not sure why it's failing.
PHP Code:
-- We are buying Rods
if($level >= 13 and $level < 19)then
if(itemcount('Moonlight Rod') >= 1 and windowcount()>=4)then
gotolabel('DepositGold','Refill')
elseif(getuseroption('moonlightrod') and itemcount('Moonlight Rod') == 0 and windowcount()>=4)then
openmarket()
waitping()
if($balance >=getuseroption('moonlightrodprice'))then
buyitemsmarket('Moonlight Rod', getuseroption('moonlightrodprice'), 1)
closemarket()
waitping()
openitem(12902)
waitping()
moveitems('Moonlight Rod', mainbp)
waitping()
moveitems(3066, 'rhand', mainbp)
waitping()
equipitem(3070, 'rhand')
waitping()
increasemoneyspent(getuseroption('moonlightrodprice'))
end
end
elseif($level >= 19 and $level < 22)then
if(itemcount('Necrotic Rod') >= 1 and windowcount()>=4)then
gotolabel('DepositGold','Refill')
elseif(getuseroption('necroticrod') and itemcount('Necrotic Rod') == 0 and windowcount()>=4)then
openmarket()
waitping()
if($balance >=getuseroption('necroticrodprice'))then
buyitemsmarket('Necrotic Rod', getuseroption('necroticrodprice'), 1)
closemarket()
waitping()
openitem(12902)
waitping()
moveitems('Necrotic Rod', mainbp)
waitping()
moveitems(3070, 'rhand', mainbp)
waitping()
equipitem(3069, 'rhand')
waitping()
increasemoneyspent(getuseroption('necroticrodprice'))
end
end
elseif($level >= 22 and $level < 26)then
if(itemcount('Northwind Rod') >= 1 and windowcount()>=4)then
gotolabel('DepositGold','Refill')
elseif(getuseroption('northwindrod') and itemcount('Northwind Rod') == 0 and windowcount()>=4)then
openmarket()
waitping()
if($balance >=getuseroption('northwindrodprice'))then
buyitemsmarket('Northwind Rod', getuseroption('northwindrodprice'), 1)
closemarket()
waitping()
openitem(12902)
waitping()
moveitems('Northwind Rod', mainbp)
waitping()
moveitems(3069, 'rhand', mainbp)
waitping()
equipitem(8083, 'rhand')
waitping()
increasemoneyspent(getuseroption('northwindrodprice'))
end
end
elseif($level >= 26 and $level < 33)then
if(itemcount('Terra Rod') >= 1 and windowcount()>=4)then
gotolabel('DepositGold','Refill')
elseif(getuseroption('terrarod') and itemcount('Terra Rod') == 0 and windowcount()>=4)then
openmarket()
waitping()
if($balance >=getuseroption('terrarodprice'))then
buyitemsmarket('Terra Rod', getuseroption('terrarodprice'), 1)
closemarket()
waitping()
openitem(12902)
waitping()
moveitems('Terra Rod', mainbp)
waitping()
moveitems(8083, 'rhand', mainbp)
waitping()
equipitem(3065, 'rhand')
waitping()
increasemoneyspent(getuseroption('terrarodprice'))
end
end
elseif($level >= 33)then
if(itemcount('Hailstorm Rod') >= 1 and windowcount()>=4)then
gotolabel('Start','DepositGold')
elseif(getuseroption('hailstormrod') and itemcount('Hailstorm Rod') == 0 and windowcount()>=4)then
openmarket()
waitping()
if($balance >=getuseroption('hailstormrodprice'))then
buyitemsmarket('Hailstorm Rod', getuseroption('hailstormrodprice'), 1)
closemarket()
waitping()
openitem(12902)
waitping()
moveitems('Hailstorm Rod', mainbp)
waitping()
moveitems(3065, 'rhand', mainbp)
waitping()
moveitems(8083, 'rhand', mainbp)
waitping()
equipitem(3067, 'rhand')
waitping()
increasemoneyspent(getuseroption('hailstormrodprice'))
end
end
end