Hi Guys,

I'm having a expecting on my use stake (blessed) on corpses and moving from main bp to loot bp
There's my script:

auto(200)
if $targetingtarget.id == 0 and $lootsaround == 0 and maround(7) == 0 and getuseroption('usestake') then
stake(7, true, false)
end

if itemcount('vampire dust', getuseroption('MainBP') >= 1 then
moveitems('vampire dust', getuseroption('LootBP'), getuseroption('MainBP'), 100)
waitping()
end

And the error occurs is:

error in Cavebot script Stake:
["if itemcount('vampire dust', getuseroption('M..."]:Stake:6: ')' expected near 'then'



Can someone Help?
ps: sorry for bad english