error in Action script wptid:3:
[" while windowcount() ~= 4 then"]:Action: :9: 'do' expected near 'then'
using this code:
shouldUseDwarvenRing = true
usedoor($wptx, $wpty+1, $wptz)
-- Open backpack
local lootBp = getlootingdestination('rare')
local mainBp = getlootingdestination('main')
local supBP = getlootingdestination('supplies')
local goldBP = getlootingdestination('gold')
while windowcount() ~= 4 then
closewindows()
open(0, 'back')
resizewindows()
wait(700,1000)
openitem(goldBP, mainBp, 'opennew')
resizewindows()
wait(700,1000)
openitem(supBP, mainBp, 'opennew')
resizewindows()
wait(700,1000)
openitem(lootBp, mainBp, 'opennew')
resizewindows()
wait(700,1000)
end