a question i can buy up to 58 items at once then i want 2 close the store use the items and start buying them again till i have less than 1k of honor is that possible?
Code:
if getCurrency("honor") > 1000 then
store:buyItem(x, 57)
yrest(5000)
RoMScript("CloseAllWindows()")
inventory:useItem(x)
yrest(2000)
until inventory:itemTotalCount(x) == 0
until 250 > getCurrency("honor") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("kup"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("lecim"))
end
end
end
i thought of smt like this but its get a compilation error coz i probobly ate somthing...
while getCurrency("honor") > 1000 do
store:buyItem(x, 57)
yrest(5000)
RoMScript("CloseAllWindows()")
repeat
inventory:useItem(x)
yrest(2000)
until inventory:itemTotalCount(x) == 0
end
That will keep buying and using all the items until your honor is less than 1000. I don't understand the bit about 'kup' and 'lecim'. When do you want to go to kup and when do you want to go to lecim?
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
while getCurrency("honor") > 1000 do
store:buyItem(x, 57)
yrest(5000)
RoMScript("CloseAllWindows()")
repeat
inventory:useItem(x)
yrest(2000)
until inventory:itemTotalCount(x) == 0
end
That will keep buying and using all the items until your honor is less than 1000. I don't understand the bit about 'kup' and 'lecim'. When do you want to go to kup and when do you want to go to lecim?
i wanted 2 go to "kup" if my honor is above 1k( the tag was on the shop ) and "lecim" if its below 1000
thx for the code i will try it asap