
Originally Posted by
flax97
Could you look on this script ?
Hi,
Your problem is the following (starting around line 96):
lua code:
if (labelName == "UseDoor1") then
Walker.Stop()
Self.UseItemFromGround(32821, 31112, 7)
Walker.Start()
end
if (labelName == "UseDoor2") then
Walker.Stop()
Self.UseItemFromGround(32821, 31112, 7)
Walker.Start()
end
if (labelName == "Targeting") then
Targeting.Start()
end
if (labelName == "NonTargeting") then
Targeting.Stop()
end
You need to change these "if" to 'elseif'. The reason why it is doing nothing on these labels is because with the 'if', it is grouped with the following label and therefore never using the lua you provided. Change the above 'if's to 'elseif' and let me know if you have further problems. You will also need to remove the 'end' from each as well.
lua code:
elseif (labelName == "resetBP") then
Walker.Stop()
if (HideEquipment) then
Client.HideEquipment()
wait(1000, 1500)
end
Self.CloseContainers()
Self.OpenMainBackpack(true):OpenChildren({LootBP,true}, {StackBP, true}, {GoldBP, true})
Walker.Start()
end
Regards,
O4T