|
Post by rajikhushi70 on Jul 14, 2017 7:12:37 GMT
Hello Sir,
My script is working well...
but the problem is that if it has dragonicon than its click dragon, hit_dragon and then doing doAltar also... but if dragon icon availanle then it should come to dragonicon again after 5 or 10minutes..
how i can address same??
please help...
------------------------------------------------------------ function hit_dragon()
if exists(dragonhit) then
continueClick(550, 1090, 40, 40, 601)
if exists(energysupply) then
keyevent(4)
wait(2)
end
end
end
--
function do_dragon()
toast("Dragon found man... Hitting Dragon")
click(Location(60, 985))
wait(5)
hit_dragon()
keyevent(4) -- go out from dragon
wait(1)
doAltar()
end
--
while true do
if exists(dragonavailable) then ----- this should check at every 5 or 10 Minutes... do_dragon()
else
doAltar()
end
end
|
|
|
Post by AnkuLua on Jul 14, 2017 12:22:03 GMT
Insert wait(5*60) in proper place. Maybe after do_dragon()
|
|